cancel
Showing results for 
Search instead for 
Did you mean: 

Event-AfterLoading Script

0 Kudos

Hi

I have some basic idea about scripting among Validation-Onsave, Event-AfterModified, Event-Beforesave.

while move on to Event-AfterLoding, I try to assign some values to some fields, as soon as my QA floorplan loaded. But I can't use as like normal script in Event-AfterLoding. It is showing that field is Read-Only.

Please share any documents related to Event-AfterModified. what kind of script I should use in this script file? What is AfterModified? Mostly where It is used in project? Please anyone help me to solve my doubt asp.

Thanks,

Sankaran.A

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member200567
Active Contributor

Hi San,

Check the following from SDK documentation.

8.3.2.1 Actions, Events, and Validations

● AfterLoading (only available for business objects)

You can implement this event to modify transient fields of the current node of a business object. The system

executes the AfterLoading event when it reads a node instance of a business object from the data base.

You cannot use an AfterLoading event to do the following:

○ Read and modify a transient field of another node

○ Modify a persistent field

○ Create or delete a node

○ Call an action

In case you wander what is a Transient field

7.2.2.20 Transient (Business Object)

You can use the Transient annotation to create transient fields. The data in such a field is not persistent, this means, it is not saved in the database. A transient field is filled after an AfterLoading event has been executed.

Best Regards

Fred

0 Kudos

thanks a lot @Fred.