Hello
if a user wants to add a new item in a many-many detail tab he needs to click "link" and then new in the appearing dialog. Is there simple way to shot the new-action directly in the detail tab (similar to the new in a one-many detail tab)?
thanks
reinhold
We have closed this ticket because another page addresses its subject:
The LinkDetailViewController should not add objects in case of many-to-many association.
Hello Reinhold,
Sorry for the delay in responding. The item that deactivates the NewObjectViewController.NewObjectAction, is added in the NewObjectViewController.UpdateActionState method. To accomplish your task, override this method to remove the mentioned item, as shown in the following code:
public class MyWinNewObjectViewController : WinNewObjectViewController { public MyWinNewObjectViewController() { } protected override void UpdateActionState() { base.UpdateActionState(); NewObjectAction.Active.RemoveItem("IsAggregatedOrOneToMany"); } }
Please let me know if you need any further help.
Thanks,
Anatol