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:
ConsumerDisbursement.SETFILTER(..,fundsTransferredDate)
Clearly, typing '..' does not work.
Any suggestions>?
Answers
Im telling it to look at date field in the Consumer disbursement record...and look at all the dates till 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)
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.
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.
RIS Plus, LLC
THANKS!!!
@Den - What you said makes sense now. Thanks. I learned something new today.
RIS Plus, LLC
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!');
http://www.BiloBeauty.com
http://www.autismspeaks.org
hahahahaha