cancel
Showing results for 
Search instead for 
Did you mean: 

How do i define Optional Input Parameters for an Object ?

SaurabhPalkar
Level 3
 I am writing a logic to choose files greater than a certain date. But the default value for this input parameter should be Today(). Is there a way to do this ? -Saurabh (SOU-RUBH)  
3 REPLIES 3

JeroenOosterhol
Level 4
You could use a decision stage at the start of your object page. If the input is empty, use a calculation stage to set the date to Today(), if not use the input.    

david.l.morris
Level 15
To add to Jeroen's suggestion, if your input is a Date datatype instead of Text, you can use the IsDate() function in your decision stage to determine whether it's empty.

Dave Morris, 3Ci at Southern Company

SaurabhPalkar
Level 3
Thanks guys.   I was using the Length of the variable ( as I could not find IsNull or IsEmpty functions). But now I will use the isDate function. thanks, Saurabh