Announcement

Collapse
No announcement yet.

DYnamic Menues

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • DYnamic Menues

    Hello,

    I have a sc mainmenu application like a MS mainmenu (file...). The is a item thats calls "modules" as Label and "item_3" as sc id.

    i will, that the menue item "Modules" (item_3) enhenced with my own modules as submenuitems.
    In the onExecute (and) in the onLoad eventhandlermethod of the menu app I wrote the following code.

    Code:
    If (sc_appmenu_exist_item('MainMenu','item_3')){
      sc_appmenu_add_item('MainMenu','item_31','Modules','EquipmentManager',form_equip_man,'','','');
    }
    else{
      sc_error_message('Mainmenue not enhanced!');
    }
    Whats happens? Nothing! No New Menuitem and no Errormassage.
    I try to call the sc_appmenu_create() macro (see the help topic in WebHelp on scriptcase.net), but than I have no Menuitems. Also I generate the code new, the Mainmanu is empty!! Not till I restart the scripcase than is the mainmenu app complete as i defined it.

    Whats wrong? Thanks for Help...

  • #2
    Re: DYnamic Menues

    I have not tried using sc_appmenu* so I would have setup an example and get back to you.

    This may not be the answer you want but ...

    Another approach that I use is to define all the menus I want in the app and use sc_menu_delete (or sc_menu_disable) to remove the items that I do not want displayed.

    Regards,
    Scott.

    Comment


    • #3
      Re: DYnamic Menues

      Here is a post I found.
      http://www.phpform.com.br/wordpress/

      Of course you will have to use Google Translate and paste the URL to read in the language of your choice.

      Regards,
      Scott

      Comment


      • #4
        Re: DYnamic Menues

        The dynamic menu sample has now been added to the online Samples.

        http://www.scriptcase.net/siteen/samples/tutoriais/menu/menu03.php]http://www.scriptcase.net/siteen/samples/tutoriais/menu/menu03.php[/url]

        Comment


        • #5
          Re: DYnamic Menues

          Looks like the dynamic menu sample in the online samples has been removed.

          Comment


          • #6
            Re: DYnamic Menues

            Ok, that was the dynamic menus, I now resolved. Therefore there is a very good example in sc_tickets project created by NetMaker. That's what I try to rebuilt on my spreadsheet and it works fine.
            Next I'm going to try implementing nested sets for treemenu application so that you can build a library from any table in the database each Treemenu

            Comment


            • #7
              Re: DYnamic Menues

              [quote author=chopper64 link=topic=1268.msg3787#msg3787 date=1263547012]
              Hello,

              I have a sc mainmenu application like a MS mainmenu (file...). The is a item thats calls "modules" as Label and "item_3" as sc id.

              i will, that the menue item "Modules" (item_3) enhenced with my own modules as submenuitems.
              In the onExecute (and) in the onLoad eventhandlermethod of the menu app I wrote the following code.

              Code:
              If (sc_appmenu_exist_item('MainMenu','item_3')){
                sc_appmenu_add_item('MainMenu','item_31','Modules','EquipmentManager',form_equip_man,'','','');
              }
              else{
                sc_error_message('Mainmenue not enhanced!');
              }
              Whats happens? Nothing! No New Menuitem and no Errormassage.
              I try to call the sc_appmenu_create() macro (see the help topic in WebHelp on scriptcase.net), but than I have no Menuitems. Also I generate the code new, the Mainmanu is empty!! Not till I restart the scripcase than is the mainmenu app complete as i defined it.

              Whats wrong? Thanks for Help...
              [/quote]





              >>>about this post...
              almost the same happen to my tree menu.
              when i create new item and set the target to con_print, the item is disable.
              but when it is set to other old application it is goes good.

              I tried to create the link target on 0nload but the sc_macros is not working.

              any help with this.

              thank you in advance..

              regards,
              Ghulma
              Regards,
              Ghulma

              Comment

              Working...
              X