Dependency to make field read-only after add relationships from the subpanel

I want to make the field read-only after add relationships from the subpanel. From the subpanel, I am pulling one field value from a related module and save in the parent module filed. Then I want to make the parent module filed read-only.

And want to read-only always if the relationship record is available else need to remove read-only.

Parent Module:

Related Module:

Parents
  • Let me know if I got the idea:

    Parent module has subpanel of module Inventory Management.

    Parent module has the field Storage Condition whose value come from field End Condition in related module Inventory Management.

    The field Storage Condition on parent module should be readonly if it has been linked a record in subpanel of Inventory Management.

    Is that right?

    If so then I have some questions:

    What should happen if 2 or more records are linked through subpanel Inventory Management? Should Storage Condition on parent module be updated according to latest linked Inventory Management?

    I suppose the relationship between parent module and Inventory Management is M:M, right? If so then regular dependencies will not work.

    André Lopes
    Lampada Global
    Skype: andre.lampada
Reply
  • Let me know if I got the idea:

    Parent module has subpanel of module Inventory Management.

    Parent module has the field Storage Condition whose value come from field End Condition in related module Inventory Management.

    The field Storage Condition on parent module should be readonly if it has been linked a record in subpanel of Inventory Management.

    Is that right?

    If so then I have some questions:

    What should happen if 2 or more records are linked through subpanel Inventory Management? Should Storage Condition on parent module be updated according to latest linked Inventory Management?

    I suppose the relationship between parent module and Inventory Management is M:M, right? If so then regular dependencies will not work.

    André Lopes
    Lampada Global
    Skype: andre.lampada
Children