Dear All!
I have made a report "Stock Evaluation" on Item table. In our database, the Unit Price is comming from another table called "Sales Price".
So i made a variable in the report and am taking unit price in it from Sales price table.
The problem is how can i allow users to filter according to unit price like unit price > 2000 or < 3000 etc.
Please help
Thanks.
Do to others as you wish others to do to you.
0
Comments
In your case, you can filter like '>2000&<3000' to get every price between 2000 and 3000. '2000..3000' should work as well.
Is this what you want?
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
UnitPrice.SETFILTER("unit price",'%1',ReqFormValueFilter);
so i made a globalariable in the report and called "UnitPrice" and then write code in my report to populate this variable. Until here, i have no problem.
The problem is that now user wants to filter the report on the basis of Unit Price, which is a variable, so how can they filter on the basis of a variable?
The other problem is that the datatype of Unit Price in sales price table is decimal and if i make a new text box in request form, and keep it's datatype to decimal, it will not take any operator as > or <less than
please help.
SETRANGE("Unit price",unitpricefrom,unitpriceto);
or use one text box with variable of type CODE (fe. MyFilter) and then filter
SETFILTER("Unit price",MyFilter);
Thanks for your reply, i tried it but it is giving me compilation error
Type conversion not allowed
Decimal := Code
The column in the sales price table is of datatype decimal, and MyFilter is of type Code,
I tried to make the MyFilter decimal aswell but it will not take any operator.
Pls help.....
SETFILTER("Unit Price",MyFilter); (not "Unit Price",'%1',Myfilter)
I repaired it.