Required Filter Field not working
nikeman77
Member Posts: 517
hi all,
for report 211: Customer - Payment Receipt, required filter field look up not working?! supposingly when user running the report, it will prompt to filter by customer no./ posting date/ document no.
but when i click on the document no., list box for me to select from (FORM Customer Ledger Entries) not appeared !
the standard version are not working too..
i check my customer ledger entry table, there's a LookupFormID - FORM Customer Ledger Entries is being set,
i am able to open up FORM Customer Ledger Entries in object designer..
for report 211: Customer - Payment Receipt, required filter field look up not working?! supposingly when user running the report, it will prompt to filter by customer no./ posting date/ document no.
but when i click on the document no., list box for me to select from (FORM Customer Ledger Entries) not appeared !
the standard version are not working too..
i check my customer ledger entry table, there's a LookupFormID - FORM Customer Ledger Entries is being set,
i am able to open up FORM Customer Ledger Entries in object designer..
0
Answers
-
The lookup only works on the field "Customer No." as that field has a TableRelation set in the "Cust. Ledger Entry" table. The field "Document No." does not have a TableRelation set, so then no lookup is possible in this report.No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0
-
hi Luc,
thanks for replying, and from the system i need to set document no. as a PRIMARY key?0 -
nikeman77 wrote:hi Luc,
thanks for replying, and from the system i need to set document no. as a PRIMARY key?
you're not supposed to change the Cust. Ledger Entry's Primary Key. it will break Navision.
You need to handle the lookup trigger manually using coding.Microsoft Certified IT Professional for Microsoft Dynamics NAV
Just a happy frood who knows where his towel is0 -
You need to handle the lookup trigger manually using coding.
hi dans,
don't quite understand that, dans..
my assumption (correct me if i am wrong) i cant put document no. in required filter field, instead in the request form i need to create a text control
and put the code in it?
where can i get a reference of such coding ?0 -
hi dans,
when i put the coding into it..
i got an error:The type of the constant must be compatible with that of the Entry No. field, and the
length of the constant must not exceed the length of the field.
Type: Integer <-- Code
Field: Entry No. <-- SInv55-138
Table: Cust. Ledger Entry0 -
nikeman77 wrote:my assumption (correct me if i am wrong) i cant put document no. in required filter field, instead in the request form i need to create a text control and put the code in it?
that is correct.CustLedgEntryForm.LOOKUPMODE(TRUE); IF CustLedgEntryForm.RUNMODAL = ACTION::LookupOK THEN BEGIN CustLedgEntryForm.GETRECORD(CustLedgEntry); DocNo := CustLedgEntry."Document No."; END;
above is just a rough code and need a little bit of fine tune.Microsoft Certified IT Professional for Microsoft Dynamics NAV
Just a happy frood who knows where his towel is0 -
hi dans,
-the CustLedgForm would be the default lookup form for cust ledger entry table?
-thanks for pointing out in the primary key issues or i would be making a very serious mistake...of causing a duplicate entry number in cust. ledger entry table.. #-o0 -
nikeman77 wrote:-the CustLedgForm would be the default lookup form for cust ledger entry table?
Yup. Default standard one.
You're welcomenikeman77 wrote:-thanks for pointing out in the primary key issues or i would be making a very serious mistake...of causing a duplicate entry number in cust. ledger entry table.. #-o
Microsoft Certified IT Professional for Microsoft Dynamics NAV
Just a happy frood who knows where his towel is0
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
