addEffectiveTimePeriod macro

Use this macro to add an effective time periode to an element that was added before to the UserArea. The call of this macro must immediately follow the call of the macro to add the value because the timeperiod is added to the latest element that was added.

addEffectiveTimePeriod(string startDateTime, string endDateTime)

This table shows the arguments:

Argument Description
Start Date Time The start date time that must be added to the element added previously. This field must be in the format:
  • "yyyy-mm-ddThh:mm:ssZ" (GMT)
  • "yyyy-mm-ddThh:mm:ss+hh:mm" (local time later than GMT)
  • "yyyy-mm-ddThh:mm:ss-hh:mm" (local time earlier than GMT)

See function utc.to.iso() in the Infor ES Programmers Guide (Infor Customer Portal KB2924522).

End Date Time The end date time that must be added to the element added previously. Format see Start Date Time.

Example:

        addQuantityValue("StockQuantity", 
                       str$(total.stock), "pcs")
        addEffectiveTimePeriod(utc.to.iso(utc.num(), UTC_ISO_Z),
                               utc.to.iso(utc.num()+24*60*60, UTC_ISO_Z))