kirchaj
Posts: 215
|
Posted: 05/15/2013, 6:39 PM |
|
I am having problems getting the dlookup before show function to work in CCS5. I had the same setup in CCS4 and it worked fine.
I am trying to retrieve a date using a parameter passed to the page. Code looks fine and there are no errors but nothing appears in the Label even though I have verified the date exists.
Here is what is generated from the dlookup settings
global $DBedtechaccount;
$Page = CCGetParentPage($sender);
$ccs_result = CCDLookUp("tbchk", "admit", "ssno='".CCGetParam("ssno","")."'", $Page->Connections["edtechaccount"]);
$ccs_result = strval($ccs_result);
$Container->stutbchk->SetValue($ccs_result);
any ideas on the problem?
Thanks.
TK
|
|
|
Lucius
Posts: 220
|
Posted: 05/15/2013, 9:32 PM |
|
Modify this code so it looks like:
global $DBedtechaccount;
$Page = CCGetParentPage($sender);
$ccs_result = CCDLookUp("tbchk", "admit", "ssno='".CCGetParam("ssno","")."'", $Page->Connections["edtechaccount"]);
$ccs_result = strval($ccs_result);
$Container->stutbchk->SetValue($ccs_result);
echo('ssno: '.CCGetParam("ssno","").'<br>');
echo('ccs_result : '.$ccs_result .'<br>');
die();
Then run the page once with this param present to see what is the issue.
|
|
|
kirchaj
Posts: 215
|
Posted: 05/15/2013, 11:04 PM |
|
I tried that and nothing shows. It appears that the beforeshow event is not firing for some reason. I will dig into it more tomorrow and see if I can figure it out.
TK
|
|
|
kirchaj
Posts: 215
|
Posted: 05/16/2013, 6:35 PM |
|
For some reason the events file for this page was corrupted. I deleted it, regenerated the page and the ccdlookup worked perfectly as setup above.
|
|
|
|