Menu

NewAction

rolie
2014-04-20
2014-04-22
  • rolie

    rolie - 2014-04-20

    How can I call the NewAction of an Entity from a different Entity? The entities are independent of each other but both entities have a same superclass. So I am showing both entities in a single list.

    Can I choose which type of entity to create when New is click?

     
  • Javier Paniza

    Javier Paniza - 2014-04-22

    Hi Rolie,

    Can I choose which type of entity to create when New is click?

    Currenlty there is not an automatic way to solve this. It would be nice to have it for future OX releases. However, it easy to implement your own solution. For example, you could have two new actions, one for each entity type. In the action code you can call getView().setModelName("MyEntityType").


    Help others in this forum as I help you.

     

Log in to post a comment.