I have a List and details app for the clients entity, when the user clicks the addnewandedit button I want to open a custom modal screen with a limited number of fields.
In the guide it says that creating a new 'details' screen and setting this as default should do this, but it doesn't use the custom screen and still uses the auto generated one.
I tried overriding the button with application.showcustomAddClient() but this opens it as a tab, not as a modal window like the auto generated one does.
I then tried setting the customaddclient as a modal window but now when I click on addandeditnew I get a button which I have to click, which then opens the screen as a modal window, I can't work out why it won't open the modal window directly?
I tried calling the application.showscreen(customaddclient,Enumerable.Empty<object>()) but get an error in the syntax.
Any help on how to specify which modal screen to use for a custom addandeditnew would be very helpful.