nao estou conseguindo criar ‘parent’ no menus tree ! (menu dinamico)
sc_appmenu_reset(tree_mn_seguranca);
sc_appmenu_create(tree_mn_seguranca);
// Seleciona o menu principal
$prin = “SELECT
menuID,
m_titulo,
m_link,
m_parent,
m_ordem,
m_icon,
m_tipo
m_sair,
m_principal,
m_mn_item
FROM
menu_itens WHERE (m_mn_item=‘7’ and m_principal != ‘S’)”;
sc_lookup(ds,$prin);
foreach({ds} as $arr_menu) {
$id_item = 'item_'.$arr_menu[0];
sc_appmenu_add_item('tree_mn_seguranca', $id_item, 'item_7',
$arr_menu[1], $arr_menu[2],,$arr_menu[5]);
}