Skip to main content
Announcements
Defect acknowledgement with Nprinting Engine May 2022 SR2, please READ HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Is there any way to use variable in Qlikview for NPrinting connection?

HI,

Is there any way to use variable in Qlikview to connect to NPrinting (in On-Demand button) so to dynamically setup when migrating to other environment such as Development -> QA -> PROD? Otherwise, any way to dynamically setup when migrate to different environment?

Thanks in advance,

1 Solution

Accepted Solutions
Daniel_Jenkins
Specialist III
Specialist III

Hi Aye,

I was referring to using QlikView variables in the On-demand extension objects.

Taking my original example above of using the value of a variable called HostName in the Hostname parameter; Let's say your test NPrinting server is on localhost and production server is on 192.168.1.1. You simply use =HostName in the Hostname parameter. NPrinting will substitute it with the value of the variable HostName. You can keep the value of HostName as localhost as long as you are testing and simply change the value to 192.168.1.1 when you want to point to the production server. No need to touch the parameters in the extension object.

HTH - Daniel.

View solution in original post

6 Replies
Daniel_Jenkins
Specialist III
Specialist III

Hi Aye,

Yes you can use expressions to define On-demand settings. Click the fx to open the expression editor. In the below example the Hostname property is set to the value of a variable HostName using the expression =HostName

HTH - Daniel.

Not applicable
Author

Hi Daniel,

Sorry for late reply.

I tried to use the DefaultServerName variable from NPrinting in my Qlilview On-Demand button. But I always receive following error. I also cannot see those NPrinting variable in Qlikview. May I know where did you set your variable? Currently it seems Qlikview cannot see those NPrinting variable.

Thanks in Advance,

Not applicable
Author

Hi Daniel,

May I know where did you set the variable? It doesn't seems like NPrinting Environment variable. My Qlikview Dashboard cannot see the NPrinting variable.

Thank you,

Daniel_Jenkins
Specialist III
Specialist III

Hi Aye,

I was referring to using QlikView variables in the On-demand extension objects.

Taking my original example above of using the value of a variable called HostName in the Hostname parameter; Let's say your test NPrinting server is on localhost and production server is on 192.168.1.1. You simply use =HostName in the Hostname parameter. NPrinting will substitute it with the value of the variable HostName. You can keep the value of HostName as localhost as long as you are testing and simply change the value to 192.168.1.1 when you want to point to the production server. No need to touch the parameters in the extension object.

HTH - Daniel.

Not applicable
Author

HI Daniel,

Thanks so much. My issue has been solved.

Thank you for your time.

Regards,

gksmithlcw
Creator
Creator

Can dollar sign expansion also be used here?