crush899
Posts: 22
|
Posted: 06/05/2012, 10:53 AM |
|
Hi all-
I need help retrieving a parameter "order_id" and populating the hidden field "order_id" in a record which is being inserted into via the form "hcpc" with the parameter.
I have tried inserting code into the page's beforeshow event but I can not get this to work.
i've tried the following code:
global $hcpc;
global $Conection2;
$hcpc->order_id->SetValue(CCDLookUp("order_id", "emr_sv1_2400", "order_id=" . CCGetFromGet("order_id", "0", $Conection2));
I know this wrong but I need to understand why and how to make this work consistently.
Any assistance and knowledge is appreciated.
|
|
|
DataDoIT
|
Posted: 06/05/2012, 11:16 AM |
|
For your hidden field, you can either:
1. Set the Default Value to CCGetParam("order_id", ""). That's under
the Data tab for the hidden field control.
2. Use the Retrieve Value for Control action in the hidden field control
Before Show event. Same as above set to CCGetParam("order_id", "").
|
|
|
crush899
Posts: 22
|
Posted: 06/05/2012, 11:34 AM |
|
Thank you very much that worked nicely.
|
|
|
|