This topic is locked

Insert button

8/23/2010 3:22:17 PM
PHPRunner General questions
A
aramuni author

Hi,
I get a new button added via Insert button but the button works only one time.
It means I press the button, my code works fine, but I only get the button working if a press F5 and reload the page.
What's happening?
Tks a lot!

Sergey Kornilov admin 8/23/2010

Probably there is some issue with your code that doesn't return control to the main page. Hard to tell without seeing your files.
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.

A
aramuni author 8/24/2010



Probably there is some issue with your code that doesn't return control to the main page. Hard to tell without seeing your files.
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.


Hi,
I can post the application but the button code is very small. See this:
Client Before
// Put your code here.

params["txt"] = document.getElementById("comando").value;

ctrl.setMessage("Sending request to server...");

// Uncomment the following line to prevent execution of "Server" and "Client After" events.

// return;
Server
// Put your code here.

global $conn;

$comando = $params["txt"];

$maI=0;

for ($maI=0;$keys[$maI]!="";$maI++)

{

$imei = $keys[$maI]["IMEI"];

$var1 = "insert into Comando values (null,".$imei.",null,'0000-00-00 00:00:00','A','".$comando."')";

// $var1 = "insert into Comando values (null,CAST('".$imei."' AS UNSIGNED),null,'0000-00-00 00:00:00','A','".$comando."')";

db_exec($var1,$conn);

}
Cliente After
// Put your code here.

var message = result["txt"] + " !!!";

ctrl.setMessage(message);

A
ann 8/26/2010

Aramuni,
to return the value of the field use the following code (Client Before tab):

params["txt"] = document.forms.editform1.value_FieldName_1.value;



If it doesn't help please publish your project on Demo Account and open a ticket at http://support.xlinesoft.com sending a URL to your pages along with instructions on reproducing this error. 'Demo Account' button can be found on the last screen in the program.

A
aramuni author 8/26/2010



Aramuni,
to return the value of the field use the following code (Client Before tab):

params["txt"] = document.forms.editform1.value_FieldName_1.value;



If it doesn't help please publish your project on Demo Account and open a ticket at http://support.xlinesoft.com sending a URL to your pages along with instructions on reproducing this error. 'Demo Account' button can be found on the last screen in the program.


Tks, but this is not the problem.
I get a new button added via Insert button but the button works only one time.
It means I press the button, my code works fine, but I only get the button working if a press F5 and reload the page.
Tks again.

A
ann 9/9/2010

Aramuni,
It's difficult to tell you what's happening without seeing actual files.

Please publish your project on Demo Account and open a ticket at http://support.xlinesoft.com sending a URL to your pages along with instructions on reproducing this error. 'Demo Account' button can be found on the last screen in the program.