You can edit the script then well and good else you need to. Use the qvw for reference. Make sure you utilize the variable such that it can be used across apps.
This one is for Qlikview. We had the same requirement in my previous organization where we used the approach to solve it. It was a while back and if i correctly remember this is the qvw we used for reference. We had to change the url of Nprinting , the appname and it was up and running . Let me check if i find anything that can help you.
You can edit the script then well and good else you need to. Use the qvw for reference. Make sure you utilize the variable such that it can be used across apps.