[solved] Ordering of global expressions
-
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 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. -
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.
-
@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.
@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.
-
@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.
-
-
-
OK. @LibraSun 's description was a bit more concise, so I was able to find that issue. Next build tomorrow.
@toggledbits just to confirm/check, that this fix (on ordering of expressions) is included in 21294?
-
Yes, it is.
-
Yes, it is.
@toggledbits can confirm that the fix is working (tested with 21297)
-
T toggledbits locked this topic on