Hi everyone,
I am having trouble with visibility in a NAV 2013 report.
The report consists of three data items, independant from each other, and each dataitem is represented by a table in the layout.
There is a variable X of type option that can take three values:v1,v2 and v3.
If X=v1, only the table of the first data item should be displayed, if X=v2, only the table of the second should be displayed, if X=v3, only the table of the third data item should be displayed.
I declared X on the three dataitems with different names (x1,x2 and x3)and used the following visibility conditions:
=iif(Fields!x1.value=v1,FALSE,TRUE) for the first table
=iif(Fields!x2.value=v2,FALSE,TRUE) for the second table
=iif(Fields!x3.value=v3,FALSE,TRUE) for the third table
but the conditions did not work.
What's wrong???What shall I do???
Comments
this the list table when you are in preview mode and click on about this report
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Yes the data shows up but it is not displayed correctly except for the first condition(the first table)...
The two other conditions give wrong results (I get a blank report)....
Try to use integer or text variable instead the option type.
I had problems with option variables and finally i solved the issue using integers.
Bye
You mean I should use the integer value of the option?
I already tried that but it also didn't work except for the first list....
I read more in detail your problema and I have some question.
You say that there is a X variable with 3 posible values.
And then, you say that you declared the 3 variables in the 3 dataitems.
Why ?
Try this example
In the example, if you gives X variable value 1, you'll see customer
x= 2, vendors and X=3, ítems.
Bye
I have defined a global variable of Boolean type, did write code onafterget trigger of 1st data item to search other data item's value & changed the Boolean value to true or false.
Then set the visibility of my table in the RTC report to show a particular row (i.e. Header)
Manish