Greetings -
In the classic client this one is simple to handle, but I'm not sure how to approach it in the RTC...
I need to open a page with OK and Cancel buttons prompting the user to fill in some lines (so there is an underlying recordset). In the classic client, I use the "IF FORM.RUNMODAL(...) = Action::LookupOK THEN..." and all is fine. When I take the same approach in the RTC though, the form opens up in non-editable mode (like any list would) so the user has to right-click in the lines and select Edit to open an editable version. That's ugly. I've tried adding code to explicitly set EDITABLE to TRUE, but no luck.
In the classic client I could manually create my own form with OK and Cancel buttons with code behind the OK button to set a variable to TRUE (i.e. ClickedOK := TRUE), then I could read that back in my calling function. In the RTC I don't know if I can do the same thing...is it possible to manually define buttons to appear on a Page for OK and Cancel at the bottom?
Help!
0
Comments
Group Program Manager, Client
Microsoft Dynamics NAV
http://blogs.msdn.com/freddyk
The information in this post is provided "AS IS" with no warranties, and confers no rights. This post does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion.
Was any solution found for this problem? I am having the same problem where I am running the sales order page modally to allow the user to edit a record and then I do some processing with that record afterwards. I would like to be able to not do the processing if the user clicked cancel, but if I check the modal result the sales order lines show up as readonly (header details can be changed).
Does anyone know of a way around this problem?
use this isntead:
Johanna
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
But, the page is shown with Close button only and there are no OK and cancel button. Please advise. Thank you.
Johanna
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
InvNo is variable with data type Code.
Johanna
the best example is Chart Of Accounts..
If we lookup totalling field in COA when it is in View mode, we will have only close button in G/L Account List page.
If we open COA page in editable mode and click totaling, we will have Ok and Cancle buttons in G/L Account List page.
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
myPage.LOOKUPMODE := true;
IF myPage.RUNMODAL = ACTION::LookupOK THEN BEGIN
Message('Ok Clicked');
END;
pointing the myPage variable to page 36 (bill of materials) - the Ok / Cancel buttons do show up.
I added an action on which I added the above code in the OnAction trigger.
Henrik Metzger, Software Development Engineer, Dynamics NAV
MSFT