Hi everyone,
For audit purposes in a ticket management process, I need to track create/update/delete actions on a Ticket (record type) each time it has been opened the relative interface and track timing (basically: startEvent, endEvent). I already track the interface initial loaded date/time in a local variable using now(), but how to pass it to a rule input (and therefore use it in the create/update process)? I think I have to use a!save in the primary button, but I am missing low-code details.
Do you have any suggestion?Thank you so much,
Discussion posts and replies are publicly visible
Your button has a saveInto parameter which takes a list of a!save() to be executed as the button is clicked. Now you can store any values in your rule inputs.
What are you trying to save it into?
If you have a field in a CDT you're writing, you would just do an a!save() like you said, as in like, "a!save(ri!myCdt.createdDateTime, local!loadingTime)".
Thank you for your immediate help.
Here I share the "Create Ticket" interface primary button configuration:
a!buttonWidget( label: "Create", submit: true, style: "PRIMARY", value: local!intLoadTime, saveInto: { a!save(ri!loadTime, local!intLoadTime) } )
where loadTime is a Date/time rule input and the local!intLoadTime has been initialized at the beginning of the form with now().
Was it what you meant?
ri!loadTime is.. a boolean?
You will need to change that RI to dateTime type, if you want this to do anything useful.
Yes, typo; it is a date/time rule input.
Ok that's good - based on your screenshot it looks as if pressing that button should do the save you're intending. Is anything not working with that still?
Correct; it is working. Thank you.
Thank you also Stefan! Both suggestions were right as they were the same. ;)