Disable a Sub-Tab in a SubTab Layout Reagion

Hi OAF Gurus,
I have a page having sub-tab layout RN. Based on certain condition we need to disable (render but not clickable) some sub tabs.
(____subtab1______ (__subtab2 (made read Only)_____ (___subtab3_______
So the user can now navigate to subtab1 and subtab3 but he/she cannot click on subtab2
The Sub tab regions do not have "Read Only" property defined in JRAD(where I thought to put a SPEL) nor I could find any API to do it via code. May be I missed something.
Please help me achieve this.
Thanks
Chaitanya

Chaitanya,
Set the render property of the container region inside the required subtab to false. The subtab header name is a link by default, hence you can't stop it from being clickable or have a look at javadoc to see if some api exists.
--Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • Personalization: Add  additional tab in a Subtab layout

    Hi,
    I've a seeded page which have a Subtab layout showing 6 tabs.
    Now I want to add a new tab to show my custom region.
    Using Personalization, I'm able to add a region[stack layout] under the subtab layout and add a link under subtab bar.. But the link is not visible. If I remove the region [stack layout] from the subtab, the link is visible.
    Can anyone knows, why it happens ???

    Guna,
    Did you export the file, alter it, and import it again? Bellow is the application navigation path that is used to import/export the file.
    Functional Administrator -> Personalization -> Import/Export
    --Marcelo                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to find number of subtabs in the in the sub tab layout

    Hi,
    I have a sub tab layout region.In that, i am hiding some some sub tabs based on some condition.I want to know how many visible sub tabs that a sub tab layout presently have in all of my sub tab controllers.Please Help me in this.
    Thanks
    Satya

    Satya,
    OASubTabLayoutBean subTabLayout = (OASubTabLayoutBean)webBean.findChildRecursive("SubTabLayoutRN");
    if(subTabLayout!=null)
          System.out.println("Child :"+subTabLayout.getIndexedChildCount());
    }Regards,
    Gyan

  • Can not update tab if its not the default sub-tab.

    Can not update tab if its not the default sub-tab.
    JDeveloper Version 10.1.2.1.0 (Build 1913)
    Hi. I have a problem with a “lovOpenWindowAction”
    The UIX is created with a master UIX and have several sub-tab that is included as UIX-pages.
    The lovOpenWindowAction lies in the included UIX-page
    The sub-tab I have a problem with has a table with users. Then I have a “Create New” button than I want to click on and select a new user that should be included in the table in the sub-tab.
    When I click on the button I open a LOV-window. Here I select the user that I want to add.
    In the LOV Action-class I save my new value in the database. Then in the method “onLovUpdate” I update the iterator with the new values from the database.
    But in my GUI the subtab is not updated until I click on it.
    But if I make the subtab the default subtab then it all works just fine and the GUI is updated directly.
    Here is the code for the tableAction in the subtab. This code lies in an included UIX-page. Target is the table id.
    <tableActions>
    <button text="Create New" id=" createNewRollperson" accessKey="N">
    <primaryClientAction>
    <lovOpenWindowAction destination="FiskeRollpersonerLOV.do"
    source=" createNewRollperson "
    targets="joinedRollpersfiskeer message"/>
    </primaryClientAction>
    </button>
    </tableActions>
    Here is some code from the master UIX-page
    <subTabLayout id="flikar">
    <subTabs>
    <subTabBar selectedIndex="${ui:defaulting(param.index,0)}">
    <contents>
    <link id="resorFlik" text="Resor"
    disabled="${sessionScope.fiske.id == null}"
    selected="${(param.source == 'resorFlik') or empty param.source}">
    <primaryClientAction>
    <firePartialAction event="changeTab" targets="flikar globalHeader">
    <parameters>
    <parameter key="source" value="resorFlik"/>
    </parameters>
    </firePartialAction>
    </primaryClientAction>
    </link>
    <link id="rollpersonerFlik" text="Rollpersoner"
    disabled="${sessionScope.fiske.id == null}"
    selected="${param.source == 'rollpersonerFlik'}">
    <primaryClientAction>
    <firePartialAction event="changeTab" targets="flikar globalHeader">
    <parameters>
    <parameter key="source" value="rollpersonerFlik"/>
    </parameters>
    </firePartialAction>
    </primaryClientAction>
    </link>
    </contents>
    </subTabBar>
    </subTabs>
    <contents>
    <switcher childName="${param.source}"
    defaultCase=”ResorFlik">
    <case name="resorFlik">
    <include node="${ctrl:parsePage(uix, 'includes/ResorFlik')}"/>
    </case>
    <case name="rollpersonerFlik">
    <include node="${ctrl:parsePage(uix, 'includes/FiskeRollpersonerFlik')}"/>
    </case>
    </switcher>
    </contents>
    </subTabLayout>
    What am I missing?? I can’t have this subtab as the default subtab! Please help me with a solution!

    hi,
    Change the condition type to manual entry.
    or
    for example delivery costs will be different at the time of PO and actual delivery costs then at the time of invoice we select planned delivery costs and settle them first with the actual delivery cost.
    Thanks & Regards,
    Kiran

  • Sub Tab is loosing focus

    Hi All,
    I have a Sub Tab Layout with 5 tabs in it. Each sub tab has an advanced search region.
    The page loads correctly with focus on the first tab. I am facing a problem after switching between tabs and any event (Go / Add) is fired on the page. If the Go or Add button of the Advanced search region is clicked, The tab with the greatest index that was accessed is displayed to the user with the First tab being highlighted.
    Eg:
    If when the page loads i switch between the first three tabs of the five without triggering any event(just switching between the tabs) an I get back to the first tab and run a search or add a new search criteria, The tab displayed to the user is the 3rd one with the first tab being highlighted.
    Not sure what is goin on or why this is happening. went through some threads and have implemented the following code in the process request..
    OASubTabLayoutBean subTab =
    (OASubTabLayoutBean)webBean.findChildRecursive("MainRN");
    subTab.setSelectedIndex(pageContext,"CustomSnltyHdrRN");
    OALinkBean link = (OALinkBean)subTab.findChildRecursive("LinkCustomSeas");
    link.setSelected(true);
    "CustomSnltyHdrRN" is my first tab region ID &
    "LinkCustomSeas" is the link ID for the first Tab.
    How can I resolve this? .. Kindly help ..
    Thanks and Regards,
    Dean

    Many ways to do this but I actually suggest a different path
    then trying to concern yourself with the FocusManager.
    You say it submits to a MySQL server. Are you using a
    Middleware server or submitting directly to a local server.
    If you are making webservice or remoteObject calls then you
    can send the ID back in the return and have that trigger another
    call to get the data and place it into your dataProvider. Or even
    better might just want to have it send that record back along with
    the id.
    If you are not using any type of Middleware I would suggest
    you do. Otherwise you may just want to write a stored procedure
    into the MySQL Database so that when the submission happens it
    inserts it and then automatically performs a select on that record
    and sends the query back.
    This way the same script that submits the form can be waiting
    for the returned data to inject into a dataProvider that your
    second Module is ready to use.
    The dataProvider could simply be a valueObject or you could
    use the command pattern to pass data back and fourth.

  • Sub Tab Region Personalization

    Hi,
    Is it possible personalize sub tab regions? The OA Framework Personlization guide says "Limited properties of SubTabs, such as Rendered, may be personalized at the Admin level but not at the end-user level." But when i login as sysadmin and try to personalize the page i dont see any option to personalize the sub tabs.
    My requirement is to disable couple of sub tabs(6 sub tabs exists in all and 2 should be disabled) in a OA Fwk page shipped by Oracle for a specific responsibility say "A". For responsibilities other than "A" all the 6 sub tabs should be enabled. Can this issue be fixed through personalization?
    Thanks, Suresh.

    I think, this can be achieved by the following:
    1) Create custom menus (that is a copy of the seeded menus releated to the responsibilty)
    2) Then check the tabs in the menu (weather it is a prompt or submenu)
    3) Remove the prompt or submenu from the menu
    Just removing the prompt will work in your case.
    Also remember to keep all the submenus and functions like as it in the seeded menus to avoid future error while accessing some functions (This is Oracle recommendation)
    All the best...and let me know if any..
    Thanks
    JTM

  • Subtab layout Question

    Hi,
    i have a subtab layout and there are 2 subtab A and B. Both contain Advance table with each table holding a seprate vo's VO1 and VO2. These vos are not associated with any EO.
    There will be always records in these 2 sub tabs and user will update the few record.
    My job is to read the all the updated records of VO and then use Pl/sql to update in datbase.
    ISSUE.
    Now i am facing a problem . In subtab A if i updates already queried rows and move to subtab B and then comeback to A again , all the updated values in the Subtab is lost, becuase it class the processrequest and requery the view again.
    How to solve this probelm ?
    1) Do we ask to save teh data to move betweek sub tab ?
    2) do not query again if it is already quries.
    What is the based approch ?
    thx

    You can handle this sub-tab navigation logic at a much higher level than letting your processRequest call the AM's init method that should not query the VO when the VO's isPreparedForExecution method returns true.
    One approach would be to add an event called 'Init' which should be set when the page is invoked the first time, and to add the condition in the 'processRequest' to ensure that the AM's init method that queries the VO is called only when this event is set. This will ensure that VOs are not re-queried when the 'Init' event is not be set for e.g. on sub-tab navigation, and this also gives you the control to re-initialize the AM simply setting the event 'Init'.

  • Subtab Layout

    I have a Subtab layout with 3 sub tabs.
    in the second tab i want to call a JSP page.
    How to find which tab is clicked when and how to include JSP page in the corresponding sub tab region when the second tab is clicked.
    Thanks

    Hi Anil
    i am getting the selected tab by the method getSelectedIndex() of subtablayout.
    and getting the corresponding link
    int tab=sub.getSelectedIndex(pageContext);
    if(tab==1)
    OALinkBean link=(OALinkBean)webBean.findChildRecursive("item2");
    link.setDestination("D:/NewJdev/jdev9/jdevhome/jdev/myhtml/OA_HTML/Order.jsp");
    but i am not able to redirect to jsp page.
    It is simply displaying the region bounded to the link.
    Pls help how to redirect to jsp.
    Thanks

  • Sub Tabs not displaying correctly

    We are having the following problem with a 10g install.
    A page group has been created. A custom style for the page group has been associated with the page group.
    The style has been edited - tab properties. Custom colors and fonts have been allocated to the active and inactive tabs.
    At the top level (i.e. level one of the tabs) everything works as expected. The tabs are correctly using the custom colors and font styles for both active and inactive tabs.
    The problem is with tabs below this top level (i.e. sub-tabs). The inactive tabs appear as they should. The active tab however is not using the correct font. The color however is correct. If I view page source I see that the tab in question is using <font class="SubTabBgTextid1siteidXX"> whereas the tabs that are working correctly use <font class="TabBackgroundTextid1siteidXX">.
    I notice that the other tabs on the same sublevel use the correct <font class="TabForegroundTextid1siteidXX"> style.
    So portal is using the class "SubTabBgTextid1siteidXX" whereas it should be using "TabBackgroundTextid1siteidXX".
    Please advise on how to change the properties for "SubTabBgTextid1siteidXX" as we cannot find anywhere other than the tabs general properties when editing the page style.

    This looks like a bug. I did some testing and found a potential issue with INACTIVE subtabs (specifically INACTIVE subtabs don't appear to pick up the Font Face and Font Style selections made as part of the style definition). For me, INACTIVE subtabs always seemed to render using a Arial, Helvetica Font Face and a bold Font Style (but seem to pick up the Font Size, Font Color, and Font Decoration settings). Is this what you are seeing?
    TOP LEVEL TABS
    Active Tab - TabForegroundTextidXXXXsiteidYY
    Inactive tab - TabBackgroundTextidXXXXsiteidYY
    SUBTABS
    Active Tab - TabForegroundTextidXXXXsiteidYY
    Inactive Tab - SubTabBgTextidXXXXsiteidYY

  • Change "tab" direction in BPS layout

    All -
    I have a BPS layout which will allow users to input net sales and gross sales( to name a few KF) for Global Sub Brands.  In my layout, I have the key figures coming down and the Global Sub Brands going across. 
    I want the users to be able to use the tab key to jump from cell to cell vertically and NOT horizontally.  Is there any setting that I can change that will change the direction of the cursor when I click on "tab"?

    When I run that transaction I get a list of Planning folders which are not part of my planning area.  So, I don't think I can run it in UPSPL.

  • Sub tab refresh

    Hi,
    I have added new tab to seeded page in Sourcing module. In Quote RFQ page, there are two tabs Headers and Lines, I added new tab Capability.
    This new tab should display the RFQ lines which are not quoted ie for which price is null or zero. If a line is not quoted in Lines tab, it should be
    displayed in Capability tab to capture the reason for not quoting.
    Headers, Lines are Stack Layout regions in SubTabLayout Region. Through personaliztion I have added new stack layout region Capable to Subtab layout region, now capable tab displayed next to Lines tab.
    I am not getting how capable tab will be refreshed when toggling between tabs and there is change in lines tab. Both StackLayour and Table layoug which Capability tab is having,
    do no have fire action.
    Please advice me how to resolve this new tab refresh issue ?
    Thanks,
    Sunitha

    My question is still unanswered, could any help me please ...

  • Hiding/Disabling the resources tab under project management.

    Hi,
    We need to hide/disable the resources tab in project management screen. We are not using project resource management module and also the Profile Option "PA: Licensed to use Project Resource Management" has been set to "No".
    Can someone suggest a solution for the same.
    Regards,
    Rakesh Menon

    I already got an response to the issue from Julia through Oracle Community...
    Below is the solution -
    For the Project Management Responsibility where you want your Resource Tab to be disabled:
    Go to a System Administrator responsibility - Security - Responsibility-Define.
    Look for your resposibility of Project Management.
    Under Menu Exclusion Tab add a line with Type Menu and name "Project Resource Sub Tab".
    Click Save button and then go to check in your responsibility if the Resources Tab is disabled. (it should be).

  • How to handle sub tab region action

    Hi All,
    How do we handle sub tab region actions? I have a requirement where the page is supposed to get refreshed when "Products" subtab is clicked. This tab is in the subTabLayout with id QotHdrSubTabRN.
    Regards,
    Shreyas

    Hi,
    Could you please elaborate a bit more on this. This subTab is on the standard page and not on a page I have created. So I'm not sure how exactly to set the Action Type to fireAction.
    Regards,
    Shreyas

  • Issue of Popup with subTab Layout

    Hi folks,
    I have a requirement to implement a popup which will have three tabs in the popup region. I create a button to trigger the popup and use subTab layout for tabs in the popup region. But the issue is when I click the button, it does not show tabs and the tabs look like a table in the popup region. Please let us know how to implement tabs in the popup region. Any help will be greatly appreciate.

    Hi
    Your POP should also be an OAF page. You create subTab in POPUP page as you create in any other page.
    If you are not sure how to work with subTabs please check documentations
    Regards
    Shobhit S

  • Change the default Sub tab in Purchasing

    Hello everyone,
    Whenever I click the responsibility "iProcurement Requestor", a page appears where tab "Shop" and subtab "Stores" are selected by default. We have a requirement that by default the subtab "Categories" should be selected. Any idea how to achieve this? I tried to change the sequence of the items within the "HTML Sub tab" type, but that changed only the display sequence, not the selection of default subtab.
    Any help would be appreciated.
    thanks,
    abbas

    Hi,
    Use this code in Process Request.
    OAPageLayoutBean page = pageContext.getPageLayoutBean();
    page.prepareForRendering(pageContext);
    OALinkBean link = (OALinkBean)subTabBean.findIndexedChildRecursive("<ID of Subtab to be displayed>");
    link.setSelected(true);
    Thanks,
    Gaurav

Maybe you are looking for