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.