This topic is locked

Automatic click for re-search tokens.

10/8/2014 4:37:18 PM
PHPRunner General questions
N
nisicafe author

Hello friends.

phpRunner 7.1-8
I want to send automatic click to a buttom 'searchButtTop1' in a "list page" on "inline add" mode.

I use this code in javascrip onload event(Add page) and work ok, but when same "list page" is used in Add on fly new values, not work because the button is not "#searchButtTop1", now is "#searchButtTopXX" in this popup. I try to use "#searchButtTop"+pageid but not work.
// token field to re-search affter add record

var Cntrl = Runner.getControl(pageid, 'token');
// Set the token and re-search.
this.on('afterInlineAdd', function( fieldsData ) {

ctlSearchFor1.value=Cntrl.getValue();

$("#searchButtTop1").click();

} )
Please save my life.
Thank you.
Jose.

Sergey Kornilov admin 10/9/2014

Jose,
I'm afraid I don't understand what exactly needs to be done here.
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.