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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
Hi Rolie,
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.