Selecting Line from subform

rksaurabh
Member Posts: 18
Hi,
I am creating a lookup for Item No. to select.The lookup open a form in which main form is item categorywise with subform as item list according to item group.Now the user has to select item from subform that has to come to the item No. #-o
can anybody help please?
Thanks in Advance.
I am creating a lookup for Item No. to select.The lookup open a form in which main form is item categorywise with subform as item list according to item group.Now the user has to select item from subform that has to come to the item No. #-o
can anybody help please?
Thanks in Advance.
0
Comments
-
Hi
Can u explain in easy way i cant recognise your problem... =;Devendra Kr. Sharma
IBIZ Consulting Services,India0 -
In purchase Order Requistion Form while selecting Itemno, instead of displaying item list form i am using main form and subform. Main form consists of Item category code and subform consist of item which is group as itecategory. Now i want to select item record from subform which should display in my purchase Order Requistion form.That's all.
Can it be possible?0 -
If understand you correct, perhaps something like
in the subform, create a function : GetItemNo with code EXIT(rec."Item No.");
in the form do also create a function GetItemNo with exit(currform.subform.form.GetItemNo));
To call your form.
form.lookupmode := TRUE;
If form.runmodal = Action::LookupOK THEN BEGIN
Item := form.GetItemNo;
END;
But it think the best way to do this is to make a new list form on the item table, and put a text box on it to filter the item cat. ? Write code in the triggers of the text box ?0 -
But where to call this code from
{
form.lookupmode := TRUE;
If form.runmodal = Action::LookupOK THEN BEGIN
Item := form.GetItemNo;
END;
}
and one more thing
EXIT(rec."Item No.");
it's saying that variable is expecting.0 -
In the lookup trigger of the field !!
==> You will have to give your function ( both ) a return value Code 200
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