salvomil
Posts: 5
|
| Posted: 04/23/2008, 10:34 PM |
|
Hi everybody.
I have a problem when I try to pass parameter to use as a index for a select:
I used the RemoteDLookUp Features associated to a control and it fires when the control change value (onChange).
The code is:
function Page_BeforeInitialize(& $sender)
{
$Page_BeforeInitialize = true;
$Component = & $sender;
$Container = & CCGetParentContainer($sender);
global $LW_OPERATORI; //Compatibility
//End Page_BeforeInitialize
//RemoteDLookUp1 Initialization @40-537C60A7
if ('OPERATORIMATRICOLARemoteDLookUp1' == CCGetParam('callbackControl')) {
$Service = new Service();
//End RemoteDLookUp1 Initialization
global $OPERATORI; // The form where controls are...
//RemoteDLookUp1 Displaying @40-EEB7AB27
$Result = CCDLookUp("and_cognome", "anadipe", "and_matricola=".$OPERATORI->MATRICOLA->GetValue()." and and_ute='S1' and and_sub_matr=1", new clsDBConnection1());
$Result = strval($Result);
$Formatter = $Service->GetFormatter();
echo $Formatter->Format($Result);
//End RemoteDLookUp1 Displaying
//RemoteDLookUp1 Tail @40-27890EF8
exit;
}
//End RemoteDLookUp1 Tail
//Close Page_BeforeInitialize @1-23E6A029
return $Page_BeforeInitialize;
}
I have a div where the result is put.
But when I change the value of the field I get this error:
Fatal error: Call to a member function on a non-object in C:\Inetpub\wwwroot\lancio_web\Admin\Configurazione\LW_OPERATORI_events.php on line 69
What's wrong? I do pass a parameter to a Ajax Feature?
Thank you, Salvo.
|
 |
 |
|