Re: get session variable from grid to html page
If you mean for instance that Davids "<%A5 ?if(eval_valid("session.clientname"),session.clientname,"No Client Selected")%>" does not display anything, its because your session var does exist, but is blank.
Try:
dim session.clientname as c ' so it DOES exist, of you can dim it somewhere else as long as you guarantee it is dimmed by time it gets to this spot.
?if(session.clientname="",session.clientname,"No Client Selected")
At least do this:
cust_wait.a5w?cr={Caseref}&cl={Clientemail}&cn={Client1}&ad={Adviser}
And then on the target A5W page use xbasic to save cr, cl, cn and ad to their respective session vars.
That is one small step safer, not much.
This would be better but more work to encrypt and decrypt:
cust_wait.a5w?c=m%3cZ%3ae%26h7%60%2c%7f%27%5cMc%3aK%5cb%22%2da%7b%7b%7e%29x%40L1B%2da%2eg%23h%3e%3bsxoB
Couple other points:
- You say you want to display session.client, but session.client is NOT set by your URL. In case you have a typo on your A5W page or URL code.
- Your 'clientemail' field is going to have a @ special character in it.
- If adviser and client1 are common names, they may have embedded spaces and special characters. Spaces, special characters, should be encoded if they have to be included in the URL.
If you mean for instance that Davids "<%A5 ?if(eval_valid("session.clientname"),session.clientname,"No Client Selected")%>" does not display anything, its because your session var does exist, but is blank.
Try:
dim session.clientname as c ' so it DOES exist, of you can dim it somewhere else as long as you guarantee it is dimmed by time it gets to this spot.
?if(session.clientname="",session.clientname,"No Client Selected")
At least do this:
cust_wait.a5w?cr={Caseref}&cl={Clientemail}&cn={Client1}&ad={Adviser}
And then on the target A5W page use xbasic to save cr, cl, cn and ad to their respective session vars.
That is one small step safer, not much.
This would be better but more work to encrypt and decrypt:
cust_wait.a5w?c=m%3cZ%3ae%26h7%60%2c%7f%27%5cMc%3aK%5cb%22%2da%7b%7b%7e%29x%40L1B%2da%2eg%23h%3e%3bsxoB
Couple other points:
- You say you want to display session.client, but session.client is NOT set by your URL. In case you have a typo on your A5W page or URL code.
- Your 'clientemail' field is going to have a @ special character in it.
- If adviser and client1 are common names, they may have embedded spaces and special characters. Spaces, special characters, should be encoded if they have to be included in the URL.
Comment