As already seen in previous sections, functions can operate on 3 object contexts, i.e., Requestor,
Current Object and Target object context. When a function is invoked, the target object context will
be the same as the current object context of the caller, i.e., the target object will be set to the
current object.
Here, we will discuss the various actions for manipulation of Object and Context
Action - NEW OBJECT
This action creates a new object from object specification and sets it as the target object. It takes
only Primary Object as the Parameter.
Syntax
NEW OBJECT::
Where,
is the type of the object to be created, and
is the unique identifier of the object. If this is an existing object in DB, then the
further manipulations are performed on that object, else it creates a new object altogether.
Example:
01: NEW OBJECT:Stock Item :”My Stock Item”
This creates a new object in memory for Stock Item and sets it as the target object. Later, by using
other methods of this, the target object can be set and saved to the Tally DB.
Current Object and Target object context. When a function is invoked, the target object context will
be the same as the current object context of the caller, i.e., the target object will be set to the
current object.
Here, we will discuss the various actions for manipulation of Object and Context
Action - NEW OBJECT
This action creates a new object from object specification and sets it as the target object. It takes
only Primary Object as the Parameter.
Syntax
NEW OBJECT:
Where,
further manipulations are performed on that object, else it creates a new object altogether.
Example:
01: NEW OBJECT:Stock Item :”My Stock Item”
This creates a new object in memory for Stock Item and sets it as the target object. Later, by using
other methods of this, the target object can be set and saved to the Tally DB.
Skip to main content
Comments
Post a Comment