C\AL code

dharshan
Member Posts: 37
Hi,
Could anyone tell me what is the use of following code?
ItemList.LOOKUPMODE(TRUE);
IF ItemList.RUNMODAL = ACTION::LookupOK THEN BEGIN
Text := ItemList.GetSelectionFilter;
EXIT(TRUE);
END;
Thanks in advance.
Could anyone tell me what is the use of following code?
ItemList.LOOKUPMODE(TRUE);
IF ItemList.RUNMODAL = ACTION::LookupOK THEN BEGIN
Text := ItemList.GetSelectionFilter;
EXIT(TRUE);
END;
Thanks in advance.
0
Comments
-
Hi
Where this code is written.
Lookupmode ok : means if on lookup user press ok then it will exit ...till then it wait for response
This return code tells you what action the user took.
Also look in to help of FORM.RUNMODAL (Form)0 -
ItemList.LOOKUPMODE(TRUE);
Sets the mode to lookup
IF ItemList.RUNMODAL = ACTION::LookupOK THEN BEGIN
If the user presses OK button then
Text := ItemList.GetSelectionFilter;
Run the GetSelectionFilter function of the form so that Text contains something like this: Item1|Item2|Item34
or like this:
Item1..Item32
So it builds a filter with for the records that the user has selected (Highlighted)
EXIT(TRUE);
Exit the function returning TRUE
END;0 -
Thanks dudes.
I am Trying to filter the records. In that i have student name,standard,section
Now i have a master table from that i should filter the record by Student name,or standard or section.
But wen i am selecting the student name its fetching the standard and section also.
The standard and section name should be empty still they press the look up button.0
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
- 320 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