Disabling a tab in a dialog dynamically

I have a dialog with three tabs. There is a selection dropdown on first tab. Based on what selection I make here, one of the second or third tab should be greyed out. So that the user only has one tab left to edit out of second or third one. Has someone done similar thing before?

I suggest to refer above location '/libs/foundation/components/list/dialog/items/list/items/listFrom/listeners' and create similar node structure in your component. Now the listerner methods mentioned in above location will not help you to complete your task, to do so follow below steps.
1. Create a new property as 'id' at each of your tab ('panel') with string value of name of your tab (which will be same name/value you will use in your first tab drop down)
2. Now replace below methods corresponding to each events under listener tab.
loadcontent - function(){var newvalue=""; this.findParentByType('tabpanel').getComponent(this.getValue()).disable(this); if(this.getValue()=="first"){ newvalue="second";}else{newvalue="first";} box.findParentByType('tabpanel').getComponent(newvalue).enable(this); }
selectionchanged - function(box,value){var newvalue=""; box.findParentByType('tabpanel').getComponent(value).disable(this); if(value=="first"){ newvalue="second";}else{newvalue="first";} box.findParentByType('tabpanel').getComponent(newvalue).enable(this); }
Above example will take care of tabs (panel) 'first' and 'second' you can change it as per your requirement (considering you have created tabpanel and panel to create your component).
I hope this much information will help you to complete your task. I face any issue let me know.

