List Form
Vineeth.R
Member Posts: 121
Dear Friends,
When i open a list form using the list form button or from the List Menu button it shows me the OK and Cancel Buttons. But if i write coding to call the list form it doesn't show me the buttons.
lvJob.RESET;
lvJob.GET("No.");
CLEAR(lvJobList);
lvJobList.fNonEditable('50108');
lvJobList.SETRECORD(lvJob);
lvJobList.RUNMODAL;
Even if i change the button property of "InvalidActionAppearance" to Normal, though it shows the button but it does not do the functions of ok and cancel. Please advise.
Thanks
Vineeth
When i open a list form using the list form button or from the List Menu button it shows me the OK and Cancel Buttons. But if i write coding to call the list form it doesn't show me the buttons.
lvJob.RESET;
lvJob.GET("No.");
CLEAR(lvJobList);
lvJobList.fNonEditable('50108');
lvJobList.SETRECORD(lvJob);
lvJobList.RUNMODAL;
Even if i change the button property of "InvalidActionAppearance" to Normal, though it shows the button but it does not do the functions of ok and cancel. Please advise.
Thanks
Vineeth
Thanks and Regards
Vineeth.R
Vineeth.R
0
Comments
-
lvJoblist.Lookupmode(True);
add the above statement before your Runmodal statement.0 -
you can also write
if form.runmodal(0,rec) = action::lookupok then
to show ok cancel button you must set lookup mode true otherwise you can change PUSHACTION property of ok and cancel button.0 -
Dear All,
The lookupmode is working now, thanks alot.
I have another issue now, I want to call the Function fNonEditable thats why i have used a form variable instead of using form.runmodal command. to focus on the particular job [from where i click job list menu button] while the job list is run i used the command SETRECORD. Now it focuses on the right job in the list form but if user wants to select some other job from the list when they select and click OK, its still pointing to the job which i had set. how to allow user to select diff job no from the list form and allow open that job when click OK?
lvJob.RESET;
lvJob.GET("No.");
CLEAR(lvJobList);
lvJobList.fNonEditable('50108');
lvJobList.SETRECORD(lvJob);
lvJobList.lookupmode(true);
lvJobList.RUNMODAL;
Regards
Vineeth.RThanks and Regards
Vineeth.R0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 322 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions