Hello,
I have created a custom menu item and I got it working great. This menu item dynamically creates sub menus and those sub menus are direct links to a certain list page in my application. This sub menu link includes search parameters as well, for example ...._list.php?q=(fieldname~equals~SOMETHING). For some reason, the sub menu link only takes me to the list page without adding the search parameters. The weird thing is that when I hover over the sub menu item, it shows the correct url: http://server/application/table_list.php?q=(fieldname~equals~SOMETHING), but when I click the sub menu item, it only takes me to the list page: http://server/application/table_list.php. I have access to all of the tables through permissions.
The only thing I changed regarding the sub menu item is the background color of the menu item. Any clues as to why this no longer works? Below is the code I use for the sub menu item:
//Individual's Folders Menu
if ($menuItem->getTitle() == 'myfolder')
{
//Get the names of the categories from the user
global $conn;
$strColName = "SELECT DISTINCT folder_name FROM case_analysis_ir_folders WHERE ps = '".$_SESSION["UserID"]."'";
$resColName = db_query($strColName,$conn);
$menu = "</a>";
while ($title = db_fetch_array($resColName))
{
$menu = $menu."<a href='My_Folder_Data_list.php?q=(folder_name~equals~".$title['folder_name'].")'><b>".$title['folder_name']."</b></a>
";
}
$menuItem->setTitle($menu);
}
Thanks, have a great weekend,
Brian