Calling a method with a modified context

The context is part of the environment of a recordset. It is used to pass information such as the time zone and the language of the user from the user interface, as well as the contextual parameters specified in the actions. A number of methods in the standard add-ons use the context to adapt their behavior to these values. It is sometimes necessary to modify the context on a recordset to get the desired results from a method call or the desired value for a computed field.

This recipe will show how to get different output from the same method with the help of the context.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset