Visual Builder

Get Involved. Join the Conversation.


    sriram iyer
    Simple Date Manipulation
    Topic posted October 29, 2018 by sriram iyerRed Ribbon: 250+ Points, tagged Business Objects, Custom Code, Process, UI, Validation 
    59 Views, 1 Comment
    Simple Date Manipulation
    How to set a field to a predetermined value based on business rules

    I have a field named Expiration Date in a business object. I want to set this field to (today + 30) or 30th June or 31st December etc. based on the selections made on the screen. I also want to show this field on the screen so users can see it. 

    How can I do this? Does not seem very intuitive.


    Sriram Iyer

    Version: 18.3.3



    • Shay Shmeltzer

      You can use groovy date functions to set the value in BO business rules.

      So you can set the field to be: now().plus(30)