Filter two textbox
clembo
Member Posts: 122
I have two textbox.
Txt1 is linked with recordset1.
Txt2 is linked with recordset2.
Form is linked with recordset3.
I want filetr Txt2 when I select a value (Lookup) from Txt1. But I cannot use Tablerelation..
How can I do this?
Txt1 is linked with recordset1.
Txt2 is linked with recordset2.
Form is linked with recordset3.
I want filetr Txt2 when I select a value (Lookup) from Txt1. But I cannot use Tablerelation..
How can I do this?
0
Comments
-
In the lookuptrigger from the textbox. ..
IF Form.RUNMODAL(0, RecordSetLookup) = ACTION::LookupOK THEN
RecordsetForm.SETRANGE(Field, Recordsetlookupfield);
Something like this ?0 -
but don't use the lookup only when your textbox 1 is editable and the user can insert manuell datas.
Because you need it then also on OnAfterValidate() (OrInputChange).
But what is with the case that the form is opend or a new rec is loaded? So you need also the filter for recset2 when you scroll trough the recs or open the form.Do you make it right, it works too!0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions