How to set environment variable in main html header and retrieve it from RPG
Posted: Mon Jan 09, 2023 12:02 pm
Hi Team,
Currently I'm working on web browser related application and also we already has a cordova mobile app for the same. Now, it has to work differently from mobile app when it opened via web browser or mobile browser. We tried to check the useragent but this seems to be not correct because we are unable to get it for mobile browser, as many of us are using various mobile browsers. Hence, we thought of adding http environment variable in main html header and retrieve it from RPG side. Kindly help me with adding environmental variable in html which can be accessed in RPGLE.
Thank you in advance! Muthu
Currently I'm working on web browser related application and also we already has a cordova mobile app for the same. Now, it has to work differently from mobile app when it opened via web browser or mobile browser. We tried to check the useragent but this seems to be not correct because we are unable to get it for mobile browser, as many of us are using various mobile browsers. Hence, we thought of adding http environment variable in main html header and retrieve it from RPG side. Kindly help me with adding environmental variable in html which can be accessed in RPGLE.
Thank you in advance! Muthu