I need to set a filter on a report which is the userid. That is instead of having the user entering his user id it is automatically filtered. Should I use setrange or setfilter because they don't seem to work out?
create a key of userid in bank ledger entry table.
In report
Change the dataItemTableView property to userid .
it will work.
1) Field or Key? do not mix that... why creating key with User ID if it is not necessary.
2) dataItemTableView has two parts - sorting (active key) and filters. Why to set sorting to USERID if you need filtering?
It seems that you are answering question which was not asked... 8-[
Comments
Consultant-Developper
http://www.CreaChain.com
Where BankLedgerEntry is of type record "Bank Account Ledger Entry". This code has been set up in the pre-data item.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
thats what i was talking about
In report
Change the dataItemTableView property to userid .
it will work.
1) Field or Key? do not mix that... why creating key with User ID if it is not necessary.
2) dataItemTableView has two parts - sorting (active key) and filters. Why to set sorting to USERID if you need filtering?
It seems that you are answering question which was not asked... 8-[
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.