CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 On Click DLookup

Print topic Send  topic

Author Message
yourguide


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 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.