|
|
Sergey Kornilov admin 9/29/2013 |
|
Yes, I guess you can add a dropdown box and a button to the menu page and save selected value to the session variable in button's OnServer code. |
|
|
|
bbarker author 9/30/2013 |
|
This is taking much longer that I thought it would.
|
|
|
|
Sergey Kornilov admin 10/1/2013 |
|
Yes, "company" needs to be replaced with the actual field name. I have to add that this sample code provides very little help here as it redirects user to another page while your requirement to save selected value in session variable. You will need a button and a custom dropdown box.
|
|
|
|
bbarker author 10/1/2013 |
|
Yes, "company" needs to be replaced with the actual field name. I have to add that this sample code provides very little help here as it redirects user to another page while your requirement to save selected value in session variable. You will need a button and a custom dropdown box.
RETAIN THE SELECTION>>
$_SESSION["idregion"] = $data["id_rgn"]; |
|
|
|
bbarker author 10/2/2013 |
|
Well, I just can't quite make it work. I'm getting messed up going between the Client BEFORE and the ONSERVER events. |
|
|
|
Sergey Kornilov admin 10/2/2013 |
|
You are asking for directions to the place that don't exist yet. Lets start by posting the following:
|
|
|
|
bbarker author 10/2/2013 |
|
This is how we pass data between client and server part. Yes, this is a mix of PHP and Javascript. This is how web applications work.
ClientBefore: we assign value to parameter named "txt" params["txt"] = "Hello"; Do I substitute $data["numberlisting"] for "Hello"??? OnServer: we do something with parameter named "txt" $result["txt"] = $params["txt"]." world!"; And, do I substitute $_Session["Number"] for $result["txt"]??? |
|
|
|
Sergey Kornilov admin 10/2/2013 |
|
It just doesn't work this way. On the client side (ClientBefore event) you do not have access to any PHP variables like $data["numberlisting"]. You need to use Javascript to get the value of selected dropdown item and pass it to the server side. |
|