Enable disable toolbar items on click on any checkbox,radio button,text box.

Hi Friends,
I am create application in eclipse RCP E4 and now i am trying to Enable disable toolbar items on click on any checkbox, radio button, text box .
Please Help me friends....

Hello friend my proble is solve and now i am sharing my solution ....
I am create RCP application and view side any listener click event fire time apply this code
IEvaluationService evaludationService = (IEvaluationService) PlatformUI.getWorkbench().getActiveWorkbenchWindow().getService(IEvaluationService.class);
evaludationService.getCurrentState().addVariable("noOfRowsChecked", noOfRowsChecked);
evaludationService.requestEvaluation("com.jobsleaf.propertytester.canDeleteItem");
and add plug in extension and create property tester class means listener property tester class side apply this code
IEvaluationService ws = (IEvaluationService) PlatformUI.getWorkbench().getActiveWorkbenchWindow().getService(IEvaluationService.class);
Integer integer = (Integer) ws.getCurrentState().getVariable("noOfRowsChecked");
if (integer != null)
if (integer.intValue() > 0)
return true;
I hope useful above code when use property tester in eclipse RCP

Similar Messages

  • Enable/disable an item in a multirecord block

    hello to all
    How is possible Enable/disable an item in a multirecord block?
    set_item_property change all instances of an item in a multi-record block
    SET_ITEM_INSTANCE_PROPERTY only affects the display
    thanks

    Hi,
    You cannot set the Enabled property in a multi-record block, instead you can change the INSERT_ALLOWED, UPDATE_ALLOWED properties. So that the user can't change the value in the item.
    Regards,
    Manu.
    If my response or the response of another was helpful, please mark it accordingly

  • Using XMLLIST - Enable/Disable Menu Items

    I am using XMLList for creating menu items.
    I want to enable / disable menu items based on the permissions to the user.
    Below is the code snippet:
    <fx:XMLList  id="newData">
                                  <menuitem id="item1" label="{resourceManager.getString('taskmgmt', 'taskmgmt.label.newProject')}" />
                                  <menuitem id="item2" label="{resourceManager.getString('taskmgmt', 'taskmgmt.label.projectFromTemplate')}" enabled="false"/>
                        </fx:XMLList>
    private function ItemClickHandler(event:MenuEvent):void
         if(PermissionManager.isAddPermitted("WTM_PROJECT_PLANNING")){
                                                           ProjectAssignmentModel.projectAssignmentFlag=false;
                                                           if(event.item.@label == resourceManager.getString('taskmgmt', 'taskmgmt.label.newProject')){
                                                                     clearModel();
                                                                     dispatchEvent(new SwitchViewEvent(SwitchViewEvent.SWITCH_VIEW_EVENT,false));
    protected function newMenuButton_clickHandler(event:MouseEvent):void
                                            if(! PermissionManager.isAddPermitted("WTM_PROJECT_PLANNING")){
                                                      newData.item1.enabled = false;
                                            else
                                                      menuList.dataProvider = newData;
                                                      menuList.show(event.stageX + 5 , event.stageY + 5);
                                                      mode = CREATE;
    Based on the permission, I want to dynamically enable / disable the "New Project" button.
    Can someone provide information how to achieve this ?
    Further update on this, it is giving the following error while running of the application:
    "TypeError: Error #1089: assignment to list with more than one item is not supported"

    Resolved by using the correct Data Provider and iterating through the list

  • Right-click doesn't work on select boxes, checkboxes & radio buttons. On other elements, there's no"Inspect Element" option

    After installing FF 6.0, right-click doesn't work on select boxes, checkboxes & radio buttons, i.e. nothing happens on right-clicking.
    The context-menu is available on other elements, but there's no"Inspect Element" option in the context-menu

    Regarding the two-button click: just go to the "Sytem Preferences --> Mouse" pop-op and under "One Finger", check the "Secondary Click" box.  Problem solved.  I don't know how I missed this the first 3 times I went to there.    Oh well.
    And as for why I had to change the Trackpad settings to get the Magic Mouse zoom feature to work (see original question): I'm still stumped.   Your guess is as good as mine.
    Hope this helps!
    Steve

  • Howto enable disable menubar items in actionscript

    Hello,
    My problem is that i want to enable/disable buttons in a
    menubar according to the loaded page.
    So what i did was when the user clicks on the menubar, it
    triggers a function. Inside that function there will become a check
    on which page is at front. According to that page i am gonna set
    menuitems on and off.
    Thats the idea i had, so now my problem.
    I first try to create a simple solution like my code beneath.

    I'd suggest changing things around a bit. See if the
    following works for you. The clickHandler() method has the syntax
    you're looking for.
    TS

  • Disable a field based on choice of a radio button

    Novice JS user here.  Trying to disable a text field in a pdf based on the selection of a radio button and if a specific radio buttons are
    selected, take the user to a specific field.  Ex. Married/Single, Male/Female.  So if they select Married & Female, it will take them to the Maiden Name text field.  If they select Male or Single/Female, the Maiden Name text field will disable.  I would appreciate any help on this.

    See Hiding and Showing Form Fields by Thom Parker.

  • Double click event on a radio button

    Hi all,
    I have a servelet and a java script. I want to execute a method in my java script on double click on a Radio button in my page.
    I tried with setOnDblClick() method on the radio button, but the event is not fired.
    Please help.

    call you js fn on ondblclick event.

  • Cannot click on any URL received through text

    If I receive a link through text I am unable to click on the click. I have IPhone 4S and just downloaded io6. Is there a setting that needs to be reset? My WIFI info shows under settings.

    Well, I solved my own problem.  Just turned my phone on and off and everything is back to normal.

  • Why every time i need to double click on any link or button

    Hi All,
    on my JSP I have commandlink,commandbuttons.But if i click on button or link first time nothing is happening.
    But second time when I click on link or button its get activated.
    Can anybody tell why this is happening
    Thanks
    Sandip

    Hi BalusC
    On coomandLink i m simply writing as,
    <h:commandLink type="submit" action="#{Bean.testMethod}">
    <h:graphicImage alt="edit" url="images/edit.gif" />
    </h:commandLink>
    And my Bean contains testMethod as,
    public String testMethod(){
    return "anotherPage" // anotherPage mentioned in faces-config which refer to say B.jsp
    But very first time if I clik on link its opening B.jsp
    second time if i click on link its not opening B.jsp
    third time if i click on link its opening B.jsp
    Can you please why this is happening
    Thanks
    Sandip

  • How can i disable checkbox/radio button/popup/butt...

    In Xhtml, to disable a form element we use disabled="disabled". but how to disable form elements in mobile?.

    It actually does work. What you have to do is drag another icon down to the bottom left where the radio is defaulted. It will automatically kick up one of the other icons that is highlighted. For example, I dragged the Songs icon down and the Genius icon popped up to the top. Then I dragged the genius back down to the second spot and the Radio one goes to the right until it pops up. You just have to do it four times.
    It's kind of a pain, but it does work. Give it a try. This is what it ends up looking like.

  • I am trying to access my airg account through my firefox and my laptop, it says I need to click "spoofs" on the menu bar, then click the "keep out radio" button. I cannot find these things

    I am not doing something right... I could just use some help. I do not have all the details

    Clear the cache and the cookies from sites that cause problems.
    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites causing problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]

  • Enable / Disable selection screen block

    Hi, could u pls tell me how do I enable/disable selection screen block written below based on radio button selected??
    Block to be enabled / disabled :
    *----APO Version and RFC destination block
    SELECTION-SCREEN BEGIN OF BLOCK b4 WITH FRAME TITLE text-013.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 01(20) text-e11.    "APO Planning Version
    SELECTION-SCREEN POSITION 29.
    SELECT-OPTIONS s_apover FOR w_version NO INTERVALS.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 01(20) text-e09.    "APO RFC Destination
    SELECTION-SCREEN POSITION 32.
    PARAMETERS  :  p_aporfc LIKE rfcdes-rfcdest.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK b4.
    Radiobuttons :
    Material Type
    SELECTION-SCREEN BEGIN OF BLOCK ss04 WITH FRAME TITLE text-072       .
    PARAMETERS :
         Load only FERTs
           p_FERT  RADIOBUTTON GROUP styp DEFAULT  'X' USER-COMMAND rusr ,
         Load ROH/HALBs
           p_HALB  RADIOBUTTON GROUP styp                                .
    SELECTION-SCREEN END   OF BLOCK ss04                                 .
    Thanx in advance

    Hi
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS: pa_file TYPE rlgrap-filename MODIF ID abc,
    pa_lifnr TYPE lfa1-lifnr MODIF ID abc,
    pa_vkorg TYPE vbak-vkorg MODIF ID abc.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
    PARAMETERS: pa_kunnr TYPE vbak-kunnr MODIF ID def.
    SELECT-OPTIONS: s_lifnr FOR gs_lfa1-lifnr MODIF ID def,
    s_date FOR gs_lfa1-erdat MODIF ID def,
    s_augru FOR gs_vbak-augru MODIF ID def,
    s_vbeln FOR gs_vbak-vbeln MODIF ID def.
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-003.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pa_upd RADIOBUTTON GROUP g1 USER-COMMAND uc01 DEFAULT 'X'."#EC *
    SELECTION-SCREEN COMMENT 3(60) text-004 FOR FIELD pa_upd.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pa_rep RADIOBUTTON GROUP g1 ."#EC *
    SELECTION-SCREEN COMMENT 3(60) text-005 FOR FIELD pa_rep.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK b3.
    IF pa_rep EQ gc_x.
    LOOP AT SCREEN.
    IF screen-group1 = gc_abc.
    screen-input = gc_zero_num.
    ELSEIF screen-group1 = gc_def.
    screen-active = gc_one_num.
    ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
    ELSEIF pa_upd EQ gc_x.
    *For Reprocessing
    LOOP AT SCREEN.
    IF screen-group1 = gc_def.
    screen-input = gc_zero_num.
    ELSEIF screen-group1 = gc_abc.
    screen-active = gc_one_num.
    ENDIF.
    MODIFY SCREEN.
    CLEAR pa_upd.
    ENDLOOP.
    ENDIF.
    REPORT zrich_001.
    PARAMETERS: p_rad1 RADIOBUTTON GROUP grp1 DEFAULT 'X'
                            user-command chk,
                p_rad2 RADIOBUTTON GROUP grp1.
    SELECT-OPTIONS: s_datum1 FOR sy-datum MODIF ID d1,
                    s_datum2 FOR sy-datum MODIF ID d2.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF p_rad1 = 'X'
          AND screen-group1 = 'D2'.
          screen-active = '0'.
        ENDIF.
        IF p_rad2 = 'X'
         AND screen-group1 = 'D1'.
          screen-active = '0'.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    Regards
    Anji

  • How can we enable tick icon when user click any button

    how can we enable tick icon when user click any button in captivate 6@

    hi first of all thanks for imitate action.
    actually i want to make a menu (TOC) with tick icons, on starting all ticks are disabled but when i click on any button from my menu i want to enable tick for that particular button so that user can know easily the visited button.

  • Enable/disable textbox depending on list option, list is dependent on Radio

    Hi,
    I'm trying to enable/disable text_box which is dependent on select_list option, select_list is dependent on radio_button.
    I'm able to enable/disable select_list using radio_button options, but I'm unable to handle text box which is again dependent on this SELECT_LIST item.
    under html header page:-
    <script type="text/javascript">
    function disableOnValue(o)
    if (o.value == 'Y')
    document.getElementById('P86_Select_list_item').disabled = false;
    else
    document.getElementById('P86_Select_list_item').disabled = true;
    document.getElementById('P86_text_box_item').disabled = true;
    </script>
    <script type="text/javascript">
    $(document).ready(function()
    $('#P86_Select_list_item').change(function()
    if($(this).val() == 'Other')
    $('#P86_text_box_item').attr("disabled", false);
    else
    $('#P86_text_box_item').attr("disabled", true);
    </script>
    under Region_Source of the region, whose Display point :- <b>Before Footer</b>
    <script type="text/javascript">
    if(document.getElementById('P86_radio_button_0').checked == true)
    {disableOnValue(document.getElementById('P86_radio_button_0'));}
    else
    {disableOnValue(document.getElementById('P86_radio_button_1'));}
    </script>
    and under Radio_button item, HTML Form Element Attributes :- <b>onchange="javascript:disableOnValue(this);"</b>
    also same way under text_box item , HTML Form Element Attributes :- <b>disabled</b>
    any help
    Deep

    Thanks for replying Ben,
    I have kept an example into apex workspace
    workspace:- DEEPAPEX
    username:- [email protected]
    password:- walubu
    application "Javascript" page 1
    I'm able to enable/disable Select_list item & Text_box item with the help of Radio_button item(depending on user select yes or no option of the radio button)
    But after selecting Yes option of the radio_button, only when user select "Other" option of the Select_List item the Text_box should be enabled otherwise it should be disabled for any of the options of the Select_list item.
    I hope you understand my point.
    Deep

  • Adobe Reader X - Toolbar items slowly disappear

    We have a software developer's system that is acting very oddly with Adobe Reader X. It is a Windows XP SP3 machine with 3GB RAM. What is happening is that after a PDF is opened in Adobe Reader X, after a while all of the toolbar items slowly disappear. I've done everything from redeploying Reader to the machine, using the Microsoft Installer Cleanup tool after uninstalling it, checked to make sure that the system's memory usage was within reason, etc... The system is rebooted regularly (usually every morning or evening), undergoes a virus scan regularly, etc...
    We're at a loss as to what could be causing this. The last thing I want to do is rebuild the system, as it would be a headache for both me and the software developer.
    As you can see below, some of the items in the toolbar remain, such as the page number and zoom text box. The file menu remains intact, but the items in the toolbar slowly disappear after Reader X as been open for a while.
    Also, sometimes the items disappear by themselves, othertimes if you just mouse-over them they disappear.
    Any ideas or suggestions?
    -Jake

    I've just started experiencing the exact same problem. I upgraded to Reader X a good month or so ago, and I've had it open with documents loaded for long stretches most days since installing it, but I didn't notice the problem until Sunday 9th Jan. Closing Reader and reopening it brings back the toolbar, but then it disappears again after a while.
    I too am running Windows XP SP 3, with 2 GB RAM and an AMD Athlon 64 X2 Dual Core 6000+ CPU.
    Ose

Maybe you are looking for