CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Ajax problem passing Parameter

Print topic Send  topic

Author Message
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.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.