Journal Batch Lookup
Samb
Member Posts: 18
I have created two new fields on a setup table. These new fields are Journal Template Name and Journal Batch Name. These will be for automatically sending information to a particular Gen. Journal. I have the lookup on the Journal Template Name working correctly, but the Journal Batch Name will only show the batches for the Journal Template Name = Assets. I am using the table relationship property on the field. My current relationship is:
"Gen. Journal Batch".Name WHERE (Journal Template Name=FIELD(Journal Template Name))
The object compiles correctly and I can manually enter the correct batch name.
"Gen. Journal Batch".Name WHERE (Journal Template Name=FIELD(Journal Template Name))
The object compiles correctly and I can manually enter the correct batch name.
0
Comments
-
I'd check the lookup list form to see if that has a filter in the form design.0
-
I have looked at both the Gen. Journal Template and the Gen. Journal Batch Tables. They both have the LookupFormIDs populated with the standard NAV lookups.
I found some code that was written in the 5.0 SP1 version and it works both classic and SQL. But after transfering it to the NAV 2009 client it is still only looking at the ASSETS template. I am placing the code on the field itself on the OnLookup section. I have tried both the lookup section of the table and form.
My code is:GenJnlBatch.SETRANGE("Journal Template Name","Cash Recpt Jnl Template"); GenJnlBatch.FILTERGROUP := 0; IF FORM.RUNMODAL(0,GenJnlBatch) = ACTION::LookupOK THEN "Cash Recpt Jnl Batch" := GenJnlBatch.Name;
I have run the debugger with a breakpoint at the start and it looks like the SETRANGE is not holding my Gen. Journal Batch variable.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
