Posted: 20 Jun 2016 15:08 EDT Last activity: 21 Jun 2016 12:19 EDT
How to Manipulate DateTime Properties
Hey Pega Community,
Once again, I am new to Pega and I am working on this little function.
In Pega i am not sure how to fully do it.
I have set up a DateTime Object that currently has no value.
I would like to know how to initialize such property to the current date and time (I know there is a function called @currentdatetime and there is a .pxCreateDateTime, but I am not sure how to set a DateTime property using these, am I supposse to simply call a data transform and paste @currentdatetime or .pxCreateDateTime in the field next to "equals to" ?).
I also want to know how I can display this DateTime property on the screen, to check that is the correct time I am looking for.
Thank you all for helping or just looking through this,
Very much appreciated,
Share this page
Moderation Team has archived post,
This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Discussion, please write a new Discussion.
Posted: 5 years ago
Posted: 20 Jun 2016 18:35 EDT
Lee Pederson (pedel)
Global Tech Enablement, Principal Instructor - LSA
When I add the "change" event and I click action "Run Script", it asks me for a function name.
Also since I am asking, is the "change" event mean that the action will execute upon opening the harness/section?
If I have to create a script, how do I do so in Pega 7?
How does this "Run Script" work?
Im sorry for these question I just cant find a good resource to learn this things online, I haven't found a manual or pdf.
I understood the rest perfectly and I have that set up already.