Populating menu items from the database...is it possible?

hi
using :forms 10g
we have a requirement in forms where we need to populate the menu items from the database.first we used hiearchial tree where it was possible.but since the requirement changed i am not sure that whether the menu items can be populated by data from the database...will be glad if someone could throw some light on this issue...
thanks

You could always do it but would need to put a fix limit on the number of menu items.
For example you could create a set of menu items at design time with the visible property set to False.
While reading the database, you then set them to True while setting the label to whatever you require.
But it all depends also on what you want your menu items to do when selected.

Similar Messages

  • Populating Menu Items From the DataBase

    Using 10g
    hi
    is it possible to populate the menu items from the database using procedure?since our project is multilingual we have such a requirement..could someone throw some light on this?

    Hi ,
    Here is what you asked for.....
    PROCEDURE PRC_SET_MENUITEMS_ENABLED
    IS
       USERNAME_VAR PROSOPIKO.DBUSERNAME%TYPE;
          MENU_NAME_VAR MENUS_MODULES.MENU_NAME%TYPE;
          MENU_ID MENUITEM;
    BEGIN
          :SYSTEM.MESSAGE_LEVEL:='25';
       USERNAME_VAR:=FNC_GET_USERNAME;
       FOR z in (SELECT /*+LEADING(D C B A) index (A menu_modules_ind) index (D PROSOPIKO_AM_PRIMARY)*/
         DISTINCT MENU_NAME
            FROM MENUS_MODULES A, TASKS_MODULES B , TASKS_ROLE C ,PROSOPIKO D
            WHERE A.CODE_MODULE=B.CODE_MODULE AND B.CODE_TASK=C.CODE_TASK
             AND  C.CODE_ROLE=D.CODE_ROLE AND D.DBUSERNAME=USERNAME_VAR
             AND CODE_ORG_MONADA=:GLOBAL.CODE_TMHMA_VAR)
            LOOP
                  MENU_ID:=FIND_MENU_ITEM(Z.MENU_NAME);
               SET_MENU_ITEM_PROPERTY(MENU_ID,ENABLED,PROPERTY_TRUE);
               NEXT_RECORD;
            END LOOP;     
    END;     Regards ,
    Simon

  • I seem to be missing only the "Tools" and "Help" menu items from the top toolbar - is there a way to get them to appear?

    I tried reinstalling Firefox, but that didn't help, nor did resetting the toolbar settings is Safe Mode.

    In version 3.6, the user can hide the Menu Bar; see below
    '''<u>Menu Bar</u>''' (File, Edit, View, History, Bookmarks, Tools, Help) , see: <br/>
    http://support.mozilla.com/en-US/kb/Menu+bar+is+missing
    * Press F10, Menu bar will appear, click View, click Toolbars, click Menu bar
    * Press ALT, the Menu bar will appear, click View, click Toolbars, click Menu bar<br />
    * Hold down the ALT button while pressing V+T+M
    '''<u>Navigation Toolbar</u>''' (Back/forward, Refresh...Home, URL/Location Bar, Search Bar): Do one of the following
    #click View > Toolbars, click on "Navigation Toolbar" to place a check mark, OR#right-click the Menu Bar, click "Navigation Toolbar" to place a check mark. See: <br />
    #*https://support.mozilla.com/en-US/kb/Back+and+forward+or+other+toolbar+items+are+missing
    #*http://support.mozilla.com/en-US/kb/How+to+customize+the+toolbar
    #*http://kb.mozillazine.org/Toolbar_customization
    #*http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    #*http://support.mozilla.com/en-US/kb/Navigation+Toolbar+items
    '''<u>Bookmarks Toolbar</u>''': Same procedure as Navigation Bar except click "Bookmarks Toolbar".<br />
    '''<u>Status Bar</u>''': click View, click Status Bar to place a check mark<br />
    '''<u>Full Screen Mode</u>''': If you have no Toolbars or Tab Bar: Press F11 (F11 is an on/off toggle). See: http://kb.mozillazine.org/Netbooks#Full_screen<br />
    Also see: http://kb.mozillazine.org/Toolbar_customization_-_Firefox#Restoring_missing_menu_or_other_toolbars
    <br />
    You need to update your plugins. It is important to keep them updated due to continuing security fixes and improvements in those plug-ins:
    * Adobe Shockwave for Director Netscape plug-in, version 11.5
    * Adobe PDF Plug-In For Firefox and Netscape "9.3.3"
    * Shockwave Flash 10.1 r53
    * Java Plug-in 1.5.0_22 for Netscape Navigator (DLL Helper)
    **NOTE: Very old version. Read link below for instructions to remove old versions before downloading and installing the new version.
    #'''Check your plugin versions''': http://www.mozilla.com/en-US/plugincheck/
    #*'''Note: plugin check page does not have information on all plugin versions'''
    #'''Update Shockwave for Director'''
    #*NOTE: this is not the same as Shockwave Flash; this installs the Shockwave Player.
    #*Use Firefox to download and SAVE the installer to your hard drive from the link in the article below (Desktop is a good place so you can find it).
    #*When the download is complete, exit Firefox (File > Exit)
    #*locate and double-click in the installer you just downloaded, let the install complete.
    #*Restart Firefox and check your plugins again.
    #*'''<u>Download link and more information</u>''': http://support.mozilla.com/en-US/kb/Using+the+Shockwave+plugin+with+Firefox
    #'''Update Adobe Reader (PDF plugin):'''
    #*From within your existing Adobe Reader ('''<u>if you have it already installed</u>'''):
    #**Open the Adobe Reader program from your Programs list
    #**Click Help > Check for Updates
    #**Follow the prompts for updating
    #**If this method works for you, skip the "Download complete installer" section below and proceed to "After the installation" below
    #*Download complete installer ('''if you do <u>NOT</u> have Adobe Reader installed'''):
    #**Use Firefox to download and SAVE the installer to your hard drive from the link in the article below
    #**On the Adobe page, un-check any extra items (i.e. Free McAfee® Security Scan Plus) then click Download button
    #**If you see message just under tabs, DO NOT click the Allow button, instead click below that where it says "click here to download".
    #**Click "Save to File"; save to your Desktop (so you can find it)
    #**After download completes, close Firefox
    #**Click the installer you just downloaded and allow the install to continue
    #***Note: Vista and Win7 users may need to right-click the installer and choose "Run as Administrator"
    #**'''<u>Download link and more information</u>''': https://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox#Installing_and_updating_Adobe_Reader
    #*After the installation, start Firefox and check your version again.
    #'''Update Shockwave Flash'''
    #*Use Firefox to Download and SAVE to your hard drive from one of the links below; '''<u>the links take you directly to the download and you avoid the "getplus" download manager and "extras" (i.e., toolbars, virus scan links, etc.) on the main Adobe page.</u>'''
    #*SAVE to your Desktop so you can find it
    #*After download completes, close Firefox
    #*Click on the file you just downloaded and install
    #**Note: Vista and Win7 users may need to right-click the installer downloaded and choose "Run as Administrator"
    #**Note: Most browsers other than IE will also get updated with this one download
    #**Note: To update IE, same procedure '''<u>but use IE</u>''' to go: http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_ax.exe
    #*After installation, restart Firefox and check your version again.
    #*'''<u>Download links and other information</u>''':
    #** https://support.mozilla.com/en-US/kb/Managing+the+Flash+plugin#Updating_Flash
    #** '''<u>or</u>''' you can download, save, then run the manual installers for IE, then for Firefox (and all other browsers) from here: http://kb2.adobe.com/cps/191/tn_19166.html#main_ManualInstaller
    #* Also see: http://support.mozilla.com/en-US/kb/Installing+the+Flash+plugin
    #* Also see (if needed): http://kb2.adobe.com/cps/191/tn_19166.html#main_Uninstall
    #'''Update Java:'''
    #* Download and update instructions: https://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox
    #* Removing old versions: http://www.java.com/en/download/faq/remove_olderversions.xml
    #* After the installation, start Firefox and check your version again.

  • How do I remove the "Yahoo" Menu Item from the Menu Bar

    My Text Menu Bar - NO ICONS - Reads from Left to Right:
    File, Edit, View, History, Bookmarks, Yahoo, Tools, Help -
    After I updated to Firefox 5.
    How do I get rid of the "Yahoo" Menu Item

    You appear to be first to mention the Yahoo menu item of those I've seen here, and there are some different versions of the '''Yahoo Toolbar''' maybe you have a different extension but this is how it goes for the Toolbar. You might check for another extension that has "Yahoo" in the name and in the Control Panel.
    ''Yahoo Toolbar messes up Location Bar Search''
    '''Remove the Yahoo Toolbar'''
    # "Ctrl+Shift+A" (Add-ons Manager)
    # Select Puzzle piece on left-side for Extensions List
    # Find "Yahoo Toolbar" and click on "Uninstall" button, and restart Firefox. ''(if you really need to keep the Yahoo toolbar, you can hide the toolbar instead with customize, and still change all the search defaults as below)''
    '''Then to fix the default search engine''' used at the Location Bar, change the value of '''keyword.URL''' in '''about:config''' to one of the values shown in [http://kb.mozillazine.org/Location_Bar_search#Location_Bar_search_.28external_-_search_engine.29 Location Bar search] at MozillaZine.
    * Google Search (Google search results page)<br>'''http://www.google.com/search?ie=UTF-8&oe=UTF-8&q='''
    # type in '''about:config''' into the location bar (in a new tab)
    # if the warning message nonsense comes up uncheck the box '''before''' dismissing the dialog message
    # '''filter on keyword'''
    # right-click on '''keyword.URL''' and choose "modify" then paste in the Google search engine string of your choice.
    # # '''filter on keyword'''
    # right-click on '''browser.search.defaulturl''' and again choose "modify" then paste in the Google search engine string of your choice.
    # right-click on '''yahoo.ytff.search.popup_src''' ''(if it exists)'' and again choose "modify" then paste in the Google search engine string of your choice, if adventurous might see if "reset" would remove and see if gone in next session (well not for those keeping the extension).
    '''Avoiding the problems:''' Many software installations contain additional baggage know as crapware. The Yahoo Toolbar is packaged with Java [http://imageshack.us/photo/my-images/266/javainstall.png/ picture]
    More information on ask.com, Yahoo Toolbars
    * Uninstalling toolbars - MozillaZine Knowledge Base<br>http://kb.mozillazine.org/Uninstalling_toolbars
    '''More information on configuration variables''' available in
    [http://kb.mozillazine.org/About:config_entries about:config entries] and for users not familiar with the process there is [http://kb.mozillazine.org/About:config about:config] (How to change).
    ''Yahoo Toolbar messes up Location Bar Search''
    '''Remove the Yahoo Toolbar'''
    # "Ctrl+Shift+A" (Add-ons Manager)
    # Select Puzzle piece on left-side for Extensions List
    # Find "Yahoo Toolbar" and click on "Uninstall" button, and restart Firefox. ''(if you really need to keep the Yahoo toolbar, you can hide the toolbar instead with customize, and still change all the search defaults as below)''
    '''Then to fix the default search engine''' used at the Location Bar, change the value of '''keyword.URL''' in '''about:config''' to one of the values shown in [http://kb.mozillazine.org/Location_Bar_search#Location_Bar_search_.28external_-_search_engine.29 Location Bar search] at MozillaZine.
    * Google Search (Google search results page)<br>'''http://www.google.com/search?ie=UTF-8&oe=UTF-8&q='''
    # type in '''about:config''' into the location bar (in a new tab)
    # if the warning message nonsense comes up uncheck the box '''before''' dismissing the dialog message
    # '''filter on keyword'''
    # right-click on '''keyword.URL''' and choose "modify" then paste in the Google search engine string of your choice.
    # # '''filter on keyword'''
    # right-click on '''browser.search.defaulturl''' and again choose "modify" then paste in the Google search engine string of your choice.
    # right-click on '''yahoo.ytff.search.popup_src''' ''(if it exists)'' and again choose "modify" then paste in the Google search engine string of your choice, if adventurous might see if "reset" would remove and see if gone in next session (well not for those keeping the extension).
    '''Avoiding the problems:''' Many software installations contain additional baggage know as crapware. The Yahoo Toolbar is packaged with Java [http://imageshack.us/photo/my-images/266/javainstall.png/ picture]
    More information on ask.com, Yahoo Toolbars
    * Uninstalling toolbars - MozillaZine Knowledge Base<br>http://kb.mozillazine.org/Uninstalling_toolbars
    '''More information on configuration variables''' available in
    [http://kb.mozillazine.org/About:config_entries about:config entries] and for users not familiar with the process there is [http://kb.mozillazine.org/About:config about:config] (How to change).

  • Populating Image Item from 9i Database

    Hi All,
    I could store images into 9i database using Forms 6i Application. But I could not populate the stored images using Forms 6i application.
    I appreciate very much for any help.
    Thanks in Advance,
    Umasankar.

    Hi John,
    Sorry for not explaining the problem completely.
    Here is the details.
    We are using Forms 6i and Oracle 8i. We are also planning to upgrade the database to 9i. I have application developed in Forms 6i. Using that application to connect 9i database, I could store images (from client system) into the 9i database (Using read_image_file). When I execute the query from Forms 6i application, I could not see the image from database. I was working OK with images on Oracle 8i database.
    Thanks for your help.
    Umasankar.

  • Pulling menu items from a database table in an Insert form

    Hope someone can help with this...
    Basically my table structure is for Products which are sub divided into Categories.
    So I have a table Categories which is literally just category_ID and category.
    And table Products, with product_ID, category_ID, product etc.
    I have an insert form to add new categories.
    And an insert form to add new products.
    So to attach a product to the correct category, I'm trying to use a drop down box in my Add Product form that pulls the existing categories from the categories table...
    Which at least looks OK here:
    http://www.gbp.uk.com/admin/addProduct.php
    However, this is just entering a 0 into the category_ID field of my Products table.
    if anyone can help out with what is going wrong here, that would be much appreciated.
    The code for the category_ID field currently looks like this (I haven't touched it since ADDT created it):
    <select name="category_ID" id="category_ID">
                          <?php
    do {
    ?>
                          <option value="<?php echo $row_rsCategories['category']?>"<?php if (!(strcmp($row_rsCategories['category'], $row_rsproducts['category_ID']))) {echo "SELECTED";} ?>><?php echo $row_rsCategories['category']?></option>
                          <?php
    } while ($row_rsCategories = mysql_fetch_assoc($rsCategories));
      $rows = mysql_num_rows($rsCategories);
      if($rows > 0) {
          mysql_data_seek($rsCategories, 0);
      $row_rsCategories = mysql_fetch_assoc($rsCategories);
    ?>
                        </select>
                          <?php echo $tNGs->displayFieldError("products", "category_ID"); ?>
    Many thanks!

    Well done - Are you using ADDT's Dynamic lists and Forms together with the Master-Detail Wizards ?
    In the creation of the Dynamic Form you need to set the Category to display as a menu (looks like you have done that) and the menu properties need to be retrieved rom the Categories table.

  • Problem Populating Image Item From Database

    Hi All,
    I am using Oracle 9i & Forms 6i on Windows platform & working in client/server model. I created a form in which, I am reading an image file from the file system & then saving it into the database. In the Databse, i created the column as BLOB. But, when I query, this does not retrive the saved image in Image Item. But image is actually saved. When I tried, changing the database column to LONG RAW, it is working. I mean its reading the image in the image item from the database.
    Can anyone pls tell me, is there any problem like this, as we can retrive from LONG RAW but not from BLOB, or I am missin something here.
    Regards

    Hi,
    I use Forms 6i to save and retrieve image in BLOB column without problems.
    Some weeks ago, my column was long raw and I update it without problems. Nothing to do in Forms and juste modifiy query and recompile in Reports.

  • Hide the delete menu item from a specific document library

    I want to hide the Delete  item menu option for a specific document library.Since it is for a specific library I would not like to use customcore.js approach.Please suggest some useful javascript for same.
    I have a custom delete action associated with the menu which performs other function as well so need to hide the OOB delete option from the item  menu of a document library.
    I have already used below javascript in CEWP which I added on the document library page itself(allitems.aspx) but yeild no results:
    <script type="text/javascript">
    var elemTable=document.getElementById('ECBItems');
    if (elemTable !=null) {
         var elemTBody=elemTable.childNodes[0];
    //iterate each table row to find the correct ECB menu item to hide(remove)
       for (var iMenuItem=0; iMenuItem < elemTBody.childNodes.length; iMenuItem++) {
             var elemTR=elemTBody.childNodes[iMenuItem];
             var elemTDTitle=elemTR.childNodes[0];
             var title=GetInnerText(elemTDTitle);
     //here we filter on title, but the table contains more information if need be
            if(title =='Delete') {
                 elemTBody.removeChild(elemTR);
    </script>
    Please suggest which can be kept specific and requires no change in masterpage as same masterpage is used across the site.

    Hi justSP,
    Greetings.
    Hope the below links help you
    http://social.technet.microsoft.com/Forums/office/en-US/9adea3a2-6d08-4c04-ace2-88a704833f1d/how-to-hide-delete-item-from-ecb-menu-for-1-specific-custom-list?forum=sharepointcustomizationlegacy
    http://chakkaradeep.com/index.php/sharepoint-hiding-menu-items-from-the-edit-control-block/
    http://social.technet.microsoft.com/Forums/office/en-US/1b832635-4ae7-4f31-826c-2d6b834ece52/hide-delete-from-ecb-menu-for-a-specific-document-library-in-sharepoint-2010?forum=sharepointcustomizationprevious
    http://social.technet.microsoft.com/Forums/office/en-US/919e01e6-9a7a-4439-b778-28e0dc8bffba/how-to-hide-delete-option-from-ecb-menu-in-document-library-in-sharepoint-2010?forum=sharepointdevelopmentprevious
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Help. Need to remove item from the "open with" menu

    Does anyone know how I can remove an item from the "open with" menu?

    You could try removing the quicktime .pkg files from the receipts folder in the root library.
    The system has to go somewhere to determine eligible applications it can use to open a file.
    Each application would contain its base settings in its receipts file.
    Once you delete the receipt you should delete the application and reinstall it.
    The reinstall will write a new receipts file.
    The receipts file is used by your system when it repairs disk permissions.
    The system does not just add a setting.
    For example if you take a .png file and click on it and look at what can open it you may get a long list.
    If you choose "other" from the get info "open with" menu and have acrobat reader installed in applications, it will show as an application you can choose.
    That application, however, is not in the drop down list.
    If you choose acrobat reader and apply it to the file type, it will show as the default.
    If you then choose another application in the list and apply, Acrobat Reader disappears from the list.
    The system only shows files in the list that advertise to the system that they can read the file type.
    You have a system which is populating the list with legitimate programs that are compatible with the advertised file type.
    It is reading that advertisement for the quicktime application somewhere.
    The configuration is written to each file individually, you can choose to have a single file associated with a particular application or have it apply to all files of that type.
    Check in Spotlight for a copy of the application in another location.

  • Can I remove items from the Services menu?

    I think the subject line says it all: can I remove items from the Services menu? I have a number of items in the Services menu that I never use and I would like to make the menu shorter to make it easier to access the items that I do use.

    There are a couple of things you could try. There's an application called Service Scrubber that is supposed to do this. But the web page says it's for 10.4, though it says it might work on 10.3
    Alternatively, you can edit the Info.plist or Info-macos.plist file in each application bundle to remove its service from the Services menu. This post at Mac OS X Hints has a pretty detailed description of how to do it. I tried this on my iMac running 10.3.9 and it worked just fine.
    Don't know about the Service Scrubber app, but if you edit the plist files, you'll need to log out and log back in before the changes take effect.
    Also, if you decide to edit the files by hand, I'd suggest just renaming NSServices by adding an "x" to the front or something, rather than deleting the item completely. That makes the changes easier to reverse.
    charlie

  • How can I remove items from the open a recent file menue.

    How can I remove items from the "Open a Recent File" menue. Many other applications allow the clearing of that file . Is this possible in Adobe Reader 10.1.2 ? If so how?

    See this previous topic: http://forums.adobe.com/message/3759596
    It is for Acrobat, but the registry entries are similar for Reader.

  • How can i remove the menu item from a menu

    how can i remove the JMenuItem from a JMenu at run time.
    thanks in advance

    This is in JMenu from the api
    void remove(JMenuItem item)
    Removes the specified menu item from this menu.
    You must download the api! it helps a lot!
    You can do that or if you need to access it again just set it visible(false);

  • Remove items from the Tools menu in the Service Manager console

    Hi. 
    I know I have see a post regarding this before, but just wanted to put it out these once again.  I'd like to remove items from the Tools menu in the Service Manager console - specifically My Notifications and Create Change Request.  This is because
    the former allows a user to create notification subscriptions in incorrect Management Packs, and the latter because we are not using Change Management yet.  Does anyone have any information on how to achieve this?
    Cheers
    Shaun

    how to customize tools tht are displayed in tool menu
    http://technet.microsoft.com/en-us/library/jj134147.aspx#BKMK_tools

  • Removing items from the Apple Menu

    Using Leopard in a School the pupils are always messing up the dock. I have locked system preferences but they are still able to mess with dock settings by going to dock off of the apple menu. Is it possible to remove this item from the Apple menu or to make it inactive
    Thanks

    I don't think so. Have you tried checking in 'Parental Controls' section? If there's nothing there you might need a third party software solution. You could always try to contact the Mac Genius bar too, they might know of a 'trick' to remove it.

  • What is the simplest way to invoke the command associated with an existing menu item from a plugin?

    Hey there,
    My specific task is to bring forward the "Swatches" window.  I want to initiate this from my plugin code (C++).  However, I may want to execute other menu items in the future, so understanding the simplest, most straightforward general mechanism would be great.
    I've pieced together a sequence that could work using the Menu and Interface suites, but it seems more complicated than it should be and requires knowledge of the localized name of the menu item (incomplete and uncompiled sample code below).  Is there a better way to do this?
    // Get the menu item handle by walking all items to find the swatches item
    long numMenuItems = 0;
    sAIMenu->CountMenuItems( &numMenuItems );
    AIMenuItemHandle menuItemHandle;
    ai::UnicodeString localizedItemName;
    for ( long menuItemIndex = 0; menuItemIndex < numMenuItems; ++menuItemIndex )
        sAIMenu->GetNthMenuItem( menuItemIndex, &menuItemHandle );
        sAIMenu->GetItemText( menuItemHandle, localizedItemName );
        if ( localizedItemName == “Swatches” )
            break;
    AIBoolean bchecked =false;
    sAIMenu->IsItemChecked( menuItemHandle,
                            &bchecked );
    if ( !bchecked )
       // Find the plugin responsible for adding and responding to the menu item
        SPPluginRef swatchPlugin;
        sAIMenu->GetMenuItemPlugin( menuItemHandle, &swatchPlugin );
       // Construct and send a message to the plugin instructing it to execute as if the menu item were invoke by the user
        AIMenuMessage message;
        sSPInterface->SetupMessageData( swatchPlugin, &message.d );
        message.menuItem = menuItemHandle;
        SPErr result;
        sSPInterface->SendMessage( swatchPlugin, kAIMenuCaller, kSelectorAIGoMenuItem, &message, &result );
        sSPInterface->EmptyMessageData( swatchPlugin, &message.d );
    Glen.

    That's a clever solution to a problem I'd never considered (but can see how others might need it) I can't think of a better way to invoke it though than what you're doing except maybe with some minor improvements. If you know the menu group, you can use AIMenuSuite::GetMenuGroupRange() to jump to that group in the overall list. Also, since menuitems seem extremely unlikely to change, you can probably cache the handle.
    Beyond that, the usual suggestion I'd make it is to at least explore actions. Try recording an action and see if it even picks up when you display the Swatches panel. I'm guessing it doesn't record stuff like that, but who knows?

Maybe you are looking for