Hi everybody, i have a problem and i don't know how to resolve it.
I want to do this :
RECORD.SETFILTER(FIELD1,FIELD2,'=%1|=%2',VALUE1, VALUe2);
This code is impossible to do in Navision but nobody knows how can i do this code in different way.
Thanks a lot.
Comments
in navision you would do it using the option to mark records.
- mark the necessary records (ctrl-f1)
- if all records are marked, select view--> marked only
if you check the help, you will find that these steps can also be performed using funtions (mark(), markedonly())
Hope this helps
Do it this way:
If you want to select a simple range use the setrange command
rec.setrange(field,fromvalue,tovalue);
If you want to select some values do it like in the graphic interface
filterstring := 'value1|value2';
// Alternative: filterstring := strsubstno('%1|%2',value1,value2);
rec.setfilter(field, filterstring);
If you want to filter different fields the use the method above on each field
rec.reset;
rec.setfilter(field1,filterstring1);
rec.setfilter(field2,filterstring2);
Dont forget to reset all filters with rec.reset before you set the intended filters. Otherwise you can receive unexpected results from filtersettings you have done before.
You need an independend filter criteria which can be done by marking the records. Another possibility is to work with temporary tables.
So how to do:
Thanks a lot Christian.
Thank you Very Much Christian....