This topic is locked

How to expand details tables link for receord x when multiple tables are linked to master using "single link for all tables"

2/7/2018 12:41:40 PM
PHPRunner General questions
B
bleigh@yucatech.com authorDevClub member

Hi All, looking for a way to expand(via code) master record x's "single link for all tables" . ive found this in the help text
// get list of record IDs

var recsId = pageObj.inlineEdit.getRecsId();

// get details table short table name

var dTableName = 'DetailsTableName';

var sTableName = Runner.pages.PageSettings.getShortTName(dTableName);

// click preview link of record number X

$("#"+sTableName+"_preview"+recsId[X]).click();
which works fine if i only have 1 table. doesnt seem to work for master with single link to details though? Ive also tried substituting tablename_preview above with dtables_link to no avail.
Anyone have code that will do this or suggestion on how?
ajax pagination and sorting is on.
thanks in advance

admin 2/9/2018

Try this:

var recsId = pageObj.inlineEdit.getRecsId();

$("a#details_"+recsId[3]).click();


It will open details for record #3 on the List page.