[solved] Ordering of global expressions
-
@toggledbits using Chrome (94.0.4606.81) on macOS (Big Sur). Saw two errors that happened already before editing the order of expressions. Tested with build 21286
-
Neither of those errors is relevant. The first isn't even from any part of the UI, looks like browser internal, and the second is from inside the Bootstrap package and also not relevant. Is this from after edit but before save? If so, do the save and see if anything is logged by the save operation.
-
@toggledbits before edit & after save
-
Wait... wut? That makes no sense. Let's try this again. Open the JavaScript console. Go into the Global Expressions editor. Move something to another position, then hit Save. Then report if any errors were logged.
-
I'm getting a slightly different effect with Expressions, under latest-21292-ac02d68, namely when I visit my list of existing Globals and drag one to the top of the list, then click SAVE and go visit elsewhere in the UI... upon returning to Expressions, that item now appears at the very bottom of the list. I haven't watched for browser errors in the monitor yet, just wanted to report this anomaly.
UPDATE: More generally, even if I drag an existing expression anywhere in the ordered list, and click SAVE, the topmost item seems always to hop to the bottom of the list. Grabbed these screen shots to illustrate:
BEFORE (after dragging 'sun' to the 2nd position from top)
AFTER (following SAVE, leaving 'Expressions' then returning)
At that point, 'Timestamp' had been bumped to the bottom of the list.
-
@librasun this is exactly the same behaviour I’m experiencing
@toggledbits did another test with console open, no errors
-
OK. @LibraSun 's description was a bit more concise, so I was able to find that issue. Next build tomorrow.
-
@toggledbits I’m good at finding bugs, but bad at explaining them
-
@tunnus Sometimes it takes teamwork to get things through my thick skull, too.
-
@librasun looks like you have some interesting expressions, like this one at the timestamp
Can you share the full screen for us to look at? And of course use good ideas
And your last comment is very good, we can find each other, but to reproduce and explain is another story
-
Just a note, @LibraSun 's timeStamp expression was necessary before the addition of
strftime()
to the function catalog. -
@toggledbits said in Ordering of global expressions:
strftime()
Master sorry for the ignorance of your apprentice, can't this strftime() function be used this way?
I am getting an error.
-
toggledbitsreplied to wmarcolin on Oct 21, 2021, 5:39 PM last edited by toggledbits Oct 21, 2021, 1:40 PM
@wmarcolin Grasshopper, the arguments for
strftime()
are described in the reading thus:strftime( format_string [, time ] )
— Formats time to a human-readable form controlled byformat_string
. Iftime
is not given or null, the current time is used.It should be clear from this that the first argument is to be a string containing the formatting codes. A string is a sequence of characters enclosed in quotes. You are missing the quotes.
-
-
-
Yeah, most of my more intricate Globals originated from the Before Times, and would not be applicable today. Anything worth sharing I created long ago as workarounds, for which Patrick probably has since added features to accommodate.
-
tunnusreplied to toggledbits on Oct 22, 2021, 12:51 PM last edited by tunnus Oct 22, 2021, 8:52 AM
@toggledbits just to confirm/check, that this fix (on ordering of expressions) is included in 21294?
-
Yes, it is.
-
@toggledbits can confirm that the fix is working (tested with 21297)
-
13/22