Adding tabs dynamically at runtime for a tab navigator control

Hi,
Is it possible in flex builder 2 to dynamically add the tabs
at runtime to the tab navigator control, if we can add plz tell the
procedure to do that
thanks in advance

Given that you had a tab navigator declared in mxml like
this:
<mx:TabNavigator id="myTabber" selectedIndex="0">
</mx:TabNavigator>
you should just be able to call the addChild method, passing
the child tab containers. So for example, in some ActionScript
event handler:
var newTab:Canvas = new Canvas();
myTabber.addChild(newTab);
bear in mind I haven't done this by adding tabs, but have
done tons with adding controls to an application at runtime using
this method (DataGrids, Grid, GridItems, etc...)
Jason

Similar Messages

  • Tab Set not showing for Parent Tab - Bug?

    Greetings,
    (I figured someone else has experienced this issue, but after searching with multiple words I haven't found a thread.)
    Using Application Express 4.0.2.00.07. The application in question is using Theme 7 - Modern Blue
    My APEX application has over 20 pages and a lot of tabs, so I decided to create 2 new parent tabs (for a total of 3 parent tabs) and then assign the tabs to different tab sets so that I won't run out of horizontal space for all the tabs.
    As best that I can tell everything with the parent tabs is set up correctly. I even had another developer look over everything I set up. The two newly created 2 parent tabs don't show their tab set of tabs when I click them. The parent tab that was first created still works, but not the 2 new ones. When we maintain everything via the tab interface everything looks OK, but when we look at the pages they are still assigned to the original tab and I don't see a way to change the tab set on the page level. We copied and deleted a page and when we did the page and its tab displays with the correct parent tab.
    Is this a bug? It seems to be. It seems that creating the parent tab does not cascade down to the page level.
    Also, regardless if it is a bug, is there a way to change the tab set at the page level? I hate to copy a lot of pages and delete the orignal pages, but maybe that's the only work around.
    Also, maybe this is a theme issue? I know that some themes don't handle certain aspects correctly.
    Thanks, Tony

    I think I figured it out. There is a section on the page where you can change the Tab Set. It is under Display Attributes.

  • How to change a TAB dynamically to be the active tab?

    Hi,
    I have a portlet written in Java and registered using a web provider. This portlet exposes a link which drives the content of another portlet through parameters&events.
    This other portlet is placed on the same page but on a different TAB (!).
    What I want is, when clicked on the link in Portlet1, this changes the content of the Portlet2 (via an event and parameter - that works) AND should change the TAB, so that the TAB which contains the Portlet2 is active and shown.
    I couldn't figure out, how to change the TAB with an event or any other way. I can easily change the page through an event, but not to a tab on the same page. Do I overlook something or can I just don't use events for this?
    Is there any API function which does changing tabs or getting the tab id or is there any other programmatic workaround to do dynamic tab changing?
    If so, can someone point me to a code fragment?
    Any help would be much appreciated.
    Cheers,
    Erik

    A work around may be to change the location.href to the url of the tab you want to switch to.
    Have you tried that already?

  • Use Alt+0-9 for non-pinned tabs, Ctrl+0-9 for pinned-tabs

    Hi there community!
    As simply stated above, I want to tweak my keyboard shortcuts so that navigating between pinned and non-pinned tabs are distinguished. Reason for that is that I have ~8 pinned tabs (Gmail, Facebook, Feedly, Calendar, HabitsRPG to name a few), and as a result cannot quick navigate between my regular, unpinned tabs using numbered hotkeys.
    Thanks!

    This code when assigned to a key will select a not pinned tab with number D, so you could possibly use the keyconfig or another extension to assign Ctrl 1-9 to the appropriate code.
    I use this to go to the first unpinned tab without the D code.
    <pre><nowiki>var D=1;
    var M=gBrowser.mTabContainer;
    var C=M.childNodes;
    var L=C.length;
    var cT=M.selectedIndex,sT=cT,T,i;
    for(i=0;T=C[i];i++){if(!T.hasAttribute('pinned')){sT=i;break;}}
    M.selectedIndex=sT+D-1;
    </nowiki></pre>
    Test code:
    <pre><nowiki>var M=gBrowser.mTabContainer;
    var C=M.childNodes;
    var L=C.length;
    var cT=M.selectedIndex,sT=cT,T,i;
    for(i=0;T=C[i];i++){if(!T.hasAttribute('pinned')){sT=i;break;}}
    var D=parseInt(prompt("PIN: "+(sT)+"\nCUR: "+(cT+1),L-sT-1))||0;
    if(D<0){D=-D;sT=0;}
    if(D){M.selectedIndex=sT+D-1;}
    </nowiki></pre>

  • Tabbed panels: switching images for each tab?

    Hi,
    I am a spry newbie. I have three tabs in a tabbed panel. I
    have been able to put images into the tabs; these are my three tab
    labels. But I'd like to switch the image of a tab when it's being
    clicked or hovered over, and then again when it's the foreward-most
    tab. Is there a way to do this? If so, could you please explain or
    point me to an example? Thank you very much.

    My education in spry continues. I realized that I didn't have
    to use images, as I had been doing, since my labels were just text
    on a color background. I quickly learned how to work with the css,
    and now the tabs look very nice. So, problem solved!

  • View Link - Adding criteria dynamically in runtime

    Hi all,
         I'm working on a development in which Hgrid is used to show results based on the user's search criteria. The query to populate the Hgrid region, as expected, is built from a Master VO linked with a Details VO through a View Link.
    As per design model and requirement, I will need to use specific filters on the Details VO besides the already existing link attribute defined to link both Master and Details VO. My question is.. How can I implement this??
    I've tried to use setWhereClause(...) and executeQuery() in the Details VO but it seems that no matter what I include in the WhereClause for the Details VO, it just simple ignores.
    Scenario Example:
    MasterVO attributes (ship_hdr_code, ship_hdr_id)
    View Link (Master.ship_hdr_id = Details.ship_hdr_id)
    DetailsVO attributes (ship_line_code, ship_hdr_id, ship_line_id, amount, currency)
    After querying on MasterVO for ship_hdr_id = 1, View Link will query all lines on DetailsVO in which ship_hdr_id = 1 as well.
    In addition to this, users may want to see only records from DetailsVO that the currency is equal to 'INR'.
    I'd appreciate any help on this.
    Thanks and Regards,
    Eduardo

    Hi,
    I have the same requirement. Have you resolved this?
    Thanks,
    Yasdnil

  • Adding a dynamic summary row for a spark data grid

    i'm looking for a solution for a spark data grid.
    by clicking on a row it will become larger and will show under the original row a some kind of a summary text with no realtion to columns.
    is there a summary row option for a spark datagrid that can shown by clicking on the row?

    Why would you need to make this part of the DataGrid? Just create some kind of view and bind it's data to the selectedItem of the DataGrid.
    *edit*
    Ohhhh, I see that you want it to display under the item. I believe you can do what you need in the skin, but I haven't had a chance to use the spark DataGrid yet so I can't say for sure. I know it has a feature to skin the selection, so I'm sure you can use that to do what you need.

  • Glossary Tab and Navigation Controls

    Hi
    Our company has been asked to test our application using a
    Japanese version of Windows. Neither the program nor the help will
    be translated. Our QA department found two help-related problems:
    1. The TOC, Index, and Search tabs appear in Japanese, but
    the Glossary tab does not.
    2. The Navigation Control I inserted for the Related Topics
    appears as a square with a dot in the middle as if it were a
    missing image, and nothing happens when you click it.
    I'd appreciate any help you can offer to either show the
    Glossary tab in Japanese, or the other three in English, and to get
    my Related Topics popup back.
    I use RoboHelp 7.02 HTML and generate CHM files.
    Thanks,
    Jennifer

    Hi there
    Likely you need the 64 bit version of the HHActiveX.dll. I believe this is only available in RoboHelp HTML version 9.
    If you have version 9 I received this from a Question I asked of Adobe:
    ...you can get the 64 bit version of HHActiveX.dll in  RoboHelp 9.0. It is kept at "<RoboHelp 9.0 install  folder>\Redist\x64\HHActiveX.dll"
    If RoboHelp 9.0 is  installed on your machine, this activeX control is already registered.  Otherwise you need to register this DLL.
    To register HHActiveX.dll,
    1> Run Command prompt(cmd.exe) as administrator
    2> Type "regsvr32 <HHActiveX.dll full path>" and press Enter.
    3> This should show that the registration is done successfully.
    Now working with 64 bit version of HH.exe should also show Glossary and Browse Sequences.
    You might download version 9 and test.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • Disable for adding or changing in Component or Operation Tab

    Dear Expert,
             Module PM ::: I got an requirment form customer that they need to disable the field for adding or changing in Component or Operation Tab after maintenace order has a status as REL. Could you please find out the solution for me?
    Thank you in advance
    Gamez

    Hi,
          1. U may try to LOCK the Maintenance Order for changes once its status is release , so u should do changes via User exit :-
    IWO10002  -> PM maintenance order: Customer check for order release
    U can read status using FM STATUS_READ
    2. U can also check if BADI :- IWO1_SCREEN_MODIFY Field Content and Display Modification is helpful for ur case ..
    regrds
    pushpa

  • Adding and removing tabs dynamically as in explorer

    adding and removing tabs dynamically as in explorer or firefox

    Think about how many translations are required to move your avatar, then think how many translations are required to move everything else in the entire world. Depending on whether there is more to translate in your avatar or in the rest of the world, you have your solution.
    Not knowing how your system works I can't really suggest anything further but could the collision avoidance be interacting with everything in the world as well? That would increase the workload somewhat.

  • Use different "fx-border-image-source" for first tab and remaining tabs

    Hi,
    I'm using something like this
    .tab {
    -fx-padding: 0px 5px -2px 5px;
    -fx-background-insets: 0 -20 0 0;
    -fx-background-color: transparent;
    -fx-text-fill: #c4d8de;
    -fx-border-image-source: url("images/tab5.png");
    -fx-border-image-slice: 20 20 20 20 fill;
    -fx-border-image-width: 20 20 20 20;
    -fx-border-image-repeat: stretch;
    -fx-font-size: 22px;
    .tab:selected {
    -fx-border-image-source: url("images/tab-selected5.png");
    -fx-text-fill: #333333;
         -fx-background-color: red;*/
    to customize the tab appearance of a TabPane.
    That worked well. But I need to use a different set of images for just the first tab. Does anyone know a way to accomplish that?
    Thanks.

    How can I "fix up" the first tab of tab panes that are created after I "fixed up" the first tab of the initial tab pane?
    My app allows user to create new tab panes at any moment during program execution.Not easy to answer this one.
    The best answer would be to use structural pseudoclasses, but (as David points out), they are not yet implemented.
    The trick here is how to identify the first tab of each tab pane so that it can be styled separately from the other panes.
    Doing the styling without a dynamic lookup is preferrable to using a dynamic lookup (i.e. when the first tab is created give it a specific style, e.g. tab0).
    This is how the charts work, where they set style classes based on series of data, e.g. series0, series1 - this allows you to independently style each series of data.
    However the chart stuff has all of that built into the implementation, whereas the tabs don't. To achieve that you would likely need to go into the TabSkin code (http://openjdk.java.net/projects/openjfx/) find out where and how it generates the Tab nodes and write a custom tab skin or extension of the existing one which assigns a numeric style class to each new tab in a pane (e.g tab0, tab1, etc). In other words, not particularly easy if you are unfamilar with the tab skin implementation. You could log a javafx jira feature request to have those style classes set on tabs - file it here => http://javafx-jira.kenai.com.
    In the meantime a simple alternative is to use the dynamic lookup method in my previous post and a hack such that whenever you add a new tab pane to the scene you do something like the following:
    new Timeline(
      new KeyFrame(
        Duration.millis(50),
        new EventHandler<ActionEvent>() {
          @Override public void handle(ActionEvent arg0) {
            Node tab = newTabPane.lookup(".tab");
            if (tab != null) tab.getStyleClass().add("first-tab");
    ).play();The reason for the Timeline is that I don't really know at what stage the css layout pass is executed. I know that when you initially show the stage and then do a lookup, the css pass seems to have already been done and the lookup will work. But for something that is dynamically added or modified after the scene is displayed - I have no idea when the css layout pass occurs, other than it's some time in the future and not at the time that you add the tabPane to the scene. So, the Timeline introduces a short delay to (hopefully) give the css layout pass time to execute and allow the lookup to work (not return null). Not the best or most efficient solution, but should work for you.

  • Getting tab name or tab id or tab label at runtime

    Hi All,
    I think the answer is "no" but I'm going to ask anyway just in case I missed something.
    I am designing some authorization schemes for my application. The context behind the design is this:
    1. Two-level tabs application.
    2. Access is stored in a table where an assignment between a level 2 tab is assigned to a user (well, it's really assigned to groups of users but that's not that important for this question). The level 2 tab is assigned via a select-list LOV defined as:
    select
    tab_label d,
    tab_id r
    from apex_application_tabs
    where application_id = :APP_ID
    and workspace = :OWNER
    order by 1
    So I store the TAB_ID of the 2nd level tab and it's assigned to groups of users.
    So what I'd like is this at runtime:
    1. For page-level security, I read the Apex data dictionary and pass APP_PAGE_ID to a function that reads the page number. I traverse the tab hierarchy in APEX_APPLICATION_TABS to see if the APP_PAGE_ID resides in TAB_PAGE or TAB_ALSO_CURRENT_FOR_PAGES to get the TAB_ID. Then I check my own assignment table to see if that TAB_ID is accessible to the user. If so, return TRUE, else, return FALSE. This is working wonderfully and isn't a problem...at runtime if I navigate to a page that is on a 2nd level tab and I don't have access to the page, the security scheme errors (correctly).
    2. For tab-level security, I want that at the parent tab level that if the user has access to one or more of the 2nd level child tabs, display the parent tab.
    3. For tab-level security, if the user is on a parent tab (because he/she has access to at least one child tab), only show the child tabs to which they have access.
    Now the problem(s). The thing is that the user sees the tabs before they navigate to them (#2 and #3 I don't have working right now) and I want to hide them if they don't have access.
    For example, let's say my parent tabs are A, B, and C. Child tabs are A1, A2, A3 underneath A. B1, B2, B3 underneath B. C1, C2, and C3 underneath C.
    Let's say everything in A and underneath A (so A1, A2, and A3) are available to anyone who has a login to the application. No problem there.
    Then, let's say most or all users have access to B1 but fewer users have access to B2 and B3. What I want is that if anything from B is available to a user, show parent tab B. If the user clicks on parent tab B, then show B1, B2, and B3 but only show the tabs to which they have access (so if they have access to B1 and B2 but not B3, do not display B3).
    Then, let's say C is a very powerful administrative tab and very few people have access to it. I want to not-show C at all for people who do not have any access to C1, C2, or C3.
    The problem I have at runtime is that I cannot find a way for a tab to pass information about itself when the tab is about to paint (or not-paint). The only variable or substitution string at runtime that I can find to reference about a tab is "CURRENT_PARENT_TAB_TEXT". However this gives me only information about the parent tab's text of the parent tab that has focus right now; each parent tab cannot pass it's own info until I navigate there. I need to get that information w/o navigating to the tab first so that I can determine to show/hide the tab. Does that make sense? In other words, at runtime, I log into the system and let's say I'm not very powerful and should only be on tabs A1, A2, and A3 under A. I log in, I land on A1, and I can see A2 and A3 (good), but also I can see parent tabs B and C poking up there too. CURRENT_PARENT_TAB_TEXT does not resolve to B or C (it currently resolves to A) until I actually try to click on B or C. I need to hide B or C before the user clicks.
    Yes I can do it if I hard-code the name of the tab in a security boolean function, but I would have to have as many authorization schemes as I have tabs. This is why I want just one tab-level scheme where I pass the tab name or ID at runtime dynamically but I can't seem to reference it.
    Over in the template for two-level tabls I see #TAB_LABEL#, #TAB_NAME#, #TAB_ID#, and #TAB_LINK#. These don't seem to be available to PL/SQL to pass at runtime to a PL/SQL function. If they could, this would be my answer.
    Any other options or am I stuck on this one?
    BTW...we are on version 3.2 of Apex and going to version 4 soon. If something is available in 4 for this that helps, I can do it then.
    Ideas? Thanks!

    Hey gti_matt,
    Did you end up getting anywhere with this?
    I'm in the same boat atm...
    Thanks,
    Dan

  • Disable tabs at runtime (WebDynpro Java - tab strip)

    I have a tab strip view set and want to disable the navigation to some embedded views at runtime.
    Tab 1 contains a view for selecting items. If the selection does not return any values from
    the database I want to disable tab 2 ("the user shall not be able to select tab 2).
    Any idea how I could do this?
    Regards FW

    Use a TabStrip and ViewContainerUIElements instead of a view set. Then you can disable tabs dynamically via the Tab.enabled property.
    Armin

  • Hiding a Tab Dynamically in FPM

    Hi,
    Can you please let me know how to hide the tab dynamically in FPM. I tried to implement the interface IF_FPM_TABBED_CONF_EXIT in the SAP standard webdynpro, but I get a error " Web Dynpro comp./intf. "IF_FPM_TABBED_CONF_EXIT already exists". Even though I get this message I am not able to find the interface IF_FPM_TABBED_CONF_EXIT in the implemented list of interface.
    Regards,
    Arun

    Hi Aliaksandr,
    Thanks for the reply.
    Actually I am not able to implement the interface controller  IF_FPM_TABBED_CONF_EXIT in the SAP standard webdynpro, I get an error " Web Dynpro comp./intf. "IF_FPM_TABBED_CONF_EXIT already exists".
    Even though I get this message I am not able to find the interface IF_FPM_TABBED_CONF_EXIT in the implemented list of interface.
    Regards,
    Arun

  • Bapi BAPI_REQUISITION_CREATE : how to populate data for sevices tab

    Hi all,
    I am creating a purchase requisition through bapi .I am using  bapi BAPI_REQUISITION_CREATE
    For creating purchase requisition. The bapi is  creating PR.
    I need to add item level services details also through bapi.i am Using structure BAPIESLLC to populate data. But the data is not getting populated in the services tab.
    For header data i am populating the following data.
    itab_bapiebanc-preq_item      =    '10'.
      itab_bapiebanc-doc_type       =    'NB'.
      itab_bapiebanc-short_text     =    'Blinding'.
      itab_bapiebanc-quantity        =    '1'.
      itab_bapiebanc-unit              =    'AU'.
      itab_bapiebanc-deliv_date      =    '20081027'.
      itab_bapiebanc-plant             =    '1000'.
      itab_bapiebanc-pur_group      =    '001'.
      itab_bapiebanc-preq_name    =    'tracking no'.
      itab_bapiebanc-trackingno     =    '2/C/1B'.
      itab_bapiebanc-mat_grp        =    '007'.
      itab_bapiebanc-acctasscat    =    'P'.
    itab_bapiebanc-ITEM_CAT      =    '9'.
    itab_bapiebanc-GR_IND          =    'X'.
    itab_bapiebanc-IR_IND            =    'X'.
    itab_bapiebanc-FIXED_VEND    =    ' '.
    APPEND itab_bapiebanc.
    itab_bapiebkn-wbs_elem        =    'E-2004'.
    itab_bapiebkn-g_l_acct  =  '0000417000'.
    APPEND itab_bapiebkn.
    itab_bapiebantx-PREQ_ITEM = '10'.
    APPEND itab_bapiebantx.
    when i am adding the above data the p,r is creating sucessfully in the system.
    I need to add data in the item level services tab also.
    I am populating for services tab .
    *----- this part is not working
    itab_bapiservices-SERVICE  = '100217'.
    itab_bapiservices-PCKG_NO  = '0000000001'.
    itab_bapiservices-LINE_NO  = '0000000001'.
    itab_bapiservices-EXT_LINE = '0000000010'.
    itab_bapiservices-short_text = 'BREAKFAST CNTR TOP; AS PER SPECS'.
    itab_bapiservices-QUANTITY  = '680'.
    itab_bapiservices-BASE_UOM  = 'M2'.
    itab_bapiservices-GR_PRICE  = '23.00'.
    itab_bapiservices-MATL_GROUP = '007'.
    itab_bapiservices-PRICE_UNIT = '1'.
    append itab_bapiservices.
    I am populating data for service tab like given above.But the value is not get updaing in purchase requisation.
    Please let me know how to populate the data for service tab.
    with regards,
    ambrose
    itab_bapiebantx-text_line      =    'Test for Purchase requisiton'.
    APPEND itab_bapiebantx.

    Hello
    Try this:
        CALL FUNCTION 'NUMBER_GET_NEXT'
             EXPORTING
               nr_range_nr                   = '01'
               object                        = 'SERVICE'
             IMPORTING
               NUMBER                        = pacno
             EXCEPTIONS
               INTERVAL_NOT_FOUND            = 1
               OTHERS                        = 8.
    itab_bapiservices-PCKG_NO = pacno + 1.
    Also Note 499626 - FAQ: BAPIs in the service

Maybe you are looking for