CoreBOSBB

Full Version: Field Dependency Business Mapping - set value from field
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I duplicated the profile(created a new one based on the old one), reallocated some users and it worked Wink. I think it was something with the profiles, those users had the same view access like me just different profile and some different groups.. So in the end it works Wink. here is the map i'm using it does what it supposed to be doing, defaulting a custom number field to remaining units:

Code:
<map>
  <originmodule>  <originname>InventoryDetails</originname> </originmodule>
<dependencies>
<dependency>
    <field>cf_1218</field>
    <condition>[{"groupid":"1",
     "columnname":"cf_1218",
     "comparator":"e",
     "value":"1",
     "columncondition":""}]
    </condition>
        <actions>
        <function>
            <field>cf_1220</field>
            <name>fieldDep_CopyFieldValue</name>
            <parameters>
              <parameter>remaining_units</parameter>
            </parameters>
        </function>
        <change>
            <field>cf_1218</field>
            <value>0</value>
        </change>
    </actions>
</dependency>
<dependency>
    <field>inventorydetails_no</field>
    <actions>
        <function>
            <field>cf_1220</field>
            <name>fieldDep_CopyFieldValue</name>
            <parameters>
              <parameter>remaining_units</parameter>
            </parameters>
        </function>
        <readonly>
            <field>quantity</field>
        </readonly>
        <readonly>
            <field>units_delivered_received</field>
        </readonly>
        <readonly>
            <field>remaining_units</field>
        </readonly>
        <readonly>
            <field>inventorydetails_no</field>
        </readonly>
    </actions>
</dependency>
</dependencies>
</map>

Sorry for the false alarm Smile
Great! Thanks for sharing
And thank you for your dedication and patience with us, novices Wink
The map above is a nice example of also using a custom checkbox in the condition of the first dependency Wink.
Pages: 1 2