Hi,
One project created in phprunner 5.2 has a master and a detail table. After adding a record in the master table, multiple records are inserted into the detail table. The redirect event from the master table opens the detail table list page with all the newly added records in Inline Edit mode. This has been working well with v5.2.
The master table Redirect code:
."");
exit();
The detail table list page with all records Edit-Selected was realized by adding a Code Snippet to the Editor page of the list page:
=="yes")
{
?><script>
if(!frmAdmin1.elements['selection[]'].length)
frmAdmin1.elements['selection[]'].checked=true;
for (i=0;i<frmAdmin1.elements['selection[]'].length;++i)
frmAdmin1.elements['selection[]'][i].checked=true;
setTimeout('$("a[@id^=ieditlink]").each( function() { if(this.id!="ieditlink_add") $(this).click(); });',1000);
</script>
<?php
}
Now with Runner 5.3, the codes don't work any more. I tried the Inline edit all records in the Javascript onload event for list page:
// define table name of current list page:
var tableName = 'TableName';
var pageObj = Runner.pages.PageManager.getAt(tableName, pageid);
pageObj.inlineEdit.editAllRecs();
but I don't know how to apply the PHP variable If statement: if ($_REQUEST["edit"]=="yes") under this environment.
Any help is highly appreciated. Thanks.