This topic is locked
[SOLVED]

 ASPRunner 6.3 Javascript on load event

11/4/2010 11:03:14 AM
ASPRunnerPro General questions
L
lbragg author

Table name is "assign_task" and I have the following code placed in the List:Javascript on Load event:
var dTableName = 'assigntask';

$("a[@id^=ieditlink"+pageid+"
]").each( function()
{
$(this).click();
});
Unfortunately it doesn't open the inline edit for the items on the list page.

gps088 11/11/2010

Hi,

Actually I tried the same code in phprunner 5.3 and does not work too.
Somebody could help us, please.
thank you

J
Jane 11/12/2010

Hi,
here is code for ASPRunnerPro 6.3:

// define detal table name:

var dTableName = 'TableName1';

// please note you need to replace all "bad characters with _ (underscore) in the table name
// define table name of current list page:

var tableName = 'TableName2';
// define object of current page list

var pageObj = Runner.pages.PageManager.getAt(tableName, pageid);
//1. Simulate "inline add" click:

pageObj.inlineAdd.inlineAdd();
//2. Edit all records:

pageObj.inlineEdit.editAllRecs();
//get number of records on the page

var recsId = pageObj.inlineEdit.getRecsId();
3. Edit record number X, where X ranges from 1 to number of records on the page:

pageObj.inlineEdit.editRecByInd(recsId[X]);
4. Open detail inline preview:
// short table name

var sTableName = Runner.pages.PageSettings.getShortTName(dTableName);
$("#"+sTableName+"_preview"+recsId[X]).click();
5. //open X edit page in popup

$("#editlink"+recsId[X]).click();



Please note all these functions will work in new build only. This build will be available in a day or two.

W
waynes888 11/12/2010

Having same issue, onload javascript in inline add/edit no longer works in build 6375. I downloaded the latest build 6843 hoping it would fix the issue but it was even worse and it broke all my inline adds and edits to the point that no input fields were displayed so backed out of that build. Error message for this:

settings.tableSettings[tName] is undefined 6843 (RunnerPages.js - line 429)

J
Jane 11/19/2010

Wayne,
I recommend you to publish your project to th Demo Account and send URL to your pages to support@xlinesoft.com.