View source | Discuss this page | Page history | Printable version   
Toolbox
Main Page
Upload file
What links here
Recent changes
Help

PDF Books
Add page
Show collection (0 pages)
Collections help

Search

How to define Display Logic Evaluated at Server Level

Bulbgraph.png   This feature is available starting from 3.0PR17Q1.

Overview

With the introduction of this functionality, it is possible to define in Openbravo Display Logic that are going to be evaluated at Server Level.

This means that the expression for this particular Display Logic is going to be evaluated while generating the code for the final Window instead of being evaluated when the Window is loaded.

By doing so, it is possible to avoid blank fields when the field should not be shown. Instead, the fields are rearranged and the Window looks more clean.

Usage

In the Windows, Tabs & Fields Window, there is a new field named Display Logic Evaluated in the Server.

In this field, it is possible to define an expression that will be evaluated to decide whether that particular field must be shown or not.

This expression must follow the same syntactic rules that are used in the normal Display Logic. The expression can evaluate Preferences, but only those defined at System Level.

An example of an expression would be: @uomManagement@ = 'Y' & @enableNegativeStockCorrections@ = 'Y'

DisplayLogicServer1.png

Limitations

Since this functionality is going to be evaluated at a System Level (the visibility of the fields is going to be the same for all the Clients, Organizations and Users), it is possible to use Preferences, but only those ones that have been defined at System Level.

Retrieved from "http://wiki.openbravo.com/wiki/How_to_define_Display_Logic_Evaluated_at_Server_Level"

This page has been accessed 759 times. This page was last modified on 11 November 2016, at 07:18. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.