[this post was getting a bit long winded so I chopped it back]
The help and several forum posts reference a session variable $_SESSION[$strTableName.'_advsearch']
But this session variable is not documented in the help.
Is there a master list of session variables available, defines scope, when and how these session variables should be used, how they fit into the event lifecycle? When you click ShowAll or do a quick search what happens to these?
Can I overwrite this variable, for instance? Programmatically create a search filter?
global $strTableName;
if (isset($_SESSION[$strTableName.'_advsearch'])) {
$searchClauseObj = unserialize($_SESSION[$strTableName.'_advsearch']);
}
$fieldSearchData = $searchClauseObj->getSearchCtrlParams("FieldName");
$fieldSearchData = $searchClauseObj->_where[$strTableName."_srchFields"];
for($i=0; $i<count($fieldSearchData); $i++){
$fName = $fieldSearchData[$i]['fName'];
$val1 = $fieldSearchData[$i]['value1'];
$val2 = $fieldSearchData[$i]['value2'];
$srchCat = $fieldSearchData[$i]['opt'];
$srchNot = $fieldSearchData[$i]['not'];
echo "Search was completed.".", ";
echo "Search Field: ".$fName.", ";
echo "Search Option: ".$val1."
";
}
Then there are some variables are mentioned in help such as $_SESSION[$strTableName.'_asearchfor'] but no further official information appears to be available. When I test the $_SESSION[$strTableName.'_search'] (mentioned in help) it tends to always to be 0. When is it a 1 or 2? Also what is an 'integrated' search?