Page 1 of 1

Click Trigger custom column script value lost after restart

Posted: 14 Jun 2020 18:26
by ChristianRR
For my first XYscript, I'm trying to set a persistent value in a custom column, as a timestamp (not the cma attributes). A custom column with Caption:step_date, Type:Script, Format:Date, Trigger:Click, and the script

::return <date dd.mm.yyyy hh:mm:ss>

works, but of course the resulting value is lost when I restart XYplorer. Can the value be kept without creating an external file?

I then tried to put that script in a user button and set the Custom Column type to Property, but I can't find out (help and forum) how to refer to (and set) this Custom Column property for the current list item...

I would much prefer the column script.
???

Re: Click Trigger custom column script value lost after restart

Posted: 14 Jun 2020 18:38
by highend
You aren't storing anything here, you're just returning the date...
For permanently storage, write it to the tag database, in this case e.g. the ex1 column:
tag <date dd.mm.yyyy hh:mm:ss>, <cc_item>, 3, 2;

Re: Click Trigger custom column script value lost after restart

Posted: 14 Jun 2020 18:48
by ChristianRR
Thanks, I can't try this right away, but will let you know here later tonight (Europe time).
:tup:

Re: Click Trigger custom column script value lost after restart

Posted: 15 Jun 2020 01:49
by ChristianRR
highend wrote:
14 Jun 2020 18:38
You aren't storing anything here, you're just returning the date...
For permanently storage, write it to the tag database, in this case e.g. the ex1 column:
tag <date dd.mm.yyyy hh:mm:ss>, <cc_item>, 3, 2;
Thanks again for the tip, it works just fine!