Accordion defaultPanel first tab value

I have an application which has an accordion panel and
several detailregions.
- the accordian panel is dynamically generated in spry with
xml (both the tabs and the content)
- the detailregions are based on what the current selected
tab is in the accordion panel
I needed to be able to access these tabs via a URL query
string - and have the correct panel / detailregion display based on
the variable passed in the URL.
I have this working correctly.
The problem though, is that the tabs onClick events do not
number correctly when using the defaultPanel attribute.
For example,
var acc = new Spry.Widget.Accordion("test",{defaultPanel:
functionThatGeneratesDefaultPanel});
works correctly for setting the panel which needs to be
displayed, but then if you click on the tabs to navigate to a
different panel, tab one ALWAYS defaults to whatever the
defaultPanel value was instead of being 0. Obviously this disables
the accordion panel from working correctly.
Any suggestions on how I can get around this?
Your assistance is appreciated!
elaine

Thanks for the reply Chris. I have somewhat narrowed down the
problem, but still haven't solved it (had to move on and finish the
rest of the website:)
As I mentioned previously, I am creating these accordion
panels dynamically through xml. Inside one of the panels, there is
a secondary navigation system which is fed by xml as well. The
problem seems to be caused by having two datasets in the same
accordion panel. Here is the code:
var observer = { onPostUpdate: function(notifier, data) { var
acc = new Spry.Widget.Accordion("nav",{defaultPanel:
requestedPanel}); dsNavItems.setCurrentRow(requestedPanel);
displayCoupons(); } };
Spry.Data.Region.addObserver("nav", observer);
and the accordion:
<div id="nav" class="Accordion" spry:region="dsNavItems
dsNavSubs">
<div class="AccordionPanel" spry:repeat="dsNavItems">
<div class="AccordionPanelTab" spry:hover="rowHover"
spry:select="rowSelected"
onclick="clicker({dsNavItems::ds_RowID});">
<h3 spry:if="({ds_RowNumber}) != 2"
onClick="dsNavItems.setCurrentRow('{dsNavItems::ds_RowID}');hideLayer('comingSoon');hideL ayer('coupons');hideLayer('couponLarge');hideLayer('imageHolderScreen');hideLayer('submenu Content');hideLayer('submenu1');showLayer('featureGraphic');showLayer('ticker');showLayer( 'newsBar');"
spry:content="{dsNavItems::name}"></h3>
<!-- for coupons -->
<h3 spry:if="({ds_RowNumber}) == 2"
onClick="dsNavItems.setCurrentRow('{dsNavItems::ds_RowID}');hideLayer('comingSoon');hideL ayer('imageHolderScreen');hideLayer('submenuContent');hideLayer('submenu1');hideLayer('fea tureGraphic');hideLayer('ticker');hideLayer('newsBar');showLayer('coupons');showLayer('cou ponLarge');"
spry:content="{dsNavItems::name}"></h3>
</div>
<div class="AccordionPanelContent">
<div spry:state="loading"><img
src="images/ajax-loader.gif"/></div>
<div spry:state="error"><span spry:content="The
website is currently down. Please try again in a few
minutes."></span></div>
<!-- departments nav -->
<div spry:if="({ds_RowNumber}) == 0"
spry:state="ready">
<div class="department" spry:repeat="dsNavSubs"
onClick="{dsNavSubs::onClick}; goToURL('{dsNavSubs::url}')"
spry:hover="rowHover" spry:select="rowSelected"
spry:content="{dsNavSubs::name}"></div>
</div>
<!-- non-departments items -->
<div spry:if="({ds_RowNumber}) != 0"
spry:state="ready">
<span
spry:content="{dsNavItems::content}"></span>
</div>
</div>
</div>
</div>
This problem can be seen at
http://www.sportzoutdoor.com/index.php?panel=2
This will default to opening the page with the second tab
appearing. Trying clicking on the first tab and you will see that
it tries to refresh, but comes up as the 2nd tab. When running an
echo with this, on the rownumber, it returns as 2 for both the
selected tab and for the first tab. For some reason, it is
assigning 2 to this tab when it generates it.
The problem only occurs when it is selecting a specific panel
from the url query. Otherwise at
http://www.sportzoutdoor.com/index.php
it works fine. Also, this is the page where you can view the
secondary nav system built into the first panel.
Also, in another example - this one without a secondary nav
system, but still with the url query, works fine:
http://www.sportzoutdoor.com/cycling.php?panel=4
Let me know what you think...
thanks,
elaine

