Request form on Dataport
tgupta
Member Posts: 86
Hi All,
I am using a table which has just one dummy field in it for this dataport .
This table is doing nothing .Now on the request form of the dataport i have few fields out of which two are similar to Type and No on the salesline table . Now there is no problem with the type field as i just define a variable with datatype option and define the option string .
Now i want when i select a particluar option value like G/L Account i shud get a look up for G/L Account table on the No field . similarly if i select resource i shud get a look up on resource table .
I have done this thing before with table and forms which is quite simple but i am not able to do it on the request form on dataports . Any help is appreciated . ](*,)
Many Thanks,
Tarun
I am using a table which has just one dummy field in it for this dataport .
This table is doing nothing .Now on the request form of the dataport i have few fields out of which two are similar to Type and No on the salesline table . Now there is no problem with the type field as i just define a variable with datatype option and define the option string .
Now i want when i select a particluar option value like G/L Account i shud get a look up for G/L Account table on the No field . similarly if i select resource i shud get a look up on resource table .
I have done this thing before with table and forms which is quite simple but i am not able to do it on the request form on dataports . Any help is appreciated . ](*,)
Many Thanks,
Tarun
0
Comments
-
Try something like this in the OnLookup trigger of the "No." Textbox on the RequestForm:
CASE Type OF Type::Item: IF FORM.RUNMODAL(0,Itm) = Action::LookupOK THEN BEGIN Text := Itm."No."; EXIT(TRUE); END; Type::Resource: IF FORM.RUNMODAL(0,Res) = Action::LookupOK THEN BEGIN Text := Res."No."; EXIT(TRUE); END; END; EXIT(FALSE);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