![]() |
Sergey Kornilov admin 10/29/2012 |
Instead of executing this query try to print it on the web page to see if there are any syntax errors. $strUpdate = "update purchase_order set po_number='NU-".$formatted_value = sprintf("%04d", $values["rid"])."'where rid=".$keys["rid"]."";
|
N
|
nuggie author 10/29/2012 |
I do not know how to "Instead of executing this query try to print it on the web page to see if there are any syntax errors." |
![]() |
Sergey Kornilov admin 10/29/2012 |
That's why I posted a code sample you need to use. |
N
|
nuggie author 10/29/2012 |
Update - The event code works fine when I have the purchase_order table alone (no master detail). So this is highly likely related to the master-detail configuration. |
N
|
nuggie author 10/29/2012 |
Sorry Sergey, I thought that was my original event quoted, I know see the changes. |
![]() |
Sergey Kornilov admin 10/29/2012 |
If no query printed - some error happens even before this code is executed. |
C
|
cgphp 10/29/2012 |
Add a space between the single quote and the where word. Use keys array for keys not values. Try this version: $strUpdate = "update purchase_order set po_number='NU-".$formatted_value = sprintf("%04d", $keys["rid"])."' where rid=".$keys["rid"]; |
N
|
nuggie author 10/30/2012 |
Hi Cristian! |
N
|
nuggie author 11/2/2012 |
Not sure how I marked this as solved but is not solved and continues to be an issue without resolution. |
![]() |
Sergey Kornilov admin 11/2/2012 |
Here is solution: Post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program. We also need to know how to reproduce this error. |