$listPageObject->prepareForBuildPage(); // show page if (!$pdf && $listPageObject->isDispGrid()) { //add detail settings to master settings $listPageObject->fillSetCntrlMaps(); $pageObject->jsSettings['tableSettings'][$strTableName] = $listPageObject->jsSettings['tableSettings'][$strTableName]; $dControlsMap[$strTableName] = $listPageObject->controlsMap; foreach ($listPageObject->jsSettings['global']['shortTNames'] as $keySet => $val) { if (!array_key_exists($keySet, $pageObject->settingsMap["globalSettings"]['shortTNames'])) { $pageObject->settingsMap["globalSettings"]['shortTNames'][$keySet] = $val; } } //Add detail's js files to master's files $pageObject->copyAllJSFiles($listPageObject->grabAllJSFiles()); //Add detail's css files to master's files $pageObject->copyAllCSSFiles($listPageObject->grabAllCSSFiles()); } //$xt->assign("displayDetailTable_".GoodFieldName($strTableName), array("func" => "showDetailTable","params" => array("dpObject" => $listPageObject, "dpParams" => $strTableName))); $xtParams = array("method" => 'showPage', "params" => false); $xtParams['object'] = $listPageObject; $xt->assign("displayDetailTable_" . GoodFieldName($listPageObject->tName), $xtParams); $pageObject->controlsMap['dpTablesParams'][] = array('tName' => $strTableName, 'id' => $options['id']); } $pageObject->controlsMap['dControlsMap'] = $dControlsMap; $strTableName = "dbo.Readings"; } ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //Begin prepare for Next Prev button if (!@$_SESSION[$strTableName . "_noNextPrev"] && !$inlineview && !$pdf) { $pageObject->getNextPrevRecordKeys($data, "Search", $next, $prev); }