User Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:adminmanual:businessmappings:field_dependency [2019/01/05 00:32]
joebordes [Examples]
en:adminmanual:businessmappings:field_dependency [2019/03/06 15:12] (current)
gmoshi
Line 1: Line 1:
 ====== Field Dependency Business Mapping ====== ====== Field Dependency Business Mapping ======
  
-This type of map permits you to define dependencies between fields in edit mode. For example, it will permit you to make a field mandatory ​or not depending on the value selected in a given field or to change the available values in a picklist depending on the value.+This type of map permits you to define dependencies between fields in edit mode. For example, it will permit you to make a field readonly (not editable) ​or not depending on the value selected in a given field or to change the available values in a picklist depending on the value.
  
 The goal of this mapping is to define a set of rules/​conditions and actions to be applied while editing a field in a coreBOS form. The goal of this mapping is to define a set of rules/​conditions and actions to be applied while editing a field in a coreBOS form.
Line 31: Line 31:
 { {
  "​groupid":"​number that identifies the group of conditions",​  "​groupid":"​number that identifies the group of conditions",​
- "​columnname":"​coreBOS column identifier"​+ "​columnname":"​coreBOS column identifier ​or simply the column/​field name"
  "​comparator":"​comparison operator"​  "​comparator":"​comparison operator"​
  "​value":"​text to look"  "​value":"​text to look"
Line 37: Line 37:
 } }
 </​code>​ </​code>​
- +
 The actions supported are: The actions supported are:
  
Line 97: Line 97:
         </​readonly>​         </​readonly>​
         <​collapse>​         <​collapse>​
 +        <​block>​sponsor</​block>​
         </​collapse>​         </​collapse>​
     </​actions>​     </​actions>​
Line 261: Line 262:
         </​hide>​         </​hide>​
         <​collapse>​         <​collapse>​
-            <field>​LBL_ADDRESS_INFORMATION</​field>+            <block>​LBL_ADDRESS_INFORMATION</​block>
         </​collapse>​         </​collapse>​
     </​actions>​     </​actions>​
Line 293: Line 294:
         </​hide>​         </​hide>​
         <​collapse>​         <​collapse>​
-            <field>​LBL_ADDRESS_INFORMATION</​field>+            <block>​LBL_ADDRESS_INFORMATION</​block>
         </​collapse>​         </​collapse>​
     </​actions>​     </​actions>​
Line 384: Line 385:
 <​dependency>​ <​dependency>​
     <​field>​bill_country</​field>​     <​field>​bill_country</​field>​
-    ​<​conditions>​ +    <​condition>​ 
- <​condition>​ +
-           <groupid>1</​groupid>​ +    {"groupid":"​1", 
-           <​field>​bill_country</​field>​ +  "​columnname":"​bill_country", 
-           <comparator>s</​comparator>​ +  "​comparator":"​s", 
-           <value>A</​value>​ +  "​value":"​A", 
-           <columncondition>​or</​columncondition>​ +  "​columncondition":""​} 
-        </​condition+
-    <​conditions>+    ​</​condition>​
     <​actions>​     <​actions>​
         <​change>​         <​change>​
Line 406: Line 407:
 <​dependency>​ <​dependency>​
     <​field>​bill_country</​field>​     <​field>​bill_country</​field>​
-    ​<​conditions>​ +    <​condition>​ 
- <​condition>​ +
-           <groupid>1</​groupid>​ +    {"groupid":"​1", 
-           <​field>​bill_country</​field>​ +  "​columnname":"​bill_country", 
-           <comparator>ns</​comparator>​ +  "​comparator":"​ns", 
-           <value>A</​value>​ +  "​value":"​A", 
-           <columncondition>​or</​columncondition>​ +  "​columncondition":""​} 
-        </​condition+
-    <​conditions>+    ​</​condition>​
     <​actions>​     <​actions>​
         <​editable>​         <​editable>​
Line 506: Line 507:
         </​change>​         </​change>​
        <​show>​        <​show>​
-            <field>​assigned_user_id</​field>+            <block>​assigned_user_id</​block>
         </​show>​         </​show>​
         <​setoptions>​         <​setoptions>​