How can I set a default End Date to a Contract?
Question
We need to send the contracts to SAP with an End Date predefined to "never" (in this case 31/12/9999).
Answer
if (cProcessor.isPrePhase()) {
Calendar cal = Calendar.getInstance()
cal.set(year:9999, month:11, date:31)
def DEFAULT = cal.getTime()
cProcessor.updateField("endDate", DEFAULT)
}
, multiple selections available,
Related content
Date & Time
Date & Time
More like this
cal - Business Calendar Conversion (Data Source)
cal - Business Calendar Conversion (Data Source)
More like this
How is the data for calendar DS generated?
How is the data for calendar DS generated?
More like this
How to Set the Number of Displayed Decimals in User Input
How to Set the Number of Displayed Decimals in User Input
Read with this
Can an alert be added to a header level element?
Can an alert be added to a header level element?
Read with this
Layout and Formatting of Input Fields (Reference)
Layout and Formatting of Input Fields (Reference)
Read with this
Found an issue in documentation? Write to us.