This topic is locked
[SOLVED]

 Button event is not working

12/29/2011 12:33:30 PM
PHPRunner General questions
C
christoph30 author

Hello,
I hope someone could give me a hint how to solve the issue.
After hitting a button there should be a popup with a possibility to enter a invoice number.

This inoice number has to be updated on the selected entries on the list page.
My coding:
On the the function: "OnBefore":
params["invoicenumber"] = prompt('Pls enter the invoice number','');
On the Server: "OnServer":
for each val in keys

strUpdate = "update orders set invoicenumber = '".$params["invoicenumber"]."' where order_id=" &val("order_id")

CustomQuery(strUpdate)

next
But after hitting the button, nothing happen.
Does someone has an idea/hint for me?

Thanks in advance.

Chris

C
cgphp 12/29/2011

The foreach block is not valid php code.

C
christoph30 author 12/29/2011



The foreach block is not valid php code.


Hello,
I have this from here:
http://xlinesoft.com/asprunnerpro/docs/inserting_button.htm
What could be the correct coding?

Thanks
Regards,

Chris

C
cgphp 12/29/2011

That page is for asprunner. The correct page is: http://xlinesoft.com/phprunner/docs/inserting_button.htm

C
christoph30 author 12/29/2011



That page is for asprunner. The correct page is: http://xlinesoft.com/phprunner/docs/inserting_button.htm


oh my good.. Thank you, thank you, thank you :-) It works now.