Setting menu item state in menu created with Actions

Hi there,
Is there a way of accessing and then setting the state of a menuitem that had been added to a menu previously using an Action?
like. JMenu m = new JMenu("Settings");
Action a = new MYAction("Sound");
m.add(a);
.. then say access and set the "Sound" menuitem to enabled(false);
If you can help that would be wicked.
Cheers,
Edd.

Have you tried call setEnabled on the Action?

Similar Messages

  • How many statements can be created with one connection?

    how many statements can be created with one connection?

    and on available memory. At some point, even were the database to allow an infinite number, you'd run out of memory.

  • Set Maximum size for a subpanel created with splitter bars in LV8

    Does anyone know how to set the Maximum size for a subpanel created with asplitter bar? If I show one cluster in the subpanel and use the scroll bar to scroll, I can see more (blank) area than I want. I just want the user to be able to scroll a cluster within a subpanel while the cluster is larger than the view area of the subpanel. I don't want to let the user scroll outside the cluster.
    Ravi Beniwal

    I apologize for the mixup in terminology. Please read Pane wherever the word Subpanel was used.
    Please see the attached VI for a description of my problem.
    I would really appreciate any help with this.
    Ravi Beniwal
    Attachments:
    Pane Scrolling Problem.vi ‏10 KB

  • PO item level validation if create with ref to contract

    Hi
    Pl help me to fulfill the following client requirement:
    When user create the PO with ref to contract , system fetch the all data from the contract to PO at line item level, but in the PO, user is able to change the contract line item rate.
    Now contract line item rate is already fixed with vendor & PO creator should not allowed change this rate.
    Could you provide the any standard configuaration or development to restric the user to chage the PO line item rate if created with ref to contract
    Pl give me replay as soon as possible as it is very urgent
    Rgds
    Nishit

    Hi,
    First you have to create a separate document type which is to be used for creation of PO referring a contract . Than define functional authorisation to buyers going by the menupath -Materials management > Purchasing > Authorisation management > Define function authorisations for buyers-Function Authorizations: Purchase Order. Here enter the field selection key of the new PO document type you created . Than check the box "Display Prices" . Uncheck all other boxes .You can check reference to Contract against possible reference Objects. Than save . Than in the User id enter the User parameter EFB and allocate the aparameter to the user . Also remove other document types of POs except the newly created document type in user authorisations. This will prevent change of price field in the specific document type.
    Dhruba

  • Edit Sub Menu Created With Dreamweaver

    Does anyone know how to edit a sub menu that was created
    using Dreamweaver? I need to link a new page to the sub menu but I
    can't seem to find anyway to unlock the menu to amend the link.
    Alternatively, one of my pages appears to be stuck on the server
    saying that it is being edited by Macromedia Contribute after I
    tried to publish it (this is the page I've re-created but can't
    create a link to) so does anyone know how I'd re-set it or
    something? I had thought of uninstalling Contribute then
    re-installing it but I don't know if it'd make much difference?

    Open the template for this page (Select Modify > Templates > Open Attached Template) and add these comments into the <head>...</head> section:
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Eddie and Alice Smith</title>
    <!-- TemplateBeginEditable name="head" -->
    <!-- TemplateEndEditable -->
    <link href="css/main_css.css" rel="stylesheet" type="text/css" />
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" /></head>
    You have probably deleted these comments when creating the template. These lines allow Dreamweaver to add code into the <head> section. Save your template and say Yes to allow the changes to pages that use this template (or just to the pages you want).
    See http://help.adobe.com/en_US/dreamweaver/cs/using/WScbb6b82af5544594822510a94ae8d65-7acda.h tml for more information.

  • Help creating batch action, save as tiff

    I'm not *getting* it, and have been trying for a couple hours. Please, what am I missing???
    Steps I've done;
    Created a set called rit sq color balance
    Created an action called color balance
    Created an action called save and close, Saving as TIFF, Close
    Should I not be able to run this sequence of adjusting the color, saving into the destination file as a tiff?
    Each action works separately, but not together.

    You need to add (just drag it like you might a layer) the save step of save and close action into the color balance action, making that action a two-step action (color balance, then save). Then your batch setup will run.
    If you check the "override action save as" (which you've done), you should see the warning below. Since there are no save steps in your color balance action (right now they reside in the save and close action), no files are saved. If you don't see this warning, you might consider resetting all the warning dialogues in the general areas of the prefs.
    This would all be less confusing if you actions weren't named the steps they call...

  • What is menu area? can we create a menu exit with tht?

    Hi experts,
    what is menu area? can we create a menu exit with tht? is areamenu(se43n) diff frm menu exit?

    Hi
    Menu Exits
        Menu exits add items to the pull down menus in standard SAP applications. You can use these menu items to call up your own screens or to trigger entire add-on applications.
          SAP creates menu exits by defining special menu items in the Menu Painter. These special entries have function codes that begin with "+" (a plus sign). You specify the menu item’s text when activating the item in an add-on project.
    Menu exits allow you to add your own functionallity to menus. Menu exits are implemented by SAP, and are reserved menu entries in the GUI interface. The developer can add his/her own text and logic for the menu.
    Function codes for menu exits all start with "+"
    Example
    We want to create a new menu item in the Office menu. The text for the menu should be "Run ZTEST", and the menu will
    run report ZTEST.
    Goto transaction SE43 Area Menu Maintenance
    In Area Menu Paramenter type 'S000' (S triple Zero)
    Select Change and ignore all the warning screens
    Expand the office menu. In the buttom of the office tree you will find a menu named "Customer function"
    Double click on the text. In the pop-up screen change the text to "Run ZTEST". Note that the trsnaction code is +C01
    Goto transaction SE93 and create transaction +C01 that calls report ZTEST.
    Now you will se the menu displayed in the office tree. If you delete transaction +C01 again, the new menu will dissapear.
    There are 'only' 177 Menu exits in standard - I couldn't see the right one, too.
    But you could search the implemented exits, this should be only a small number. Go to transaction CMOD, enter * and F4, information system (F5), show all selections (Shift+F7) and then you can restrict to search only menu exits.
    Of course there is the possibility, that these are added in a different way...
    ... at least you can be sure, if it's a normal menu exit.
    Check this sap help..
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/content.htm
    http://www.sapbrainsonline.com/TUTORIALS/default.html
    You can achieve this functionality by configuring in IMG.
    Please find the info regarding User-Exit's in the following links:
    http://help.sap.com/saphelp_nw04/helpdata/en/bf/ec07a25db911d295ae0000e82de14a/frameset.htm
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    Re: doubt on user exits
    user exits and Badis
    User exits is the enhancements provided by SAP
    You can use them in transactions. Each transaction will have user exits.
    If you want to use your own requirements by making your coding while the transaction is run you can use user exits.
    For example if you want to run the MRP in MD02 specific to MRP controller you can user exit.
    Please also refer the document below.
    USEREXIT
    Userxits allow us to add our own functionality to SAP standard program
    without modifying it . These are implemented in the form of subroutines and hence are also known as FORM EXITs. The userexits are generally collected in includes and attached to the standard program by the SAP.
    All Userexits start with the word USEREXIT_...
    FORM USEREXIT_..
    z..
    ENDFORM.
    The problem lies in finding the correct userexit and how to find it if one exists for the purpose. Once the correct userexit is found the necessary customer code is inserted in the customer include starting with the z.. in the form routine.
    e.g. USEREXIT_SAVE_DOCUMENT_PREPARE
    Certain application like SD still provide this form of enhancement using userexit but this practice is no longer being followed for newer extensions instead they are using EXITs which come bundeled in enhancement packages . Neverthiless existing USEREXITS will be supported by SAP an all the newer versions of SAP.
    HOW TO FIND USEREXITS
    Userexits can be found in number of ways:
    1) To find userexits in SD module , goto object navigator(SE80) and select
    development class from the list and enter VMOD in it. All of the userexits in SD are contained in the development class VMOD. Press enter and you will find all the includes which contain userexits in SD for different functions like PRICING, ORDER PROCESSING etc. Select the userexit according to the requirement and read the comment inserted in it and start coding .
    Some examples of userexits in SD(SALES & DISTRIBUTION ) are:
    1)ADDING OF NEW FIELDS IN PRICING
    In Pricing in SD the fields on the basis of which pricing is done are derived from the FIELD CATALOG which is a structure KOMG .This structure is used to transfer transaction data to the pricing procedure in SD and is also known as communication structure.This structure KOMG consists of two tables KOMK for Header related fields and KOMP for item related fields. The fields which are not in either of the two tables KOMK and KOMP cannot be used in pricing .Sometimes a need arises when the pricing is to be based on some other criteria which is not present in the form of fields in either of the two tables. This problem can be solved by using USEREXITS which are provided for pricing in SD. Pricing takes place both when the SALES ORDER ( Transaction VA01) is created as well as when INVOICING ( Transaction VF01) is done.Hence SAP provides 2 userexits ,one for sales order processing which is
    USEREXIT_PRICING_PREPARE_TKOMP or
    USEREXIT_PRICING_PREPARE_TKOMK
    Depending upon which table (KOMK or KOMP) the new fields were inserted we use either of the above two userexits.These userexits are found in include MV45AFZZ of the standard SAP sales order creation program SAPMV45A.
    In the case of userexit which will be called when invoicing is done ,these
    are provided in the include RY60AFZZ which is in the standard SAP program SAPMV45A. The name of the userexits are same. i.e
    USEREXIT_PRICING_PREPARE_TKOMP or
    USEREXIT_PRICING_PREPARE_TKOMK
    These userexits are used for passing the data from the communication structure to the pricing procedure, for this we have to fill the newely created field in the communication structure KOMG for this we fill the code in the above userexit using the MOVE statement after the data that has to be passed is taken from the database table by using the SELECT statement. The actual structure which is visible in these userexits and which is to be filled for that particular field is TKOMP or TKOMK.
    Before the coding for these userexits is done ,it is necessary to create a new field in either of the two tables KOMK or KOMP .For this purpose includes are provided in each of them .
    To create the field in header data(KOMK) the include provided is KOMKAZ
    and to create the field in item data(KOMP) the include provided is KOMPAZ.
    One possible example for the need of creating new fields can be e.g. Frieght to be based upon transportation zone ,for this no field is available in field catalog and hence it can be created in KOMK and then above userexits can be used to fill the transportation data to it.
    2)The other method of finding userexit is to find the word USEREXIT in the
    associated program of the transaction for which we want to determine userexit using SE38.
    3)The other method of finding userexits is to find the include in case of SD/MM applications where the userexits are located ,this can be found in the SAP reference IMG generally in the subfolder under SYSTEM MODIFICATION.
    Some other examples of userexits in SD are:
    USEREXIT_NUMBER_RANGE
    This userexit is used to assign a different internal document number to the
    sales order(VA01) when it is created depending on some criteria like a different SALES ORGANIZAION(VKORG) .
    USEREXIT_SAVE_DOCUMENT_PREPARE
    This userexit is used to insert the ABAP code which will be called when
    the document (sales order VA01) is just about to be saved.This userexit is used generally for custom checks on different fields , to display some information before the order will be saved or for making changes to certain fields before the sales order will be saved.
    Exits & Enhancements
    There are mainly six types of EXITs in sap which have been collected in the form of enhancement packages and attached to standard code in SAP.
    These are different from USEREXIT in the way that they are implemented
    in the form of FUNCTIONs while in USEREXITS we use form routines for their implementation. These are also sometimes known as function exits .
    These start from the word EXIT_ followed by the program name and then followed by a three digit number.
    e.g. EXIT_SAPMV45A_002
    This exit is found in SD in enhancement V45A0002.
    TYPES OF EXITS
    1)MENU EXITS
    2)FUNCTION EXITS
    3)TABLE EXITS
    4)SCREEN EXITS
    5)KEYWORD EXITS
    6)FIELD EXITS
    We use SAP transactions CMOD and SMOD to manage exits. Before implementing an exit , it is required to create the project by using CMOD
    selecting the enhancement e.g. V45A0002 and selecting the component
    (one which fulfills our need) i.e the exit which will be implemented in SMOD and after coding has been done the project has to be activated.
    An exit can be coded only once.
    FUNCTION EXITS
    These are used to add functionality through ABAP code . These start from the word EXIT_programname_NNN ending in a 3 digit number. No access code is required to implement any tupe of exit including function exits.
    The function exits are called from the standard SAP program in the form
    of ABAP statement
    CALL CUSTOMER-FUNCTION 'NNN'
    This is in contrast to USEREXITs where PERFORM statement is used to call
    the required userexit.
    To implement the FUNCTION EXITs first of all the project is created and a suitable enhancement package is selected and from its compnents the function exit to be implemented is selected and on double clicking it the exit code will appear in ABAP EDITOR(se38) where a Z include will be found and the customer code should be entered in this include.
    e.g.
    ADDING A DEFAULT SOLD-TO-PARTY in Sales Order Creation
    To show a default sold-to-party in this field when the user creates a sales order (VA01) we can use a function exit .This function exit is located in enhancement no V45A0002 . Before we can choose the exit we have to create a project in CMOD after that enter V45A0002 in the enhancement field and click on the components . In the components you will see the exit EXIT_SAPMV45A_002 . This exit is used for our purpose.
    Double clicking on this exit will takes us to function builder (SE37) . This
    function exit has one exporting parameters and two importing parameters, we are interested in exporting parameter which is E_KUNNR of type KNA1-KUNNR i.e if we move the desired customer name to this structure(E_KUNNR) it will be shown in the field as the default value when we create the sales order. This function also contains a customer include ZXVVA04 . This include will be used to write our custom code .
    Double clicking on this include and it will prompt us that this include does not exists do you want to create this object ,select yes and the include will be created .In this include we can write our own code that will fill the field E_KUNNR.
    e.g. E_KUNNR = 301.
    Activate the include and Activate the project. Now when ever the SALES ORDER will be created , sold-to-party field will come up with a predefined customer .
    FIELD EXITS
    The field exits are managed,created,activated through program RSMODPRF. The field exit is associated with a data element existing in ABAP dictionary and hence to the screen field using that data element.
    The format of field exit is :
    FIELD_EXIT_dataelement_A-Z or 0-9
    If a particular screen and program name is not specified than the field exit will effect all the screens containing that data element.
    The function module associated with field exit shows two parameters
    INPUT and OUTPUT. Input parameter contains the data passed to the field exit when the field exit was invoked by the R/3 , We can write our own code to change the output parameter depending upon our requirements.
    Before the field exit can have any effect the system profile parameter
    ABAP/FIELDEXIT in all the application servers should be set to YES
    ABAP/FIELDEXIT = YES.

  • Just bought a new mac mini, wireless keyboard, and track pad. My track pad will not synch. All advise I have been given is to change items in the setting menu, but I cant because I still have to get through the setup!!

    Just bought a new mac mini, wireless keyboard, and track pad. My track pad will not synch. All advise I have been given is to change items in the setting menu, but I cant because I still have to get through the setup!!

    The power button for the Trackpad is on the right hand end of the battery case. Press that button to initiate the pairing process. On the top of the Trackpad just above the power button is a tiny green light (you probably cannot see it unless it is lighted). That light will indicate ehther or not the Trackpad is discoverable. If the Trackpad has discoverable the green light will blink on and off. If it does not pair within 3 minutes you will have to press the power button again to re-initiate the pairing process. Once your Trackpad has paired, you can just leave it on and it will pair automatically when you reboot your Mac.
    If you are having problems pairing, try turning off any other Bluetooth devices within 30 or so feet of your Mac mini. That includes other Computers, iPhones, iPads, etc. that may be in the area. Once your Trackpad has pairedwith your mini, you don't have to be concerned about other Bluetooth devices.
    One other hint, I find that although the Wireless Trackpad does not eat batteries as fast as the Magic Mouse it still uses more than the Wireless Keyboard. It is a good idea to keep a supply of AA batteries around. I have used Apple's Rechargable batteries, but found they did not last that long before needing to be recharged. I have had the best battery life from Duracell Quantum batteries.

  • Got new ATV and all set up. It keeps loosing connection with iTunes on laptop and have tried everything suggested in set up guide. It works fine for a while then the iTunes account vanishes from 'computer' menu TV screen.  Full Wifi signal on both devices

    Got new ATV and all set up. It keeps loosing connection with iTunes on laptop and have tried everything suggested in set up guide. It works fine for a while then the iTunes account vanishes from 'computer' menu TV screen.  Full Wifi signal on both devices so can't think what could be causing it to happen. Any suggestions please?

    Sorry, I updated another thread I was a part of but didn't update my own thread.....ughhh!
    I updated all of my ATV 2's and 3's to the latest firmware when it was released and have been problem free since. I do believe the major issue of not being able to connect after a period of inactivity has been corrected with the latest ATV firmware.
    I can look at my network connection table using "netstat -an" in a CMD window and I do not see the massive number of connections I saw before the update.
    Here is a link to the other thread I was referring to above:
    https://discussions.apple.com/message/19952545#19952545
    Have you applied the latest firmware updates to your ATV 3's?

  • Horizontal Spry Menu Bar with Horizontal Sub Menu

    I have created a horizontal menu bar with only one main menu item leading to a sub menu. I would like this sub menu to display horizontally also, instead of vertically as added by default.
    I am relatively new to dreamweaver and would appreciate any help possible.

    Came across the fix by accident thru extensions in menu bar,
    and choice of cursor for each section. Feeling happy! Happy New
    Year everyone.

  • Can I take a frame from my project and use it as a custom menu background with CS4 and its Encore

    My project is edited in CS4.
    I moved it to Encore CS4.
    I don't want to use any of the supplied menu templates in CS4 Encore.
    I was hoping CS4 would be all I needed to create custom menus using scenes from my project.
    My question is: Can I take a frame from my project and use it as a custom menu background with CS4 and its built in Encore or do I need some other element from the Adobe catalog to make these custom chapter menus and sub-menus?
    Thanks Jim

    OK, I'm back. Here are my steps for creating Custom Menus with PS, En and PrPro:
    In PrPro, move the CTI (Current Time Indicator) to the desired Frame. Check Frames on either side, with the Program Monitor’s Magnification to 100%, or maybe even 200% (you’ll need to scroll, but get a really clear picture). You want the clearest Frame in that area. With AME, in CS4, you’ll want to Export that Frame as .TIFF, or .BMP. I use .TIFF for this.
    Now, for a caveat. When you Import this Exported Frame into Photoshop, be sure to check the specs., especially the PAR. You may have to use Image>PAR to adjust this to match your Project’s specs. Or, all might be perfect - just check this out.
    Now, at this point, I choose the Library Menu, Blank, so that everything is setup. One can create the Menu from scratch, but careful attention needs to be paid to the exact naming conventions. At the very least, unless you’ve done this dozens of times before, use that Blank Menu, or similar as a guide, so you get things done, as they must be done.
    Using that Blank Menu, just drag the Layer from your Exported Frame to your Menu image. It will appear above the black Background.
    Add, or manipulate your Button Layer Sets, as is required, keeping them together. Remember that Button #1 will be the Button Layer Set, that is lower down in the Layers Palette. This can play a roll with Button Routing, back in Encore. Lower Button Layer Sets will have lower Button numbers.
    Now, I always rename my Button Layer Sets, keeping the required characters - just changing the name. I also do all of my Button text in PS, and make sure to turn OFF Sync Button Names.
    When done, Save_As .PSD, and then Import_As_Menu into Encore. Note: if you start with the Blank Menu, you can choose Edit in Photoshop, and then when done in PS, you just need to Save, and it will update in Encore. This is a personal workflow choice. I do the Edit in Photoshop route, but it is not necessary. One just needs to Import the resulting .PSD into Encore with Import_As_Menu, so that Encore does all the things that it needs to and recognizes the .PSD as a Menu.
    When deciding what to base your Menu on, remember that you can "populate" your Menu with Buttons from the Functional Content. I’d suggest studying these Assets, and picking the ones that work best for you. You can still alter/edit those back in PS, so you just need to "get close."
    Pay special attention to the required naming conventions. You cannot deviate from those first characters in the Button Layer Sets. They MUST be followed.
    If you have any questions, do not hesitate to ask.
    Good luck,
    Hunt

  • Facing issue with Action Menu

    Hi all,
    I've created an Action Menu to open a link on a new page, however it is not working. I changed the URL to call some external website (Ex. www.google.com) but even so it doesn't do anything. Is there any setup that can prevent links from Action Menu (Table component) to be executed? Is there any bug related to this? I've tried the same on a different page, enabling exactly the same URL and on the other page, it works.
    I'd appreciate any help or comment.
    Thanks,
    Eduardo

    Hi Dan,
    I solved the issue by including a "GROUP BY" statement in my EQL Query. This really seems to be a bug since my query doesn't need a Group By. I set the Group By for the record ID and I'm testing whether it caused any side effect.
    Thanks and Regards,
    Eduardo

  • DHTML Menu - Problem with Translation

    I have the DHTML menu installed within portal and have just added a "French" Translation to a few of my page groups. When I flip over to French using the "Set Language" portlet, the menus no longer show up.
    In addition, when I edit the menu, none of my page groups are there to select as the basis for my menu.
    Is there any way to make the menu compatible with Portal's Translation function? Has anyone else encountered this problem?

    Hi there
    I'm getting the same problem. I'm trying to add Portuguese translation and the dhtml menu simply disappears.
    How can i solve this problem?
    I don't think it is a issue with the code because it works fine for both languages in another page group.
    Can anyone help please?
    Regards,
    Sonia

  • Menu problem with IE

    menu problems with IE connected with spry - see site:
    1.
    http://www.whatwomenwant-tv.com/index.html
    (horizontal menu bar - will not display fully, probably to do with
    flash)
    2.
    http://www.whatwomenwant-tv.com/about.html
    (horizontal menu bar swerves to the left)
    3.
    http://www.whatwomenwant-tv.com/streetinterviewswomen.html
    (vertical menu bars in questions are all over the page)
    thanks 4 help.

    I tried in Firefox 3 and IE7 and they both seemed fairly slow
    for any action to take place. But IE7 did seem pretty slugish.
    It seems that you're already determined what the issue is,
    you have waaaaaay too many menu items. Seems to me that that number
    of items don't belong in a menu. There are even menus that are too
    long to appear entirely on the page, so they can't be easily
    accessed without accidentally hiding the menus again, which I did
    several times. IN particular:
    Cartuchos > Technologica
    If you cannot change to a different format to show all of the
    items, then perhaps you can split up the menu so that you don't
    have too many at one time. I checked the code of your page and it
    seems that you've got a lot of other scripting going on there
    besides Spry, so is the issue with Spry or with everything else
    you're trying to do with that menu. If you can try to recreate the
    page with only the menu items on it (and not pulled in dynamically
    on the fly), and then add back to your page a bit a time, you might
    be able to find out what is really causing the delays.

  • Issue with Setting Application Item

    Hi All,
    I have an issue with setting the value of application item G_USER_ID as part of the login process.
    I use customized authentication for login. I have created an application item G_USER_ID, and in my CUSTOM_AUTH procedure, I am setting its value as APEX_UTIL.SET_SESSION_STATE('G_USER_ID', l_user_id);
    For some reason, the value is not set to G_USER_ID the first time I login. When I log out and login again without closing the browser, the value is set. Note that I even tested with a static value instead of l_user_id like APEX_UTIL.SET_SESSION_STATE('G_USER_ID', '5555555'); but still fails to set during the first login.
    I hope someone can guide me as to what I am doing wrong here.
    Thanks!
    JMcG

    What does this do?
    :SVR_FLAG := NVL(l_mult_svr,'N');
    Scott

Maybe you are looking for