CoreBOSBB
Field Dependency Business Mapping - set value from field - Printable Version

+- CoreBOSBB (https://discussions.corebos.org)
+-- Forum: Support (https://discussions.corebos.org/forumdisplay.php?fid=17)
+--- Forum: Administrator Support (https://discussions.corebos.org/forumdisplay.php?fid=8)
+--- Thread: Field Dependency Business Mapping - set value from field (/showthread.php?tid=2066)

Pages: 1 2


RE: Field Dependency Business Mapping - set value from field - radu - 01-14-2021

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


RE: Field Dependency Business Mapping - set value from field - joebordes - 01-14-2021

Great! Thanks for sharing


RE: Field Dependency Business Mapping - set value from field - radu - 01-14-2021

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.