Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
a_f:a:create [2023/05/09 01:30] seana_f:a:create [2024/05/16 03:35] (current) – [Example] aware_admin
Line 39: Line 39:
  
 Note also that if the object being created has any attributes of the Date type, these attributes can be initialized with the value of the date for which the object is being created. For example,  Note also that if the object being created has any attributes of the Date type, these attributes can be initialized with the value of the date for which the object is being created. For example, 
-<code aim>CREATE Transaction FOR EACH DAY BETWEEN Account.OpeningDate AND Account.ClosingDate WITH Transaction.AppliedDate=Day </code> Every transaction created in this way will have the AppliedDate attribute initialized to the day for which the transaction is created.+<code aim>CREATE Transaction FOR EACH DAY BETWEEN Account.OpeningDate AND Account.ClosingDate WITH Transaction.AppliedDate=LOOP_ITERATION</code> Every transaction created in this way will have the AppliedDate attribute initialized to the day for which the transaction is created. 
 + 
 +    ''CREATE'' Id() ''FOR EACH DATE IN '' ArithmeticOperation() 
 + 
 +This action will create as many instances of the specified business object as there are dates in the attribute storing text with Multi-Dates content. Note that the Arithmetic Operations here must be resolved to a string with multi-dates content (type of the text attribute must be Multi-Dates), for example 
 +<code aim>CREATE Transaction FOR EACH DATE IN SomeObject.SelectedDates WITH Transaction.AppliedDate=LOOP_ITERATION </code> 
 + 
 +    ''CREATE'' Id() ''FOR EACH STRING IN '' ArithmeticOperation() [ DELIMITER ] 
 + 
 +This action will create as many instances of the specified business object as there are substrings in the attribute storing a delimited string. The default delimiter is '@', but the delimiter can also be specified, for example 
 +<code aim>CREATE Transaction FOR EACH STRING IN SomeObject.DelimitedString '#' WITH Transaction.Substring=LOOP_ITERATION </code>
  
     ''CREATE'' Id() ''FOR EACH NUMBER BETWEEN'' ArithmeticOperation() ''AND'' ArithmeticOperation     ''CREATE'' Id() ''FOR EACH NUMBER BETWEEN'' ArithmeticOperation() ''AND'' ArithmeticOperation
  • Last modified: 2023/05/09 01:30