This action sets the value of a method for the target object. The value formula is evaluated with
respect to the current object context. This can use the new method formula syntax. Using this, it is
possible to access any value from the current object.
Syntax
SET VALUE:[: ]
Where,
is the name of the method, and
is the value which needs to be set to the method. It is optional. If the second
parameter is not specified, it searches for the same method in the context object and the value is
set based on it. If the source method name is same as in Target Object, then the Source Object
method name is optional.
Example: 1
01: SET VALUE : Ledger Name : $LedgerName
OR
01: SET VALUE : Ledger Name
These statements set the values of ‘Ledger Entries’ Object from the current Object context.
Example: 2
02 : WALK COLLECTION: Vouchers of My Objects
03 : NEW OBJECT: Voucher
;; Since the methods Date, VoucherTypeName are same in the source object and target object, they are not
specified again as SET VALUE : DATE : $Date.
04 : SET VALUE: Date
05 : SET VALUE: VoucherTypeName
Example: 3
[Function : Sample Function]
Object : Ledger : "Party 1"
01 : NEW OBJECT : Ledger : "Party 2"
;; absence of Value expression will assume that same method to be copied from source
02 : SET VALUE : Parent
03 : ACCEPT ALTER
‘Party 1’ is a ledger under the Group ‘North Debtors’ and Party 2 is a Ledger under the Group
‘South Debtors’. After the execution of this function, Party 2 will also come under the Group ‘South
Debtors’.
respect to the current object context. This can use the new method formula syntax. Using this, it is
possible to access any value from the current object.
Syntax
SET VALUE:
Where,
parameter is not specified, it searches for the same method in the context object and the value is
set based on it. If the source method name is same as in Target Object, then the Source Object
method name is optional.
Example: 1
01: SET VALUE : Ledger Name : $LedgerName
OR
01: SET VALUE : Ledger Name
These statements set the values of ‘Ledger Entries’ Object from the current Object context.
Example: 2
02 : WALK COLLECTION: Vouchers of My Objects
03 : NEW OBJECT: Voucher
;; Since the methods Date, VoucherTypeName are same in the source object and target object, they are not
specified again as SET VALUE : DATE : $Date.
04 : SET VALUE: Date
05 : SET VALUE: VoucherTypeName
Example: 3
[Function : Sample Function]
Object : Ledger : "Party 1"
01 : NEW OBJECT : Ledger : "Party 2"
;; absence of Value expression will assume that same method to be copied from source
02 : SET VALUE : Parent
03 : ACCEPT ALTER
‘Party 1’ is a ledger under the Group ‘North Debtors’ and Party 2 is a Ledger under the Group
‘South Debtors’. After the execution of this function, Party 2 will also come under the Group ‘South
Debtors’.
Skip to main content
Comments
Post a Comment