Hello All,
Can someone tell me How to get a lookup in a request form of a report for perticular Field??
* Here the desired field has its Table Relation Property Undefined.. Thn how can i get lookup at run time in a report.
Replies will be appreciated..!!
Comments
If needed you can also specify an alternative LookupFormID.
If you tell us exactly what you want to filter on, then we could propose a workaround.
Dynamics NAV Developer since 2005
RIS Plus, LLC
MVP - Business Apps
I m talking about the form in which we entered the fields by setting tht specific fields in the ReqFilterFields property of a Dataitem..
Now I need a lookup in a fields which hav its table relation in its property As <Undefined> in a table..
Hope Now u all get my Question...
Plz Reply if its possible hav a lookup overthr???? :roll:
Hope it helps!
Dynamics NAV Developer since 2005
1. You could make a variable and put it in the RequestForm in the Option tab, using property TableRelation.
Then use this variable to filter on your existing field.
2. You could add a field to the table, a flowfilter with a TableRelation. And then use C/AL code in the report to place a filter on the existing field.
3. You could make an extra data-item in the report.
I.e. if you wanted a lookup to the table Country, then you could add a data-item Country. Then the user could place a filter (with lookup) on field Code.
Here you could go two ways.
a. With C/AL code you could get this filter and apply it to your field.
And of course CurrReport.BREAK in the trigger OnPreDataItem Country.
or
b. Link the existing data-item(s) to the data-item Country.