Hello ,
Is there any simple way to get filter with not the filtered key-code in any table but the description field from the table ?
example:
the filter is "LOCATION CODE = 110"
GETFILTERS give me back "LOCATION CODE: 110 "
but I need "LOCATION: Store1 in Budapest"
.. or I have to cut the filter string and find the description from the table ...
Thanks for the answer
Imre
0
Comments
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
loc := "Table".GETFILTER("Location Code");
after that on pre section of the report where u want to keep it. Take the recordset of location table and setrange it with the "TABLE" and then if loc <> '' then through set range u get the name, this way u will be able to get the name,
same thing i did for Country too
If it is a report, I would create a field on the req. form with a variable and filter by hand in OnPreDataitem instead of having the user use the standard filters.
Do It Yourself is they key. Standard code might work - your code surely works.