Lookup form in Dataport

hawwa
Member Posts: 106
Is it possible to call a Lookup Form from the Request Form in a Dataport. For example, I want to allow user select the Jornal Batch Name in the Request From in dataport. Is it possible for me to do a lookup to Form 251 - General Journal batches in the Request Form in Dataport.
Thanks
Thanks
0
Comments
-
yes it is.0
-
Hi Ara3n,
Can you please let me how to do it.
I have a dataport that will import data into Gen. Journal Line table. But before the import begin, I want to allow user to select the Journal Batch Name.
I tried to create a textbox at the request form and set the SourceExpr to "Gen. Journal Line"."Journal Barch Name" but it is not working.
Thank you very much0 -
Hi Hawwa,
Not to hard you can do something like this on the Onlookup Trigger
GenBatches.RESET;
GenBatches.SETRANGE(GenBatches."Journal Template Name",GenTemplateName);
CLEAR(FrmGenBatches);
FrmGenBatches.SETTABLEVIEW(GenBatches);
FrmGenBatches.LOOKUPMODE:=TRUE;
IF FrmGenBatches.RUNMODAL = ACTION::LookupOK THEN BEGIN
FrmGenBatches.GETRECORD(GenBatches);
GenBatchName := GenBatches.Name;
END;
Where GenBatchName = Code
FrmGenBatches = Form = General Journal Batches
GenBatches = Record= Gen. Journal Batch
Cheers,
Tarun0 -
Hi Tarun,
the code is put in the OnLookup trigger of which control ?
Thank you0 -
Hi Hawwa,
On the lookup of the Generalbatch.For the template u dont need any code just the table relation .Hope that helps and i assume u understand why the code is like that bcoz of the fact all journal batches are created based on the journal templates . So for one particluar template u will have as many batches u want .
Regards,
tarun0
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