setfilter?

nverma
Member Posts: 396
I want to create a filter that will fetch me all the data before a particular date.
fundsTransferredDate (is entered by the user and is off date type)
This is what I wrote, but its not working:
Clearly, typing '..' does not work.
Any suggestions>?
fundsTransferredDate (is entered by the user and is off date type)
This is what I wrote, but its not working:
ConsumerDisbursement.SETFILTER(..,fundsTransferredDate)
Clearly, typing '..' does not work.
Any suggestions>?
0
Answers
-
This should definately work. But it doesnt.
Im telling it to look at date field in the Consumer disbursement record...and look at all the dates till FundsTransferredDate."Consumer Disbursement".SETFILTER(Date,'..FundsTransferredDate');
It doesnt create a compiling error. But it creates a "FundsTransferredDate" is not a valid date. (i put that line of code in PreDateItem)0 -
Hello Nvarma,
Please Try following way filter:
"Consumer Disbursement".SETFILTER(Date,'..%1',FundsTransferredDate);
If Tips is useful and solved problem then please donot forget to mark it as solved.0 -
nverma wrote:This should definately work. But it doesnt.
Im telling it to look at date field in the Consumer disbursement record...and look at all the dates till FundsTransferredDate."Consumer Disbursement".SETFILTER(Date,'..FundsTransferredDate');
It doesnt create a compiling error. But it creates a "FundsTransferredDate" is not a valid date. (i put that line of code in PreDateItem)
Open the C/SIDE Reference Guide, type in 'SETFILTER' in the Search box and click the 'List Topics' button. Select where it says SETFILTER and click the 'Display' button. Read and study the details of how to use the syntax. I am looking at it now and it even has a code example how to get a variable into the filter string. This help topic has all the information for you to figure this out.
After you read that, and you still can't make it work, come back and tell me exactly what you did, what you expected to happen, and what actually happened.0 -
nverma wrote:That worked!!!0
-
If "Took Densters Advice" Then
MESSAGE('I learned something new on %1',TODAY)
Else MESSAGE('Thanks for the correct coding. Reading the ADG and/or C/Side Ref Guide sucks!');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