For the variable's expression, use the 2nd option, enclosing the qvws name in sigle quotes: =if ($(TDPRFX)= 'D_', 'E2E-Prozess-KPI Vorabversion.qvw', 'E2E-Prozess-KPI Dashboard.qvw')
For the action, it is important to enclose the dollar-sign expansion in single quotes, and with the equal sign at the beginning: ='$(v_MgmtModus_App)' . If you try a different syntax, it will not work.
It is supposed to work, I tested it! If it is not working, pay attention to the syntax.
your suggestion seems more elegant than the one I implemeted - I created a copy of a text box object and paasted it over the original text box object. then i edited the show on condition filed to show the corresponding object depending on weather the object is in production or in dev environment.
Problem is - now I can't find this invisible object. Can you please advise me on how to find it so i can try to implement your approach? Thanks!
I think it should open the document automatically and you do not have to define an environment for that.
You just need to specify the document name and make sure that the document is available on PROD Access Point as well as DEV Access Point.
as long as the documents are under User Document irrespective of environment it can be accessed from Access Point.
Here it is:
Variable v_MgmtModus_App is so defined:
if ($(TDPRFX)= 'D_', E2E-Prozess-KPI Vorabversion.qvw, E2E-Prozess-KPI Dashboard.qvw )
(pay attention to TDPRFX variable)
Text object contains following in Actions->Document field
It is NOT functioning
By the way, when I enter following =$(v_MgmtModus_App) in the text field of a text object, I get the right output -> E2E-Prozess-KPI Dashboard.qvw
So the problem is like before -> seems as if in Actions->Document filed of a text document it is NOT POSSIBLE to use QV statements.
It seems as if QV expects ONLY the document name.
Can somebody confirm that? And if that is true, is there any way to go around that?