Changes

Advanced Logic

18 bytes added, 22:01, 28 May 2009
no edit summary
==Overview==
'''Object''': The object that is being controlled.
'''Condition''': A logical statement that when true will make the object statement true, and when false will make the object statement false.
 
* If the '''Object''' says "Show Level 1 Save Button", if the statement in the '''Condition''' field is true the Save button will be shown.
* If the '''Object''' says "Hide Top Invoice Tab", if the statement in the '''Condition''' field is true the Invoice Tab will be hidden.
''In the above example, users in role ID 1234 or role ID 1235 will be prevented from deleting contacts at Level 1.''
This is currently available for: - the '''Level 2 Copy''' button. - '''Hide Notes''' at '''Level One''', '''Level Two''' and '''Level Three'''.
 
 
i.e. Put the following into the '''Condition''' box:
 
<nowiki>instr(concat(',','@me.rolelist@',','),',roleid#,')</nowiki>
 
 
For example,
'''instr(concat(',','@me.rolelist@',','),',9999,') OR instr(concat(',','@me.rolelist@',','),',1111,')''' where 9999 and 1111 are role ids.
==Sample Condition Statements==
0
edits