CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.

YesSoftware Forums -> CodeCharge Studio -> PHP

 On Click DLookup

Print topic Send  topic

Author Message

Posts: 44
Posted: 07/22/2014, 10:04 AM

I have an editable grid that I want to check to see the value in the database before I allow the update to happen.

I have found the help where they put code in the BeforeExecuteUpdate event that drops it out of the update and I am trying to get the value from the database using a dlookup in the server ON CLICK event of the submit button that populates a variable that the BeforeExecuteUpdate event checks.

Its not working.

My BeforeExecuteUpdate code:
 if ($VarSONUM != '') {   
   $orders2->DataSource->CmdExecution = false;  

My Button_Submit On Click DLookup:
    global $DBATR_MySQL;  
    global $VarSONUM;  
    $Page = CCGetParentPage($sender);  
    $ccs_result = CCDLookUp(SalesOrderNo, SO_SalesOrderHeader, "UDF_AMAZONORDERNO=".CCToSQL($Container->ds->f("AmznOrderID"),ccsText), $Page->Connections["ATR_MySQL"]);  
    $ccs_result = strval($ccs_result);  
    $VarSONUM = $ccs_result;

Am I missing another way to do this that would actually work?

Independent, self-employed, web developer.
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

Internet Database

Visually create Web enabled database applications in minutes.

Home   |    Search   |    Members   |    Register   |    Login

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