$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);
 }
 //End prepare for Next Prev button
 //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 if ($pageObject->googleMapCfg['isUseGoogleMap']) {
     $pageObject->initGmaps();
 }
 $pageObject->addCommonJs();
 //fill tab groups name and sections name to controls
 $pageObject->fillCntrlTabGroups();
 if (!$inlineview) {
     $pageObject->body["begin"] .= "<script type=\"text/javascript\" src=\"include/loadfirst.js\"></script>\r\n";
     $pageObject->body["begin"] .= "<script type=\"text/javascript\" src=\"include/lang/" . getLangFileName(mlang_getcurrentlang()) . ".js\"></script>";
     $pageObject->jsSettings['tableSettings'][$strTableName]["keys"] = $keys;
     $pageObject->jsSettings['tableSettings'][$strTableName]["prevKeys"] = $prev;
     $pageObject->jsSettings['tableSettings'][$strTableName]["nextKeys"] = $next;
     // assign body end
     $pageObject->body['end'] = array();
     $pageObject->body['end']["method"] = "assignBodyEnd";
     $pageObject->body['end']["object"] =& $pageObject;
     $xt->assign("body", $pageObject->body);