Programatically switching show detail item

Hi All,
I have 2 show detail items in af:paneltab
in first show detail item i have link on click of the link i need to switch to the second show detail item.
so i wrote by function and binded it to actionevent of the command link as below
for (UIComponent child : internalTabs.getChildren()) {
RichShowDetailItem sdi = (RichShowDetailItem)child;
if(sdi.getText().equals("Faulted and Rejected Messages"))
sdi.setDisclosed(false);
else
sdi.setDisclosed(true);
AdfFacesContext.getCurrentInstance().addPartialTarget(internalTabs);
where internalTabs is binding to af;PanelTab and Faulted and Rejected Messagesis second tab text
for the first time it is switching correctly to second showdetailITem.when we again come to the first Showdetailitem on click of it. from that time onwards it is not switching but function is getting called.
i am using jdev11.1.1.5
Thanks in advance

Hi,
Please check if you can get any help from the code below:
private String selectedItem="sdi2";
public void displaySelectedItem(ValueChangeEvent valueChangeEvent) {
RichPanelTabbed richPanelTabbed = getPanelTabbed();
for (UIComponent child : richPanelTabbed.getChildren()) {
RichShowDetailItem sdi = (RichShowDetailItem)child;
sdi.setDisclosed(isThisItemToBeDisclosed(sdi));
private boolean isThisItemToBeDisclosed(RichShowDetailItem sdi) {
FacesContext context = FacesContext.getCurrentInstance();
return selectedItem.equals(sdi.getClientId(context));
private RichPanelTabbed getPanelTabbed() {
FacesContext context = FacesContext.getCurrentInstance();
return (RichPanelTabbed)context.getViewRoot().findComponent("pt1");
Regards

Similar Messages

  • How to stretch background image, How to change show detail item header

    Hello all I have a few questions I would like to pose humbly to your collective wisdom, FYI I use Jdeveloper 11.1.3 and ADF Fusion
    First, how do I stretch the background Image? I have a background image in a show detail item but it is very small. 400 by 400. Thing is it's just a pic of the color red gradually moving from bright to dark in the image. So stretching it should not make it look horrible, but also repeating it makes it look silly, because you have 50 little images of dark red to bright red, instead of one big image of dark red to bright red. Can this be done and how?
    Secondly how do I change the header of the show detail item in a Panel Accordion? I have 8 Show detail items, in the middle of my page and the user can click and switch between which one is open, which makes for a nice effect, but I would like to give each of the show detail items a particular color. I did this with the backgrounds but I can't do it with the header, which are always visible, while only one background is visible at a time. I tried using the skinning technique but I wasn't able to change the header (I changed the background so the skinning was done correctly). I used
    af|panelAccordion::header
      color: blue;
      font-family: Arial, Helvetica, sans-serif;
      background: Maroon;
      background-color: Maroon;
    }Because I read in the Fusion Guide (or somewhere) that the show detail item cannot be skinned and therefore doesn't have a property like af panel Accordion.
    Can it though be achieved through some other means?
    Third when I drop the data control on the page and if I pick search form, why can't I use the CreateInsert button? Why can't I use the form to Create new rows? It keeps giving me some type of error, like Row is out of bounds or something? Is that some mistake with my database, or page, or is it not possible to do it like that?
    I welcome your words of guidance and also happy new year Huzzah!!!
    Edited by: Dino2dy on Jan 4, 2011 2:01 AM

    Thanks I haven't really had time to play around with this, as I have other concerns, but I do plan on coming back to it, and it is one of the things about ADF that really is bothersome. Creatively it means I can choose between 2 styles when making an app Blaf Rich and Fusion (the other ones are just worse versions of the two) while I will concede that the superb out of the box functionalities and things I can do declaratively probably mean I won't have a Dreamweaver type freedom of design I thought there might be a way to do some of these custom design changes.
    A few questions though
    When you skin the accordion are you able to propagate the changes to show detail item headers? Because that is one thing that I really want to change, just the color of the headers but I was unable to do so.
    Also there is a component that is not part of a panel accordion or panel tabbed called panel box. Again I changed the backgrounds to great effect but I need to change the panel header and in this I failed.
    Granted I used the css color attribute for both not a picture so maybe that is the reason. Just wondering if you succeeded.
    Cheers

  • PPR on Show detail Item is not working

    Hi Team,
    I want to completely show / hide the show detail Item based on selection in other showDetailItem . I have used the ppr to achieve this functionality. But its not working.
    Any suggestions please.

    hi user,
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
      <f:view>
        <af:document id="d1">
          <af:form id="f1">
            <af:panelTabbed id="pt1"
                            styleClass="AFStretchWidth"
                            binding="#{backingBeanScope.Mbean.pt1}">
              <af:showDetailItem text="showDetailItem 1" id="sdi1"
                                 rendered="#{backingBeanScope.Mbean.cb1.selected}"
                                 binding="#{backingBeanScope.Mbean.sdi1}"/>
              <af:showDetailItem text="showDetailItem 2" id="sdi2"
                                 rendered="#{backingBeanScope.Mbean.cb2.selected}"
                                 binding="#{backingBeanScope.Mbean.sdi2}"/>
              <af:showDetailItem text="showDetailItem 3" id="sdi3"
                                 rendered="#{backingBeanScope.Mbean.cb3.selected}"
                                 binding="#{backingBeanScope.Mbean.sdi3}"/>
            </af:panelTabbed>
            <af:selectBooleanCheckbox text="check tab1" id="sbc1" autoSubmit="true"
                                      binding="#{backingBeanScope.Mbean.cb1}"
                                      valueChangeListener="#{backingBeanScope.Mbean.cb1s}"/>
            <af:selectBooleanCheckbox text="check tab2" id="sbc2" autoSubmit="true"
                                      binding="#{backingBeanScope.Mbean.cb2}"
                                      valueChangeListener="#{backingBeanScope.Mbean.cb2s}"/>
            <af:selectBooleanCheckbox text="check tab3" id="sbc3" autoSubmit="true"
                                      binding="#{backingBeanScope.Mbean.cb3}"
                                      valueChangeListener="#{backingBeanScope.Mbean.cb3s}"
                                      partialTriggers="pt1 sdi3"/>
          </af:form>
        </af:document>
      </f:view>
    </jsp:root>
    import javax.faces.event.ValueChangeEvent;
    import oracle.adf.view.rich.component.rich.input.RichSelectBooleanCheckbox;
    import oracle.adf.view.rich.component.rich.layout.RichPanelTabbed;
    import oracle.adf.view.rich.component.rich.layout.RichShowDetailItem;
    import oracle.adf.view.rich.context.AdfFacesContext;
    public class Mbean {
        private RichSelectBooleanCheckbox cb1;
        private RichSelectBooleanCheckbox cb2;
        private RichSelectBooleanCheckbox cb3;
        private RichShowDetailItem sdi1;
        private RichShowDetailItem sdi2;
        private RichShowDetailItem sdi3;
        private RichPanelTabbed pt1;
        public Mbean() {
        public void setCb1(RichSelectBooleanCheckbox cb1) {
            this.cb1 = cb1;
        public RichSelectBooleanCheckbox getCb1() {
            return cb1;
        public void setCb2(RichSelectBooleanCheckbox cb2) {
            this.cb2 = cb2;
        public RichSelectBooleanCheckbox getCb2() {
            return cb2;
        public void setCb3(RichSelectBooleanCheckbox cb3) {
            this.cb3 = cb3;
        public RichSelectBooleanCheckbox getCb3() {
            return cb3;
        public void cb1s(ValueChangeEvent valueChangeEvent) {
            // Add event code here...
            cb1.setSelected(true);
            AdfFacesContext.getCurrentInstance().addPartialTarget(pt1);
        public void cb2s(ValueChangeEvent valueChangeEvent) {
            // Add event code here...
            cb2.setSelected(true);
            AdfFacesContext.getCurrentInstance().addPartialTarget(pt1);
        public void cb3s(ValueChangeEvent valueChangeEvent) {
            // Add event code here...
            cb3.setSelected(true);
            AdfFacesContext.getCurrentInstance().addPartialTarget(pt1);
        public void setSdi1(RichShowDetailItem sdi1) {
            this.sdi1 = sdi1;
        public RichShowDetailItem getSdi1() {
            return sdi1;
        public void setSdi2(RichShowDetailItem sdi2) {
            this.sdi2 = sdi2;
        public RichShowDetailItem getSdi2() {
            return sdi2;
        public void setSdi3(RichShowDetailItem sdi3) {
            this.sdi3 = sdi3;
        public RichShowDetailItem getSdi3() {
            return sdi3;
        public void setPt1(RichPanelTabbed pt1) {
            this.pt1 = pt1;
        public RichPanelTabbed getPt1() {
            return pt1;
    it should work.

  • How to open show detail item on ADF link click

    Hi,
    Can anybody tell me how to open show detail item tab on link click ??
    thanks,
    Nitesh

    Hi,
    what Frank is saying..
    1. select showdetailitem component
    2. go to disclosure property
    3. attach a managed bean variable (return true/false)
    4. in the commandLink method set the variable true/false depending on requirement
    or
    1. select showdetailitem component
    2. create a binding in the managed bean
    3. in the commandLink method set showdetailitembinding.setDisclosed(true/false);
    4. add PPR
    refer http://jobinesh.blogspot.in/2010/12/programmatically-disclosing.html
    ~Abhijit
    Edited by: Abhijit Dutta on Mar 12, 2013 5:20 PM

  • How to Stretch Components in Show Detail Item - Jdev 11.1.2

    Hello:
    I have a panel splitter-verticle, and in the second facet I have a panel stretch layout and in that a panel tabbed. Inside a show detail item, I have another panel splitter-verticle. Inside the first facet, I have a af:query and in the second facet I have a af:form. But both the af:query and the af:form do not stretch to fill the open space, when I move the first splitter.
    What is required to have the af:query and af:form inside a show detail item with a splitter stretch to fill the open space?
    Thanks for the help.
    Edited by: 862658 on Aug 11, 2011 6:29 AM

    Hi,
    set the showDetailItem StretchChildren property to First
    Frank

  • Icon on tab show detail item

    hello,
    Icon is not showing when i run the application it show only blank box , on development environment.
    The size of the icon is 32x32.
    I add through property inspector icon and accept to save on
    C:\JDeveloper\mywork\PageTemplateDemo\ViewController\src\META-INF\resources\images\
    Using jdeveloper 11gR2
    <af:showDetailItem text="Patient Registration" id="sdi5"
    inflexibleHeight="100" icon="#{resource['images:Edit.png']}"/>
    Any help please?
    Thank you.

    I guess, the images are in the wrong location.
    The images are be organized in
    */ViewController/public_html/images/sample.png*
    Can you move the images folder here and check?
    <af:document title="Sample.jspx" id="d1">
    <af:form id="f1">
    <af:panelTabbed id="pt1">
    <af:showDetailItem text="showDetailItem 1" id="sdi1" icon="/images/sample.png"/>
    <af:showDetailItem text="showDetailItem 2" id="sdi2"/>
    </af:panelTabbed>
    </af:form>
    </af:document>
    Thanks,
    Navaneeth

  • Passing URL parameter across Show detail item tabs

    Hi
    I have developed a sample jsr168 portlet which takes 1 input parameter and deployed it into the stand alone OC4J shipped with Jdev 10.1.3.4.0
    In the view controller i created a jspx page and added the portlet to it. The portlet is added under a ShowOnetab->ShowDetailItem component in the jspx page. I mapped the parameter which i pass in the url to the portlet in the pagedef file of the jspx page.
    The page works fine when i run it for the first time but if i were to move to another tab (ShowDetailItem) in the page and come back to the first tab the parameter is not registered even though it still exists in the url.
    Can somebody please sugget a way to persist URL parameters across tabs (ShowDetailItem) in the page.
    Thanks
    Nikhil

    Hi
    I have developed a sample jsr168 portlet which takes 1 input parameter and deployed it into the stand alone OC4J shipped with Jdev 10.1.3.4.0
    In the view controller i created a jspx page and added the portlet to it. The portlet is added under a ShowOnetab->ShowDetailItem component in the jspx page. I mapped the parameter which i pass in the url to the portlet in the pagedef file of the jspx page.
    The page works fine when i run it for the first time but if i were to move to another tab (ShowDetailItem) in the page and come back to the first tab the parameter is not registered even though it still exists in the url.
    Can somebody please sugget a way to persist URL parameters across tabs (ShowDetailItem) in the page.
    Thanks
    Nikhil

  • Show detail item..

    Dear,
    I'm using jdev11g,
    whether is it possible to rearrange the panel tabbed by the user.
    if it is possible means could u tell me the steps.
    Thanks in advance.
    Regards,
    Rengaraj

    Hi,
    this does not seem to be possible.
    Frank

  • Error: Show Details cannot be executed when multiple items are selected in a report filter field or in a slicer

    I have connected TABULAR Model to Excel, and in the pivot the filter is on multiple dimensions. When doing the drillthrough action it gives error - Error: Show Details cannot be executed when multiple items are selected in a report filter field or in a slicer
    Is there any workaround to this error?  so that drillthrough can be done even with multiple selection.

    Hi Vikas,
    The reason behind the error message requires the knowledge on what happens at the backend. When you perform a drill-through action, a query is sent to Analysis Services. This query is expressed in a query language called Multi-Dimensional Expression (MDX).
    Since the MDX language doesnot support drill-through command against a set (collection of tuples) an error is persisted. 
    For now, there is no workaround as it is a limitation of the underlying language that is generating the query.
    When multiple items are selected you lose the ability to drill-down on individual metrics. To resolve you must either:
    1. Select a single Item.
    2. Select all items.
    Hope this helps!
    Please mark as Answer if this helps! Thanks, Rajasekhar.

  • Show detailed screen for "WORK ITEMS"

    Hi
    We have configured POWL for showing Leave / Travel request. The requirement is ... we have to show detailed screen of respective item which are displaying under "Work Items", it's a combination of Leave / Travel etc.
    How do I show complete detail screen of selected item which are displaying under "Work Items "???
    Thanks

    Powl has multiples queries ie leave request and Timesheet you can all filter to see all tasks in one screen ALl the queries in the initial screen comes form POWL_COCKPIT

  • SC Header POWL Detail Component Showing SC Item POWL

    Hi ,
    I have created SC Header POWL Query according to this SAP Note:
    SAP Note 1410793 - SRM Shopping Carts (SC) header POWL query.
    Now i want to show SC Item POWL when a user clicks on SC Header POWL's record.
    i am looking for a way to show SC Item POWL in POWL Details component.
    I know that i can specify the POWL Detail component name in Method /SAPSRM/CL_CLL_POWL_BASE_AGENT--> IF_POWL_FEEDER~GET_DETAIL_COMP.
    However here i can only specify name of detail component and not the configuration name so not too sure how can i show SC Item POWL here.
    Any clues? suggestions?
    Regards,
    Ashish Shah

    Dear All,
    what i have figured out till now is the following:
    in the "Settings" of the POWL (button is at the most right top corner of the POWL), there is the tab "Display" available. Under that tab, there is a check box for hierarchy available. Once the check box is checked, the field "Define" becomes active.
    By clicking on the "Define" button, a pop up opens, where the columns for the hierarchy display can be selected.
    The important point now, is it is necessary to select at leas two columns here, in order to receive a hierarchical display. The first column will build the header in the POWL and the second column will display its information in the POWL, once the user has expanded the header level of the position in the POWL.
    Thank you.

  • Hide PerformancePoint "Show Details" Context Menu Item

    Hi,
    How to Hide PerformancePoint “Show Details” Context Menu Item in ScoreCard?
    I have tried the below code but i didnt get anything.
    if (PPSMA.MenuOptionHelper) {       
                PPSMA.MenuOptionHelper.prototype.showDetails = function () { return false; };
    Thanks & Regards
    Poomani Sankaran

    Hi Poomani,
    Refer this article
    http://electrovoid.wordpress.com/2012/05/03/pps-hide-show-details/
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Show/hide item not working

    Hi,
    I've designed a relatively detailed survey with multiple show/hide items, and all of a sudden they're not working despite all of the show/hide criteria being correct. Items are being shown for no reason.
    Can someone help me?
    Thanks.

    After looking at the form I have concluded that the show/hide logic is inverted.  You have fields set to be hidden if the answer to a drop down is  not 0%. The problem is that the default value of the field is null, not 0%.  The condition is met, so the fields are displayed.  The fix is to switch the show/hide logic to Show is the answer is 5%, 10%, 15% etc.
    Jeff Canepa
    Software Quality Engineer
    Adobe Systems, Inc.
    [email protected]

  • Switch to Open Item Management at a Line Item Level

    Hi Guru's,
    I want to change a non Open Item G/L account to an Open Item  at Line Item level, we are on version 6.4
    We have activated New G/L and I checked OSS note 175960, it says its not applicable if New G/L activated.
    I tried program FAGL_SWITCH_TO_OPEN_ITEM , it switched the account to Open Item but the problem here is it did't switch at line item level it is just showing total balance. My requirement is to switch at Line Item level.
    Is there any solution other than creating a new A/c with Open Item checked and transfering balances from old A/c to new A/c.
    Please suggest
    Thank You

    Hi,
    There are 3 ways to realize it.
    1. create a new account with XOPVW, then transfer the balance from old account to the new one. this is recommended by SAP.
    2. if you want to change  flag of XOPVW in this account, then make the balance to zero, then change this flag in FS00, at last trasnfer the balance back to this account-> Not recommended by SAP, because it is easy to cause data inconsistency.
    3. method in note:175960-> but report :RFSEPA02 and RFSEPA03 are not support since release 4.5A.
    So if possible, suggest you to use 1.
    Best Regards,
    Gladys

  • Why I cant view my picture on my iphoto and if I try to copy to any folder it Shows "The item on the clipboard cant be pasted to this location. (One or more of the item may have been deleted or are no longer available) "

    Why I cant view my picture on my iphoto and if I try to copy to any folder it Shows "The item on the clipboard cant be pasted to this location. (One or more of the item may have been deleted or are no longer available) "

    There are 9 different versions of iPhoto and they run on 9 different versions of the Operating System. The tricks and tips for dealing with issues vary depending on the version of iPhoto and the version of the OS. So to get help you need to give as much information as you can. Include things like:
    - What version of iPhoto.
    - What version of the Operating System.
    - Details. Describe the problem as fully as you can. For example, if you have a problem with exporting, then explain by describing how you are trying to export, and so on.
    - History: Is this going on long? Has anything been installed or deleted? - Are there error messages?
    - What steps have you tried already to solve the issue.
    - Anything unusual about your set up? Or how you use iPhoto?
    Anything else you can think of that might help someone understand the problem you have.

Maybe you are looking for

  • How to display multiple column in report

    Hi Abaper, I have client requirment to develop new report for sim hotel. The requirment is we have select multiple hotel , based on hotel selection the report will display, the report layout like: Hotel1               |Hotel2               |Hotel 3  

  • Photostream folder disappeared in iOS 8, along with all my photos in that folder. Please help!

    Hello, I just upgraded my iPhone 5 to iOS 8. I only had about 20 photos stored on my phone, and about 100 photos in my Photostream. After updating to iOS 8, I cannot find any of these photos that were in my Photostream, and cannot even find that fold

  • Report Queue Manager aministrator password

    Hi there! I have install DS 10g in my local pc- i have some jobs in queue which i want to remove from the queue but i don't know what is my administrator username and its passwords for Report Queue Manager. Please someone guide where to look for my a

  • Best Mac compatible cell phone/PDA?

    I'm in the market for a new cell phone/PDA and I need some help. I'm currently considering the Treo 700P because of it's smooth, trouble-free integration with the Mac OS using The Missing Sync (http://www.markspace.com/). It seems like the Treo 700P

  • Fault tolerance of Distributed Locking Mechanism ?

    Is there a lock server for managing locks      in a Coherence distributed cluster ?      How fault tolerant is the locking mechanism ?      What happens if a node which has acquired a lock dies ?      If there is a lock server, what happens if the lo