Similar Messages

  • Accordion Issue with IE7/XP: First tab is initially opened. Should be closed

    I'm almost finished my navigation menu for a client and everything is looking good. Except in IE7, of course. In IE7, the first tab is opened a little and I'd like it to be closed completely. How do I solve this or is this just a Spry bug?
    http://www.tendergreensfood.com/wp-content/themes/greens/test.html

    Make the default panel -1 in the constructor (panel number -1, of course, does not exist, so no panel will be open at first):
    <script type="text/javascript">
         var acc8 = new Spry.Widget.Accordion("Accordion1", { defaultPanel: -1 });
    </script>
    Lovely site, by the way...
    Beth

  • Opening first tab of jquery accordion when page loads

    Hello, I am wondering how I would make the first tab of my accordion to open when the page loads. It is a custom accordion and therefore it is hard to find the answer online.
    I want this to be specific to a certain page if possible rather than universal across the site.
    Here is the HTML:
    <div id="st-accordion" class="st-accordion">
                        <ul>
                            <li>
                                <a href="#">Lorem ipsum<span class="st-arrow">Open or Close</span></a>
                                <div class="st-content">
                                    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque consequat auctor ante, sodales pretium felis auctor in. Aenean tempor, orci vel vestibulum lobortis, justo augue laoreet turpis, id consectetur dolor arcu sed arcu. Sed id dolor tellus. Nulla eros risus, sollicitudin in ultricies ac, tincidunt et nisl. Nam ac consectetur est. Morbi pretium libero in lacus semper ultricies. Vestibulum in nibh a ligula malesuada posuere ac vel lorem. Duis varius scelerisque vehicula. Maecenas convallis tellus in tellus facilisis eget sollicitudin est lacinia. Ut quam tortor, pretium non lacinia sit amet, iaculis ac ipsum. Donec quis libero accumsan felis fringilla pulvinar eget in leo.</p>
                                </div>
                            </li>
                            <li>
                                <a href="#">Lorem ipsum<span class="st-arrow">Open or Close</span></a>
                                <div class="st-content">
                                    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque consequat auctor ante, sodales pretium felis auctor in. Aenean tempor, orci vel vestibulum lobortis, justo augue laoreet turpis, id consectetur dolor arcu sed arcu. Sed id dolor tellus. Nulla eros risus, sollicitudin in ultricies ac, tincidunt et nisl. Nam ac consectetur est. Morbi pretium libero in lacus semper ultricies. Vestibulum in nibh a ligula malesuada posuere ac vel lorem. Duis varius scelerisque vehicula. Maecenas convallis tellus in tellus facilisis eget sollicitudin est lacinia. Ut quam tortor, pretium non lacinia sit amet, iaculis ac ipsum. Donec quis libero accumsan felis fringilla pulvinar eget in leo </p> 
                                </div>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
            <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
            <script type="text/javascript">
                $(function() {
                                            $('#st-accordion').accordion({
                                                      oneOpenedItem          : true
            </script>
                        <script type="text/javascript" src="js/jquery.easing.1.3.js"></script>
            <script type="text/javascript" src="js/jquery.accordion.js"></script>
                </div>
    And the CSS:
    .st-accordion{
        width:100%;
        min-width:270px;
        margin: 0 auto;
    }.st-accordion ul li{
        height: 100px;
        border-bottom: 1px solid #c7deef;
        border-top:1px solid #fff;
        overflow: hidden;
    .st-accordion ul li:first-child{
        border-top:none;
    .st-accordion ul li > a{
        font-family: 'Josefin Slab',Georgia, serif;
        text-shadow: 1px 1px 1px #fff;
        font-size: 22px;
        display: block;
        position: relative;
        line-height: 100px;
        outline:none;
        -webkit-transition:  color 0.2s ease-in-out;
        -moz-transition:  color 0.2s ease-in-out;
        -o-transition:  color 0.2s ease-in-out;
        -ms-transition:  color 0.2s ease-in-out;
        transition:  color 0.2s ease-in-out;
    .st-accordion ul li > a:hover{
        color: #1693eb;
    .st-accordion ul li > a span{
        background: transparent url(../images/down.png) no-repeat center center;
        text-indent:-9000px;
        width: 26px;
        height: 14px;
        position: absolute;
        top: 50%;
        right: -26px;
        margin-top: -7px;
        opacity:0;
        -webkit-transition:  all 0.2s ease-in-out;
        -moz-transition:  all 0.2s ease-in-out;
        -o-transition:  all 0.2s ease-in-out;
        -ms-transition:  all 0.2s ease-in-out;
        transition:  all 0.2s ease-in-out;
    .st-accordion ul li > a:hover span{
        opacity:1;
        right: 10px;
    .st-accordion ul li.st-open > a{
        color: #1693eb;
    .st-accordion ul li.st-open > a span{
        -webkit-transform:rotate(180deg);
        -moz-transform:rotate(180deg);
        transform:rotate(180deg);
        right:10px;
        opacity:1;
    .st-content{
        padding: 5px 0px 30px 0px;
    .st-content p{
        font-size:  16px;
        font-family:  Georgia, serif;
        font-style: italic;
        line-height:  28px;
        padding: 0px 4px 15px 4px;
    .st-content img{
        width:125px;
        border-right:1px solid #fff;
        border-bottom:1px solid #fff;
    @media screen and (max-width: 320px){
        .st-accordion ul li > a{
            font-size:14px;
    @media screen and (max-width: 800px){
        .st-accordion ul li > a{
            font-size:16px;
    You can find the page at http://bit.ly/Zrpt1s
    Any help is grately appreciated thanks!

    Try
    $(function() {
        $('#st-accordion').accordion({
            oneOpenedItem    : true,
           open: 0

  • How to display first row value returened from a query as checked as default in a report

    How to display first row value returned from a query as checked as default in a report
    Example
    Parameter 1
    Paramerter2
    ABD
    x(checked)
    Test
    DEF
    JMG
    Mudassar

    Hi Mudassar,
    The issue is caused by the order in which the parameters appear in the report data tab can be difference between our report execution and it failing. In other words, “Parameter2” is execution before parameter “A” due to this issue. We can adjust the parameter’s
    order to solve the issue.
    If “Parameter2” is parameter “A”, we cannot use that expression. Because fields cannot be used in report parameter expression, if we want to display the first value returned from a query as default value, we have to fill the “Specify values” text box with
    the specific value in Default Values dialog box.
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • First Tab Different

    Hi There!
    I'm editing the tabs in a custom build theme. The Tabs are overlapping, so the first tab is a bit different than the rest of them. And I'm using the "OnL, OnC, OnR, OffL, OffC, OffR" values to set the current tab in a different image and colour than the rest. This means that for the First Tab I want to define a different OnL and OffL image than the rest of the tabs.
    Anyone a thought on how to do this simple?
    Thanks!
    Douwe Pieter
    http://ome-b.nl

    Hi Guy's! (and Gals)
    I just though of a possible sollution:
    I created a Javascript file with two functions in it: TabSetsOn and TabSetsOff
    Now I have the following code in it:
    function TabSetsOn(pThis) {
    var Tab = pThis.Value;
                             if {
                             (Tab == 'T_HOME')
                             lString = "#IMAGE_PREFIX#themes/xxx/red_tab_home.gif";
                             else
                             lString = "#IMAGE_PREFIX#themes/xxx/red_tab_front.gif";
                             return lString;
    function TabSetsOff(pThis) {
    var Tab = pThis.Value;
                             if {
                             (Tab == 'T_HOME')
                             lString = "#IMAGE_PREFIX#themes/xxx/blue_tab_home.gif";
                             else
                             lString = "#IMAGE_PREFIX#themes/xxx/blue_tab_front.gif";
                             return lString;
    I did the following in the Standard Tab Attributes in the one level of tabs page definition:
    <td class="OnL"><img src="javascript:TabSetsOn(#TAB_NAME#)" alt="" /></td>
    <td class="OffL"><img src="javascript:TabSetsOff(#TAB_NAME#)" alt="" /></td>
    Off course, it doesn't work jet, but the idea is here.
    Can you see what I'm doing wrong? Or do I need to change some things?
    Regards,
    Douwe Pieter
    http://ome-b.nl

  • Pressing the ENTER key in first tab -- a button in another tab is pressed?

    Hi guys, 
    I am facing a problem. I have a tab with 4 different tabs. When I am in the first tab, and trying to change a control's value by pressing the Enter key, it suddently switches to the seconds tab and presses a button there. 
    Any idea how that happens? I want to prevent that from happening. 
    Thank you
    Solved!
    Go to Solution.

    Sounds like you have the enter key assigned to some key navigation of another control. This is a general problem with the OK button of the system palette. Here is more information.
    LabVIEW Champion . Do more with less code and in less time .

  • Tab widget doesn't show first tab when site is loaded

    I have a website consisting of only one page. This page has a tab widget that consists of four tabs. Tab one holds an accordion widget, tab two holds a slideshow widget, tab three contains another accordion widget and tab four holds just a .jpg with a hyperlink.
    Now, when I upload the site and I view it in my browser from the server, the site opens showing tab two with the slideshow - not tab one with the first item of the accordion widget open as I would expect - and want - it to. And further more: When I subsequently press the first tab, it opens with the last item of the accordion widget active - not the first item - and pressing tab three, it opens with the 3rd item (out of four - so in this case it is not the last item as is the case for tab/accordion one) of the accordion acitve.
    Is there a way to set up the tab- and accordion widgets so that they "instruct" the browser to show tab- and accordion items in a certain order upon opening the site? And if yes: How..?
    the site URL: www.siberweb.com/PF

    How come the answers to my questions always seems so obvious..?
    Thank you Brad - that made the trick.

  • First tab not getting "TabPanelTabSelected" class when tabs created from dataset

    Greetings all. I've got a tabbedpanel widget whose tabs are
    created with a spry repeat region. works great, except none of the
    tabs get the "TabPanelTabSelected" class on initial load. I tried
    setting the defaultPanel in the constructor, but to no avail.
    here's the div that creates the tabs:
    <div class="statustabs_TabbedPanels SpryHiddenRegion"
    id="statustabs" spry:region="dsRequestCounts">
    <ul class="statustabs_TabbedPanelsTabGroup"
    spry:repeatchildren="dsRequestCounts">
    <li
    class="statustabs_TabbedPanelTab"
    spry:hover="statustabs_TabbedPanelTabHover"
    spry:select="statustabs_TabbedPanelTabSelected"
    tabindex="{dsRequestCounts::@StatusID}"
    onclick="updateRequests({dsRequestCounts::ds_RowID})"
    >{dsRequestCounts::@StatusName} (<span
    id="statustabcount_{dsRequestCounts::ds_RowID}">{dsRequestCounts::@RequestCount}</span>)< /li>
    </ul>
    </div>
    and here's the constructor, which is done after the tab divs
    are created:
    <script type="text/javascript">
    var statustabs = new Spry.Widget.TabbedPanels("statustabs",
    tabHoverClass:"statustabs_TabbedPanelTabHover",
    tabSelectedClass:"statustabs_TabbedPanelTabSelected",
    tabFocusedClass:"statustabs_TabbedPanelTabFocused",
    panelVisibleClass:"statustabs_TabbedPanelContentVisible"
    </script>
    So, the question is: how can i get that first tab, on load,
    to take on the appropriate class so that it's styled appropriately?
    thanks so much.
    Marc

    Thanks a lot Kin. I now have it working, mostly. I changed
    the contentgroup div so that it repeated over the RequestCounts to
    create the table. However, when I did that, obviously it drew the
    table each time through the loop. So I changed the table's spry:if
    to also look at the current status names for equality. only then
    does it actually draw the table for the status that's been clicked.
    the final version appears below.
    Now, I do have two problems though.
    1) I can no longer use the spry:loading state. If I have
    this: <div spry:state="loading">loading...</div> right
    under the "TabbedPanelscontentGroup" div, I get an error that
    tpIndex is not defined. So...do you know how i can get this
    functionality back?
    2) One thing I needed to implement was "persistent" tab on
    data refresh. I added a loadInterval on the RequestCounts dataset,
    and thus everytime that interval was up the tab went back to the
    first one. So in the updateRequests() function, i set a variable
    named 'selectedTab' to the clicked rowid. Then, in the
    tabObserver.onPostUPdate function, i have the dsRequestCounts
    current row being set to that variable.
    The only problem with this is that the "requests" dataset
    then gets loaded twice when the interval causes the data to reload:
    once for the first row, and then once for my 'persisted' row. This
    makes sense, but i just don't know how to fix it. i'm pasting the
    code into this post...maybe someone can see some way to get around
    this?
    Basically, the behavior I want is this:
    a) on initial page load, load the requestCounts dataset and
    use the first row of that dataset to load the requests dataset
    (this works)
    b) when a user clicks a tab, load the requests dataset with
    the rowid of the clicked tab (this works)
    c) when the loadInterval causes the RequestCounts dataset to
    be refreshed, use the 'selectedTab' variable as the CurrentRow of
    the RequestCounts data such that the Requests dataset is loaded
    with the correct row and the selected tab is correct
    So the only rpoblem i have is with c, and the only problem
    there is that essentially what happens is the requests dataset is
    loaded twice.
    Thanks to any and all for advice getting the "loading" state
    working and the refresh behavior correct!
    --------------- here's the current code -----------------
    <!--- ---><cfset request.cfcore = "/argus/dope/">
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml"
    xmlns:spry="
    http://ns.adobe.com/spry">
    <HEAD>
    <TITLE>Spry widgets Samples One</TITLE>
    <link href="/argus/dope/style/style.css" rel="stylesheet"
    type="text/css" />
    <link href="/argus/dope/style/widgets.css"
    rel="stylesheet" type="text/css" />
    <SCRIPT
    SRC="/argus/spry/includes/xpath.js"></SCRIPT>
    <SCRIPT
    SRC="/argus/spry/includes/SpryData.js"></SCRIPT>
    <SCRIPT
    SRC="/argus/spry/includes/SpryXML.js"></SCRIPT>
    <SCRIPT
    SRC="/argus/spry/widgets/tabbedpanels/SpryTabbedPanels.js"></SCRIPT>
    </HEAD>
    <body>
    <cfoutput>
    <script type="text/javascript">
    var selectedTab=0;
    var loaded = 0;
    var statustabs = new Object;
    //datasets for the tabbed panel of requests.
    dsRequestCounts = new
    Spry.Data.XMLDataSet("#request.cfcore#ajax/act/act_RequestCountsXML.cfm?StatusesFromLast= 100&ServerGroupID=14",
    "statuses/status",{useCache:false,loadInterval:20000});
    dsRequests = new
    Spry.Data.XMLDataSet("#request.cfcore#ajax/act/act_RequestsXML.cfm?StatusesFromLast=100&S erverGroupID=14&StatusID={dsRequestCounts::@StatusID}",
    "requests/request",{useCache:false});
    //for the tabbed panels
    tabObserver = new Object;
    tabObserver.onPostUpdate = function(notifier,data){
    dsRequestCounts.setCurrentRow(selectedTab);
    //alert("onpostupdate: " +
    dsRequestCounts.getCurrentRowNumber());
    statustabs = new Spry.Widget.TabbedPanels("statustabs",
    {defaultTab:dsRequestCounts.getCurrentRowNumber(),
    tabHoverClass:"statustabs_TabbedPanelTabHover",
    tabSelectedClass:"statustabs_TabbedPanelTabSelected",
    tabFocusedClass:"statustabs_TabbedPanelTabFocused",
    panelVisibleClass:"statustabs_TabbedPanelContentVisible"
    Spry.Data.Region.addObserver("statustabs",tabObserver);
    function updateRequests(rowid){
    dsRequestCounts.setCurrentRow(rowid);
    selectedTab=rowid;
    //alert("updaterequests: " +
    dsRequestCounts.getCurrentRowNumber());
    //statustabs.showPanel(rowid);
    </script>
    </cfoutput>
    <!--- tab div --->
    <div id="statustabs" class="statustabs_TabbedPanels
    SpryHiddenRegion" spry:region="dsRequests dsRequestCounts">
    <ul class="statustabs_TabbedPanelsTabGroup">
    <li spry:repeat="dsRequestCounts"
    class="statustabs_TabbedPanelTab"
    tabindex="0"
    onclick="updateRequests({dsRequestCounts::ds_RowID})"
    >{dsRequestCounts::@StatusName} (<span
    id="statustabcount_{dsRequestCounts::ds_RowID}">{dsRequestCounts::@RequestCount}</span>)< /li>
    </ul>
    <!--- tab content group div --->
    <div class="statustabs_TabbedPanelsContentGroup">
    <div spry:state="loading">loading...</div>
    <div class="statustabs_TabbedPanelContent"
    spry:state="ready" spry:repeat="dsRequestCounts">
    <table class="requeststable" width="100%"
    spry:if="{dsRequests::ds_RowCount}!=0 &&
    '{dsRequestCounts::@StatusName}'=='{dsRequests::@StatusName}'">
    <tr>
    <th
    onclick="dsRequests.sort('@RequestID','toggle')">ID</th>
    </tr>
    <tr spry:repeat="dsRequests"
    spry:even="requeststable_even" spry:odd="requeststable_odd">
    <td>{dsRequests::@RequestID}</td>
    </tr>
    </table>
    <div spry:if="{dsRequests::ds_RowCount}==0">
    Move along...nothing to see here
    </div>
    </div>
    </div>
    </div>
    </body>
    </html>

  • Free Characterstics working in First Tab but not rest of the tabs

    Hi Experts,
    I am having a problem with my Web Application Designer Output, I have incorporated 3 Queries with 3 different Tab Strips and when I am executing this in the output for the First Tab Free Characters are working fine that is... when I drag and drop in the work area it is showing the respective values, but for the rest of the Tab strips it is not showing even when I drag and drop the Free Characters into work area.
    Can anyone plz suggest me what might be the problem and its solution.
    Thanks in Advance.....
    Sai Krishna.

    This issue u can fix by following bellow steps
    1. Lets assume you have two tab in your web template you have to add two analysis to display  two report output in two tabs and for the you have to assign one query to DP1 and other to DP2
    2. Similarly you have add two navigation panel and assign to two tabs, for one Nev panel you have to assign DP_1 and for other you have to assign DP_2
    3. Make you for tab 1 if you have analysis 1 and Nev panel 1 then for both u have to assign DP_1 similarly for tab 2 as well
    Hope that will help.
    Samit Saha
    Edited by: saha samit on Mar 17, 2009 5:53 AM

  • By default first tab should open, when user clicks on the Open popup.

    Hi Team,
    I am working on Jdev11g.
    I am facing problem to Open Fisrt tab from popup when i revisite to it irrespective of the Tab which was earlier selected while closing the popup.
    Currently i am populating one list for records in ADF table and in fisrt column i am providing commandImageLink to open popup which contains 5 different tabs.
    when i select first record from table and click to open popup it's working fine .If i select any tab apart from first tab and i close the popup it is getting closed properly.
    But when i revisite that popup it shows me the popup with default Tab opened which i was earlier selected when i checkout from that popup.
    I want Open Fisrt tab from popup when i revisite to it irrespective of the Tab which was earlier selected while closing the popup.
    Thanks
    Jaydeep

    Luis,
    See: Can I "catch" a click on a sortable column header of a report?
    Take a look at Anton Nielsen's answer with regards to hiding a column and displaying its value instead of the sortable column.
    Asumming the following simple report query:
    select product,sales
    from <table>
    Change that into:
    select product
    ,sales*-1 as reverse_sales -- Select this one as an extra column
    ,sales -- Hide this column
    from <table>
    In your report column attributes (of column reverse_sales), html-expression, type #sales#. It then displays the normal sales. However apex will generate a 'order by 2 asc' for the first time. The '2' will refer to the sales*-1 value: sorting it asc, is the same as sorting sales descending...
    Toon

  • How to disable certain text fields in second tab based on the drop down selection from first tab?

    My first tab contains a drop down menu which has two options
    1. Personal info
    2. Office info
    The second tab contains all the information regarding Office and Personal Information. But I need to selectively disable certain fields based on the drop down in first tab.
    For example,
    The second tab consissts of all fields like
    Name,
    Age
    Job title,
    Office Location, etc.
    And i dont want office related details to be displayed if I am selecting personal info in the first tab.
    It would be really great if someone could send me the code for achieving this.
    Thanks in advance.

    Hi Vishnu
                  Can you check the List component in foundation/components ? I think "Build list using" works he same as your requirement. Check the listener they have used in dialog/items/list/items/ listFrom/listeners
    "selectionchanged"  : function(box,value){box.findParentByType('tabpanel').manageTabs(value);}
    here the ExtJs will find the tabpanel with value you are selecting fromdropdown. The title of each panel should match with the dropdown values
    Some queries
    Disable values means you have to remove it from your CRX?
    "values should become mandatory". for tab2? or tab3? - if tab2 and if it is a customized widget then u have to write it in your js only i think.
    Thanks
    Veena

  • Showing first tab always in a ADF panelTabbed

    Jdev version: 11.1.1.6
    ADF application
    I always want to show the first tab as "opened".
    I followed this post but it didn't work:
    http://oracle-webcenter.blogspot.com.au/2012/11/showing-first-tab-always-in-adf.html

    Hi,
    This is my code:
    <af:showDetailItem text="GENERAL" id="sdi1" persist="disclosed"
                                   disclosed="true">
                    <af:panelFormLayout id="pfl1" rows="3">
                        <af:selectOneChoice value="#{bindings.Topic.inputValue}"
                                            label="Topic" required="true"
                                            shortDesc="#{bindings.Topic.hints.tooltip}"
                                            id="soc1">
                            <f:selectItems value="#{bindings.Topic.items}"
                                           id="si1"/>
                        </af:selectOneChoice>
                        <af:inputText value="#{bindings.Details.inputValue}"
                                      rows="5" label="Details"
                                      required="true" columns="70"
                                      maximumLength="#{bindings.Details.hints.precision}"
                                      shortDesc="#{bindings.Details.hints.tooltip}"
                                      id="it1">
                            <f:validator binding="#{bindings.Details.validator}"/>
                        </af:inputText>
                    </af:panelFormLayout>
                </af:showDetailItem>
                <af:showDetailItem text="FINAL" id="sdi3" persist="disclosed"
                                   disclosed="false">
                    <af:panelFormLayout id="pfl3" rows="4" labelWidth="250">
                        <af:inputText value="#{bindings.Comments.inputValue}"
                                      label="Comments"                                 
                                      rows="3"
                                      required="#{bindings.Comments.hints.mandatory}"
                                      columns="95"
                                      maximumLength="#{bindings.Comments.hints.precision}"
                                      shortDesc="#{bindings.Comments.hints.tooltip}"
                                      id="it3">
                            <f:validator binding="#{bindings.Comments.validator}"/>
                        </af:inputText>
                  </af:panelFormLayout>
                </af:showDetailItem>It's not Webcenter specific.
    This is the use case:
    I'm using 2 bounded task flows.
    I open the first one and go to the second tab. Then I open the second task flow and go back to the first one. The expected behaviour is to display always the first tab. However, it's showing the second tab.
    Edited by: 972812 on 26-May-2013 17:31

  • I have a lot of tabs saved so they open when I open Firefox, but the first tab always changes into my homepage, Google. Is there any way to stop this?

    I have 20+ tabs always open on Firefox and it's set to remember them. However, when I open Firefox the first tab changes from what I had open there into my homepage, Google. I can use the "go backward" thing to get to the page I had there, but since it goes back to Google every time I restart the browser that gets tedious.
    The only way to solve this that I've found is to just stop trying to use the first tab and let it be Google. However, I'd like some actual solution that stops this from happening if possible.

    Thanks for the reply, it seems to have solved my issue.
    My tabs are normal and unpinned, I just have Firefox set to open all my current tabs. Safe Mode didn't seem to have this issue, so I disabled Classic Theme Restorer. Several restarts didn't have problems, so I enabled it again and now this isn't happening anymore. Hopefully it stays gone for good and didn't just stop momentarily.
    Edit. So as soon as I posted this, it started happening again. More testing definitely points to Classic Theme Restorer as the cause, so I'll have to investigate solutions on that end.

  • First Cell value in the first row of the structure not getting displayed

    Hi Friends,
                     We've got one structure at rows level, there as per our requirement i've taken around 12 "New Selections", that's ok i'm getting everthing fine, but whatever the new selection i put on the top of that structure in that, the First Cell Value for the first column not getting displayed...
                       I'm really wondering, this is the first time that i'm facing this kind of problem... what might be the reason & what is the solution for that...
    just awaiting for your inputs...
    Regards,
    Balaji Reddy K.

    There is no declarative way to do this as the table rows are stamped. This means there is no way to can access a value like (row+1).attributename
    So there is some coding needed. Check http://lucbors.blogspot.de/2012/02/adf-11g-fancy-master-detail-or-how-to.html and http://lucbors.blogspot.de/2012/02/adf-11g-even-fancier-multi-master-multi.html which might help you to implement your case.
    Timo

  • HELP!! Can's type in Firefox UNLESS I open another internet tab, then go back to the first tab.

    HELP!! Can's type in Firefox UNLESS I open another internet tab, then go back to the first tab! All of the sudden, out of the blue, I hear the little "beep" noise that Mac's make when, for example, you try to close a program without saving an item first. It will "beep" to make you aware that you have an unsaved document. Now, without changing anything on my computer or Firefox, I get thet "beep" when I go to Firefox and try to type in a search box, etc. The only way I can type is if I open a new tab in firefox, then go back to the first tab. Only then will I be able to type. If I use my mouse and click on another box to type on, or try to go back and edit text I have already trped using the mouse to jump to a different portion of my text, I will hear the same "beep" until I (once again) click on another tab, then return to the first tab. It is very annoying as I have to constatnly click on another tab then return so that I can type or edit any thing. I had to do this several times while editing this very paragraph!! I have uninstalled Firefox and reinstalled. Nothing changed...
    Any help????
    Thanks in advance!

    To find out if it's system wide or user specific, try this...
    Open System Preferences>Users & Groups, unlock the lock, click on the little plus icon, make a new admin account, log out & into the new account.
    Does it work in the new account?

Maybe you are looking for

  • Warranty claim $300 fee for damaged phone that was in perfect condition

    they claim when i sent in my phone that was crashing and acting funny that when they received it the "charging port" was corroded.  So after hours on the phone fishing for answers and solutions to get this $300 charge off my account i was sent the pi

  • How to give  acces  to app to use  the  images in device through code

    Hi, I am writting an Iphone app, in some part of my application there is a facility  to the users  to  upload their files , but the device is asking to give permission to the app to access files,   i have to do that  manually , my question   is there

  • Zen Xtra: USB Cable length

    Does anyone know what the cable length is? Because just recently, a friend of mine bought me one, and I needed to get a PCI to USB card because my PC only supported USB .. But, I want the cable to reach up to the top of my tower at least. Thanks.

  • How to run toplink in english?

    I'm currently running windows in french. I just installed Toplink 10g and noticed that now mapping workbench is also working in french. I would like to run workbench in english. Do you know ho to do it? thanks in advance, Chris

  • Anyone having problems downloading Mountain Lion?

    I can only get to 51.26mb then the app store stalls out. Then after about 2mins an Error message pops up. I've literally tried everything and I'm really starting to get frustrated. Especially because I paid the money for it. Thanks in advanced for an