Difference between revisions of "Read Only Logic"

From ADempiere
Jump to: navigation, search
This Wiki is read-only for reference purposes to avoid broken links.
(wikify)
 
Line 27: Line 27:
 
**@Name@>J
 
**@Name@>J
 
**Strings may be in single quotes (optional)
 
**Strings may be in single quotes (optional)
 +
 +
[[Category:HowTo]]

Latest revision as of 02:26, 1 November 2009

Thought this needed its own section for elaboration: Here is the section in the ManPageW_WindowTabField (Scroll down to tab)

Described there as:

Logic to determine if field is read only (applies only when field is read-write)

  • Q: What field? ... The tab is linked to an entire table. Seems to grey out areas of the toolbar when the logic is true but the record can still be saved.

format := {expression} [{logic} {expression}]

expression := @{context}@{operand}{value} or @{context}@{operand}{value}

logic := {|}|{&}

context := any global or window context

value := strings or numbers

logic operators := AND or OR with the previous result from left to right

operand := eq{=}, gt{>}, le{<}, not{~^!}

  • Examples:
    • @AD_Table_ID@=14 | @Language@!GERGER
    • @PriceLimit@>10 | @PriceList@>@PriceActual@
    • @Name@>J
    • Strings may be in single quotes (optional)