Hi
Due to certain fields which we need to hide from certain users, i have to create a new list form-XX (already done) and has to call it once the user press F5 from a specific form - AA . (We got few card forms based on Sales Header)How to go about this? Now when I press F5 from the Form - AA , Sales List is the one which is opening..but i want my new List form -XX to call from here...
Pls help
0
Comments
Do the following
on the form AA on the menu ite List remove the LookupTable and in the OnPush add the following code
Hope this helps
Albetr
What Albetr suggests will work fine but this means you will have to change all forms that lookup the table. Another suggestion is to modify the lookup/list form and use the VISIBLE/ENABLED property for the fileds in question depending on the user setup.
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html
Thanks for the valuable suggestions. As per suggested, on my FORM AA, Menu Button --> LIst , in the On Push I put the coding as Follows
IF FORM.RUNMODAL(FORM::"Sales List (New Form)",SalesHeader) = ACTION::LookupOK THEN
"No." := SalesHeader."No.";
After the modification, Once I press F5 from Form AA, the new list form "Sales List (New Form)" is opening. But if press the list button (on the tool bar) it's still opening the default Sales List Form. How to control this
Thanks a lot
In your Sales List standard form --> OnOpenForm()
I hope it helps ....... O:)
Technical Consultant, MS Dynamics NAV
Thanks for your help. some clarifications.....
So have to create new field 'lookup custom form' in the User setup table ? we are using Nav 4.0. Then also have to assign users who have to see the new list form at the setup ...is it?
It works when I press F5 from the card form after your coding suggestion . ie, when i press F5 from the form, it's opening the customised List form, but when press the LIST BUTTON on the TOOLBAR, it's still opening the standard List form and not my customised one...
So how to control the LIST button on the TOOLBAR to open a customised List form...
Awaits help.....
Yes.
The Users not entered in User Setup Table will see the standard List form only.
What we have to do :
1) Create a field 'lookup custom form' in User setup table.(This is form ID field - Integer)
2) Enter User IDs in the User Setup and their corresponding custom sales list form ID's.
3) Place the above code in the OnOpenForm() of Sales List form.
Make sure it doesn't interfere with any other customization.
I just tested, it is working for both F5 and list button. ...O:)
Technical Consultant, MS Dynamics NAV