How to set environment variable in main html header and retrieve it from RPG

Use this board for starting discussions, asking questions, and giving advice on Web programming for the IBM i platform (and predecessors.)
mkandhan
New User
Posts: 4
Joined: Mon Nov 23, 2020 9:06 am
First Name: MuthuKumar
Last Name: Kandhan
Company Name: Trimble Inc
State / Province: Outside Canada/USA
Country: India
Contact:

How to set environment variable in main html header and retrieve it from RPG

Post by mkandhan »

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

Who is online

Users browsing this forum: No registered users and 9 guests