This topic is locked

Custom Button Issue : Return False Still Process Server Code

2/11/2013 10:48:54 PM
PHPRunner General questions
R
rockrockers23 author

Client Before:



if (confirm('Do you want to save this transaction?'))

{



var description= prompt("Please enter description: ","Sample description");

if (description!=null && description!="")

{

params["txtDescription"] = description;

ctrl.setMessage("Saving entries..");

return true;

}

else

{

alert("Transaction NOT saved. Please enter a description for the selected transaction");

return false;

}




}

else

return false;


Everything is working fine except when I click (any) of the cancel button the Server side code still processed (updates...etc..).
I tried to print the returning value and says false (0) which is correct because cancel is clicked but still process my Server code.
Pls help.
Other Reference: http://xlinesoft.com/blog...ications/

Sergey Kornilov admin 2/11/2013

Hard to tell what might be wrong without seeing your application.
If you have a valid support contract 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. Make sure to supply instructions on reproducing the issue.

R
rockrockers23 author 2/12/2013



Hard to tell what might be wrong without seeing your application.
If you have a valid support contract 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. Make sure to supply instructions on reproducing the issue.


Ok

R
rockrockers23 author 2/12/2013



Hard to tell what might be wrong without seeing your application.
If you have a valid support contract 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. Make sure to supply instructions on reproducing the issue.


Ok

C
cgphp 2/12/2013

What version of PHPrunner are you using?

R
rockrockers23 author 2/12/2013



What version of PHPrunner are you using?


I'm using ver 6.0. I'll try to test 6.2 trial version if my code works. I don't understand actually. My project was originally build on previous version 5.+ This is upgraded technically but not the script because I only apply saving confirmation on 6.0 version.

C
cgphp 2/12/2013

It might be a 6.0 bug.