locked
Assignment in the 1: n relationship is not quite working RRS feed

  • Question

  • Situation: Country 1: n city 1: n Shop. In addition, Country 1: n Shop.
    During the relationship, "City 1: n Shop," I have set up the assignment, so the information from the land of the city ends up in the Shop.
    It works well when I create a new Shop. But when I add an existing Shop in the city, the country will not be automatically added to the Shop.

    I have written a script onLoad () in the Shop. But he brings nothing if I not coming in the Shop.

    Do you have an idea?`

    Sebastian
    Friday, January 29, 2010 3:24 PM

Answers

  • Hi,

    Adding existing entities to a relationship does not use the mappingyou have created in your relationships.
    Scripts on forms are only executed when the form is open.

    You can use workflow:
    On change of attribute City on entity Shop, you can update the Country using the country attribute of your city......
    Or you could write a plugin, that should be registered to execute on entity Shopwhen attribute city changes.

    Bregds
    B
    Friday, January 29, 2010 4:07 PM

All replies

  • Hi,

    Adding existing entities to a relationship does not use the mappingyou have created in your relationships.
    Scripts on forms are only executed when the form is open.

    You can use workflow:
    On change of attribute City on entity Shop, you can update the Country using the country attribute of your city......
    Or you could write a plugin, that should be registered to execute on entity Shopwhen attribute city changes.

    Bregds
    B
    Friday, January 29, 2010 4:07 PM
  • thank you
    Saturday, January 30, 2010 9:32 AM