Today Function in pop up calendar

How can I script a “Today” button that can pass on Today’s date and time to my pop up calendar component.?

Please tag your question with Vision or Perspective. The answer differs depending on which visualisation you are using.


  • Right click on the button. Select Scripting …
  • Set up as shown below.
  • Here’s the actual code. (Edit to suit or navigate using the Insert Property Reference button.)
value =
event.source.parent.getComponent('Popup Calendar').date = value
  • Apply and test.