Help me to sort out this problem

manishkutar
Member Posts: 19
I have one issue which I requires in my report.
I one data item with ReqFilterItem -> 'Document No.' and I also have one MenuField in RequestForm -> 'Vendor Bank Code'
Now I require is whenever user selects 'Document No.' and then goes to RequestForm to select 'Vendor Bank Code' then they should get list related to that Document No. Whole list of 'Vendor Bank Code' should not be displayed.
Please resolve this issue soon.
Thanx in advance.
I one data item with ReqFilterItem -> 'Document No.' and I also have one MenuField in RequestForm -> 'Vendor Bank Code'
Now I require is whenever user selects 'Document No.' and then goes to RequestForm to select 'Vendor Bank Code' then they should get list related to that Document No. Whole list of 'Vendor Bank Code' should not be displayed.
Please resolve this issue soon.
Thanx in advance.
Manish Kutar,
Senior Technical Consultant
manishkutar@gmail.com
0
Answers
-
You need to keep "Document No." on RequestForm.0
-
vijay_g wrote:You need to keep "Document No." on RequestForm.
I tried a lot but couldnt make it. I cant recognise where to write the code. I mean where to have filter for getting limited list in Vendor Bank Code. Or can you send me sample object for that.
Manish Kutar,
Senior Technical Consultant
manishkutar@gmail.com0 -
There are plenty of samples how to do conditional lookup in the Application code.
Search in all reports for statements like this:IF FORM.RUNMODAL(0,SomeRec) = ACTION::LookupOK THEN
orSomeForm.SETTABLEVIEW(SomeRec); IF SomeForm.RUNMODAL = ACTION::LookupOK THEN
There you can see that it is usually called from OnLookup trigger of some control.
SomeRec:record may have filters which you need to set above and then in a lookup form you will see filtered records.Stan Pesotskiy
Senior SDE - Dynamics Nav Application - Microsoft
This posting is provided "AS IS" with no warranties, and confers no rights.0 -
Just make 2 text box, One is for Doc No. and other is for Vendor Bank Code.
and write Code on Lookup trigger of Doc No.IF FORM.RUNMODAL(0,Rec) = ACTION::LookupOK THEN begin
DocNo := Rec.Document No.;
VendNo. :=Rec.Buy From Vendor No. ;
end;
Now write code on OnActivate and OnLookup trigger of Vendor Bank Code text boxOnActivate()
recVendBank.RESET;
recVendBank.SETRANGE(recVendBank."Vendor No",VendNo);
if recVendBank.FINDSET then
recVendBank.FILTERGROUP(2);
This will solve your Prob.0 -
Thanx Abhinav and Stanp.. It helped me alot..
Manish Kutar,
Senior Technical Consultant
manishkutar@gmail.com0
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