Cashing values that affect application behavior

   

Scope: managed applications, mobile applications, and ordinary applications.

If a value—such as a user setting—influences the behavior of multiple forms or commands, it is recommended that you use common memoization modules to minimize client/server calls. To do so, in the module properties, set "Reuse return values" to "During session". Use memoization modules only if the session scenario ensures stable and reliable operation even if the value is modified during the session.

Functions of a common memoization module must return all necessary values in one call.

For example, all forms of the Time Tracking subsystem require the following user parameters: Working hours, Shift start, and Shift end. All three parameters are returned as a single structure:

Settings = TimeTrackingSubsystemSettings();
StartTime = Settings.ShiftStartTime;
EndTime = Settings.ShiftEndTime;

Do not misemploy memoization modules when you define the configuration architecture. For example, it is recommended that you place the values that affect a form behavior in the form attributes, which will get the values when the form is created on the server. Employ memoization modules when a value affects multiple commands or forms.

Do not use variables from managed application modules and ordinary application modules to minimize client/server calls.

   

Icon/Social/001 Icon/Social/006 Icon/Social/005 Icon/Social/004 Icon/Social/002