Similar Messages

  • How do i disable the open/save image dialog box in firefox? I want to directly save the image file to the drive.

    How do i disable the open/save image dialog box in firefox? I want to directly save the image file to the drive without clicking on save option everytime when saving an image. I'm using firefox ver 35.0.1 for windows 7.

    Click on the Firefox menu. Then click "Options". Go to "Applications" tab. Search for jpg and png file type. You will find they have "Always ask" action attribute. Change it to "Save file".
    Hope it will work fine for you.

  • How to disable App tabs (pined tabs) from being started automatically?

    how to disable App tabs (pined tabs) from being started automatically?
    because the option [Don't load tabs until selected] dose not work with it, and it keeps starting every time when I restart Firefox.
    Please help me!

    Don't bother, I reached to the solution by my self, you can do it as following:
    Type "about:config" [ without quotation marks! ] in the Location Bar (address bar) and press Enter to display the list of preferences, as shown in the picture '''#1''' in Firefox 17 on Windows 7.
    If you see a page with the warning message as shown in picture '''#2''', This might void your warranty!, click the button labeled "I'll be careful, I promise!", to continue (in fact, there is no warranty whatsoever, it's more a joke to ensure that users are aware of what they are about to do). uncheck the check-box there to avoid the warning in the future.
    Now at the search bar in the picture '''#3''' type: ''tab'' and look for the
    '''preference name:'''
    browser.sessionstore.restore_pinned_tabs_on_demand
    or you can '''copy''' it directly to the search bar,
    '''Next,''' follow the instruction in picture '''#3''' .
    Just in case if the pictures didn't appear, do ''these steps'':
    '''First:''' Right click at the preference name that we searched for.
    '''Next,''' click Toggle to change the value from false to true.
    '''Or,''' double click on it and it will change.
    '''Finally,''' restart Firefox and you will notice that they don't load automatically until you click on it.
    That's it, Good luck to all. ''';-)'''
    '''Note''': The bolded font preferences list is the user modified, and the un-bolded is the default setting.
    '''Warning''': Modifying preferences can, in rare circumstances, break Firefox, Thunderbird or the Mozilla Suite, or can cause strange behavior. Only do so if you know what you are doing or are following trustworthy advice.
    Additional INFO:
    about:config is a feature of Mozilla applications which lists application settings (known as preferences) that are read from the profile files prefs.js and user.js, and from application defaults. Many of these preferences are not present in the Options or Preferences dialog. Using about:config is one of several methods of modifying preferences and adding other "hidden" ones.

  • Disable command-tab and/or kill dock

    Hello,
    Is there a clever terminal command or a simple hack that will disable command-tab switching between apps? If not, can I kill the dock completely to regain the ability to use command-tab in QuarkXPress?
    This keyboard shortcut conflict is driving me nuts trying to stay productive in Quark. The PullTab haxie is not Leo-friendly yet, so I need a solution ASAP.
    Thanks!!!

    There is no way to disable command-Tab that I am aware of. Can you assign a new key combo to quark's command-tab feature?

  • How to disable CHARGES tab in Find Sevice Requests(CSXSRISR.fmb / CSXSRISV)

    could any one please let me know how to disable CHARGES tab in Find Sevice Requests ( CSXSRISR.fmb, but funtion registered is CSXSRISV).
    Actually when i access the "Create Service Requests" menu option, the form comes up with a the three TABS (Charges , Work Orders & Maint Req) visible but disabled. But when i access the same from "Find Service Request" menu option, i get the Charges TAB enabled but not the other two... so i would need to visibilly disable the CHARGES TAB like the other two tabs.
    I checked the subfunctions but i could not find any.... i could only find Update Charge and Create Charge options but not the Visible option.

    Hi...
    The Charge Tab in SR form gets enabled only after SR No. Generation.
    So initially when you open the Service Request form the Charges Tab will be visible but disabled, & once the SR number is generated the same gets enabled.

  • How to disable CHARGES tab in Find Sevice Request ( CSXSRISR.fmb ).

    could any one please let me know how to disable CHARGES tab in Find Sevice Requests ( CSXSRISR.fmb, but funtion registered is CSXSRISV).
    Actually when i access the "Create Service Requests" menu option, the form comes up with a the three TABS (Charges , Work Orders & Maint Req) visible but disabled. But when i access the same from "Find Service Request" menu option, i get the Charges TAB enabled but not the other two... so i would need to visibilly disable the CHARGES TAB like the other two tabs.
    I checked the subfunctions but i could not find any.... i could only find Update Charge and Create Charge options but not the Visible option.

    Hi...
    The Charge Tab in SR form gets enabled only after SR No. Generation.
    So initially when you open the Service Request form the Charges Tab will be visible but disabled, & once the SR number is generated the same gets enabled.

  • How to create a new tab to a dialog box in Illustrator CS3 Plug-in?

    Hi,
    Im creating a dialog using Plugin in Visual Studio 2005. I need to add another dialog in tab.
    For example in the existing sample dialog another dialog Test has to be added.. How this can be done?
    Anyone guide me..

    It sounds like you're trying to get a floating panel dialog to dock with another one -- is that the case? If so, that's what I was trying to clarify earlier in the thread; there are tabs on modal dialogs, and there are tabbed docked panels, and they're two different things
    If you're trying to dock two panels, you're on the right track -- you can definitely use sADMDialogGroup->SetTabGroup(). It does require you to know the name of the dialog group you're adding it to though. Typically, you use this functionality to restore a panel to wherever it was when Illustrator was last running, and you use preferences to store the value in the meantime. If you're just trying to stick two dialogs together, you need to make sure of a few things:
    1) They're both using a dialog style from this list: kADMResizingFloatingDialogStyle, kADMFloatingDialogStyle or kADMTabbedFloatingDialogStyle.
    2) They have to both have their Tab Group set to the same string value.
    That should dock them together, but again, typically you just grab the tab group on shutdown and save it to preferences, then on load read it from preferences and set it on the dialog again. That way they get regrouped wherever they last were.

  • Disabling the windows xp start button,and disable ALT+TAB

    hi all, i am writing an internet cafe management system, and its required that clients do not access the start button, although it will be visible but will not respond to mouse clicks or keybord events.
    And also how do i disable ALT+TAB when my program is running.
    thanks.

    Event if using vb.net it won't be happen (i think). Why do you want the client did not access the start menu? if you want the client canot access the control panel, why dont just you hide the control panel menu from start menu? (i dont know how to do that, but maybe a little googling will help). Because yesterday, i go on internet cafe and can only access the Program and Shutdown menu.

  • Forms personalisation - Vendor Form - How to Disable a Tab Page

    Hi,
    I am not a Forms 6i/9i programmer, although I have an appreciation of the concepts and can look at forms in Form builder. I have been looking at forms personalisation and have used it to execute plsql via the built in 'execute a procedure'. I can also see how to disable blocks, or items, but I haven;t managed to disable a form tab page i.e. On the vendor form there are tabs for GENERAL, CLASSIFICATION etc.
    I have tried using the object type Tab Page, but the poplist doesn;t list any tab pages. Also if you choose Canvas, the list of Canvases appears but generates errors when you try and use the form (complaining of tab page ids).
    I understand that to disable a tab page programatically, you would use SET_TAB_PAGE_PROPERTY i.e. in a forms trigger or in CUSTOM.pll
    I would have thought Forms personalisation could do this.
    Any ideas would be appreciated
    mark
    I under

    What you can do is hiding the tabs (see pic below) and force the active tab programmaticily
    Hope this helps
    Message Edité par TiTou le 09-20-2006 10:35 AM
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"
    Attachments:
    Clipboard01.png ‏151 KB

  • Disabling a tab in a tabbed canvas

    Hi guys,
    I have a tabbed canvas with two tabs, I have fields on tab 1 that I want the user to complete and SAVE before they can even navigate to the second tab ie, I dont want the users to be able to insert or update ANY fields on the second tab untill the fields on the first tab are populated and SAVED. Does anyone know a way I could acheive this?
    Thanks for any help I may receive.

    Good morning,
    To disable a tab, use the following Built-In: SET_TAB_PAGE_PROPERTY ('<the name of the tab>', ENABLED, PROPERTY_FALSE);
    To enable a tab, use the following Built-In: SET_TAB_PAGE_PROPERTY ('<the name of the tab>', ENABLED, PROPERTY_TRUE);
    Good luck,
    Don.
    REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone! :)

  • How can I disable the tabs in safari on the ipad2

    How can I disable the tabs on safari on my ipad2. I hate the tabs!!!

    You can't, Safari on iOS 5 on the iPad uses tabbed browsing. You can try leaving feedback for Apple and maybe in a future update we'll get the choice of tabs or thumbnail/paged browsing : http://www.apple.com/feedback/ipad.html
    In the meantime I think that the (free) Opera browser and the iCab Mobile browser in the app store offer thumbnail browsing to some degree.

  • Rgearding disability of tabs on a lead page

    Hello everybody,
    Is there any possibility to disable the tab buttons on a lead page. For example on the lead page there are 3-5 tabs which displays like " Convert",Reject"...etc
    Please do the needful, its very urgent.

    Hi Subbu,
    these are settings in the Role Management settings
    Admin - User Management and Access Controls - Role Management - edit a particular role in step - 5: Privileges
    uncheck the below privileges:
    • 'Archive Leads'
    • 'Convert Leads'
    • 'Qualify Leads'
    • 'Reject Leads'
    save your changes, you may have to log out and back in for these to take effect.
    Thanks,
    Royston

  • How to disable the tab focusing for a JTextField object because those ...

    Hi All,
    Here I need some help. I want to disable the tab focusing( tab index) for a JTextField objects because those objects are set as setEditable(false). Also can u tell me about how to change the tab index orders for JTextFields.
    Many thanks,
    Vijaycanaan.

    I want to disable the tab focusing( tab index) for a JTextField objectsLook through the API and find methods with the word "focus" in the method name.
    Also can u tell me about how to change the tab index orders for JTextFields."How to Use the Focus Sub System":
    http://java.sun.com/docs/books/tutorial/uiswing/misc/focus.html

  • Spark TabBar: How to disable single tabs?

    Hi,
    I wrote already a bug report about this issue, but no one responded.
    For an application I need to disable and enable tabs on the fly. So I built a TabBar with a ViewStack as a dataProvider and NavigatorContent as the single items. Then I tried disabling a NavigatorContent component so that the tab is disabled. But it is still enabled and can be selected. How can I disable a single tab? Do I have to create a custom solution or wait until the TabNavigator component is ported to Spark? (Maybe I should fall back to the halo component)
    Also the enabled property of the TabBar doesn't disable the tab content. So there seems to be no connection between the data and the TabBar.

    If you find this post looking for the answer, I posted two options here: http://forums.adobe.com/message/4153359#4153359
    =D

  • How to disable the Tab key?

    Hi,
    Usually,the most end users select partners name or code by the Tab key or pickers, how can I disable Tab key? I want users to select a partner by user-defined values.
    Best Regards!

    Hi,
    We donu2019t have a provision for disable the tab key in B1.
    If you are assigning user defined value in any field, magnifying class will be displaying.
    You should give a KT to end user that donu2019t use tab key, instead of tab key please click on magnifying class in those filed.
    Thanks and Regards,
    Senthil Maruthappan.
    Team Work Never Fails
    Edited by: Senthil Maruthappan on Jul 4, 2009 11:16 AM

Maybe you are looking for

  • Colour peeling off please help!!

    Hiii I just brought an iTouch 5th gen a few months ago........and noticed today that  the blue colour has been slightly chipped off at the bottom...its still in the warranty period....wat should i do ???? please help

  • ON BEHALF USER  PLANT AND SLOC?

    HI, We have on behalf functionality implmented for cross companies. But while doing shopping, in shopping cart onbehalf user plant and sloc is not populating in plant and sloc. F4 list is not coming in shopping cart. Can anyone please help how to get

  • JE 5.0.55 and 4.1.21 available, critical fix for Database renaming

    All, I'd like to point out the critical bug fix that has to do with database renaming. This is fixed in JE 5.0.55 and JE 4.1.21. See below. --mark Berkeley DB Java Edition 5.0.55 http://www.oracle.com/us/products/database/berkeley-db/index.html (BDB

  • To find Where-Used of ODS Active table

    Dear Experts, I am having an ODS for which I wish to know wherever the active table is used as reference. It has been used in many places in ABAP routines of transformations. I wish to know wherever the table is included. I checked in SE11 for where

  • How to view an overview of inventory?

    I'd like to be able to view my inventory levels for all the products in my shop at a glance..... or at least to view what is sold out. Is this possible? and if so how? Thanks!