Create a filter in a variable option

mar
Member Posts: 17
Hi
I want to set a filter to custumer ledger entry to select only invoices and bills with remaining amount.
Next i want to copy this to a new table.
how can i do this? Please, i need help!
I want to set a filter to custumer ledger entry to select only invoices and bills with remaining amount.
Next i want to copy this to a new table.
how can i do this? Please, i need help!

0
Comments
-
Something like this:
PS : if an entry has a remaining amount, it is Open. So I put a filter (and currentindex) on Open. This should give better reading performance.recCustLedgerEntry.RESET; recCustLedgerEntry.SETCURRENTKEY(Open); recCustLedgerEntry.SETRANGE(Open,TRUE); recCustLedgerEntry.SETFILTER("Document Type",'%1|%2' recCustLedgerEntry."Document Type"::Invoice, recCustLedgerEntry."Document Type"::Bill); IF recCustLedgerEntry.FINDSET THEN REPEAT CLEAR(recNewTable); recNewTable.TRANSFERFIELDSrecCustLedgerEntry); or recNewTable."Field 1" := recCustLedgerEntry."Field 1"; recNewTable."Field 2" := recCustLedgerEntry."Field 2"; ... recNewTable.INSERT(FALSE); UNTIL recCustLedgerEntry.NEXT = 0;
Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
thanks a lot!
Could you tell me where should i put that?
i munst confess that i'm not a programer.. i'm trying to...
O:)0 -
You can create a codeunit and put it in the OnRun-trigger.
Or a report and put it in the OnPreReport or OnPostreport trigger.
Or in a form in the OnOpen-trigger. Or in a function that is called by a button on the form.
There are so many possibilities.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0
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