2 Trees on the same Page

Hi!
I'm using Apex Version: 4.2.1.00.08
I created a page with 2 tree regions. Both trees use different items and different queries. The first tree is displayed correctly. But the second one just contains the first item, if I don't display the first on via customizing the page or if I change the order of the trees the previoulsy invalid tree is shown correctly, but I didn't find a way to disply both correct at the same time.

Finally I found out what's the problem.
I had 2 tables e.g.:
AG_ID;Name;Parent_ID
0;Top Entry AG;NULL
1;Level 1 Entry AG;0
TG_ID;Name;Parent_ID
0;Top Entry TG;NULL
1;Level 1 Entry TG;0
caused by the fact that both tables use same IDs to identify the entrys the javascript seems to get errors.
I used concats and substr function to create unique IDs for the tree elements, so the JavaScript gets TG0 or AG0 as value not just 0. Now everything works fine.
Here is an example for my modified tree query:
select case when connect_by_isleaf = 1 then 0
when level = 1 then 1
else -1
end as status,
level,
"NAME" as title,
null as icon,
CONCAT('AG', "AG_ID") as value,
null as tooltip,
'f?p=&APP_ID.:1:'||:APP_SESSION||'::::V_AGID,V_TGID:'||'AG'||"AG_ID",NULL as link
from "#OWNER#"."GROUPS_APPLICATION" GROUPS_APPLICATION
start with "GROUPS_APPLICATION"."PARENT_ID" IS NULL
connect by prior "GROUPS_APPLICATION"."AG_ID" = "GROUPS_APPLICATION"."PARENT_ID"
order siblings by "NAME"

Similar Messages

  • Two trees in the same page

    Hi,
    is it so that there can be only one js tree per page ? If so, is there a workaround ?
    When I tried to put a second tree on a page, only empty region is showing. In the page source code,
    it seems that the data for the second tree includes nodes from the first tree, althought they surely are
    not included in the query for the second tree.
    Tiina

    Hi!
    I want to up this topic. I use Firefox 3.5.11 and I've made an example on apex.oracle.com (APEX 4.0.1.00.03, Oracle DB 11.1.0.7.0 EE) where you can see the trouble here: http://apex.oracle.com/pls/otn/f?p=2092:5:0. There are two regions with trees on the page. First one has the following tree query:
    select case when connect_by_isleaf = 1 then 0
                when level = 1             then 1
                else                           -1
           end as status,
           level,
           "ENAME" as title,
           null as icon,
           "EMPNO" as value,
           null as tooltip,
           null as link
    from "#OWNER#"."EMP"
    start with "MGR" is null
    connect by prior "EMPNO" = "MGR"
    order siblings by "ENAME"Second one has this tree query:
    select case when connect_by_isleaf = 1 then 0
                when level = 1             then 1
                else                           -1
           end as status,
           level,
           level as title,
           null as icon,
           level as value,
           null as tooltip,
           null as link
    from dual
    connect by level <= 5So you can see from the code, the second tree should only contain the numbers. But please follow the link above and expand the second tree - it contains the first tree nodes!
    I think it's a bug. Any other thoughts / workarounds, please?
    Edited by: tiPPLer on 26.08.2010 13:55

  • Create a tree node and show the report on the same page

    Hi,
    I have created a tree for our organization and each node represents a unit. The top one is office level and followed by division and brach.
    I have created a reprot on the same page as the tree node.
    What I want to do is:
    I would like to click a specific node and the report shows only that node and bellow. So, If I click division A and division A has two branch. my report shows only those two braches that bellong to division A.
    Can someone help me?
    Thank you

    The only way it could work is using iframes. Now OBIEE 11g would not allow iframes inside it's dashboard. It offers a dashboard object called "Embedded content" which is a restricted iframe kinda thing but unless you get this object's id from generated HTML you can change it's content dynamically. Besides, such an implementation may break with next patch. So here is an idea.
    Create a HTML page with two iframes, left one will hold all the reports with links (you can always generate a list of reports through catalog manager, open it in excel and make HTML links from it) that open report urls (in the format of ./saw.dll?GO&Path=....) in right iframe (using javascript open.window method). Once that page is working, call this page from dashboard using an action link. This is slightly twisted approach but at least it would give you what you asked for.
    About making the report list dynamic, I am afraid there are no easy answers. OBIEE provides web service that will allow the users to query catalog to get a list of reports. You can try some basic JSP to access the web service and generate the list dynamically. But that is not something I can provide here.

  • Display an iview in the same page.

    Hi Experts,
    I need to integrate webdynpro application which is a tree application
    when i integrate that application  if i click on that some search button it should navigate to other iview but the present application should be in the same page and the new application should be opened... how can we make it....
    plz help me in this ,.........
    waiting for u r responses...
    Regards,
    Shilpa

    Shilpa,
    If it is the 1st one (pop Up) then you can use Koti's threads.
    also check this library files to do this, if it is a external window I think this suits your requirement very well
    http://help.sap.com/saphelp_nw2004s/helpdata/en/fd/024640c0e56913e10000000a1550b0/content.htm
    Open view in external window..
    Open views in non-modal external windows - the patch version
    PraDeep
    Edited by: pradeep bondla on Jul 18, 2008 7:14 AM

  • Jsf VS wcm servlet- combine JSF & WCM tags in the same page

    Hey all,
    I wanted to get to you a problem I've encountered and see if you can direct me.
    Note: I found a way to work around the problem, we will see later -
    but this will not bring me to full integration.
    The problem arises when I create a region\page template file in the ucm system and make use
    of - (Jsf component (for example: h: outputpanel.
    In this situation, there are two servlets in the web.xml file that mapping of
    url which comes.
    1. wcm site template servlet that maps tree placement (that is when I
    went in url to the servlet
    http://localhost/application-name/context-root/section1/index.html
    know to map the url to the template defined tree under the same
    section.
    2. jsf servlet - when i used jsf components.
    When I turn to the page for wood and is defined in the UCM, the jsf
    servlet does not handle the request and therefore I get an error: Can
    not find facesContext.
    The problem: Can we find a way to make 2 the servlets work together
    and perform this mapping for us? Is there a way or example of a jsf
    page which can be combined with the ucm system defined tree (this
    detail is important, because if I just set up a page in application
    and came back to it, not through the tree can I combine Jsf -It's
    important for me to do it in the form submitted by the link mentioned
    above).
    Note: I found a roundabout solution like I mentioned, working with the
    iframe as separate jsf pages and read them from a page in the system.
    While this solution meets the requirements but still ran into some
    combinations between the two issues resolved was not trivial.
    I'd appreciate it if somebody could help \ guide me to resolve the problem.

    Thanks a lot for your answers.
    I just want to clear my point, the real problem is when i want to define in my site's tree(at jdeveloper) page X for Section SX
    but page X should include jsf tags.
    When we defined page(region template) in section properties placeholder, meaning at the site's tree, the explorer will show the page as http://machinehost:7001/context-root-site/sectionX/index.html.
    Each page in the site tree will had this pattern, therefor when we add a jsf tags to our page there is a conflict between the servlets (Faces VS WCM)
    because that jsf servlet could'nt map this url to faces url and i got faces context Error.
    I am just trying to clean my point, so it's not relevant to contributor mode...
    i just want to know for sure that there is no way to define region template at site tree for section X with jsf tags.
    I will very glad to know yours opinion about my solution- working with iframe, meaning that the page at site tree will include iframe to jsf page which exsit in the application. this solution solved the conflict problem because i have now two pages.
    thanks you again,
    Regards
    Eran zizler

  • Display regions dynamically on the same page

    Hi
    I have 2 regions.Top is an interactive editable report.Bottom region is a read only report of the same(top region)
    But when i click search button(based on paramters 1&2, i am not able to see the same number of rows.
    Top region shows 5..But bottom region shows not the same.
    Is there any custom process i need to add ?
    Please advice
    thank
    kp

    >
    http://localhost
    ----------^^^^^^^^^
    uhhh....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "namtax" <[email protected]> wrote in
    message
    news:ej54sr$m7q$[email protected]..
    > im trying to code my tree menu so that when you click on
    the album name
    > the
    > song names would display dynamically on the same page..
    >
    > Heres my page at the moment
    >
    >
    http://localhost/music_explained/forta_explained/blah_7.cfm
    >
    > I have added a href field to the album section of the
    cftree, so that when
    > you
    > click on that a question mark appears after the URL.
    > I have set up a query that selects song names dependant
    to the record
    > which is
    > clicked on the cftree...but i am having
    difficulties...anyone know of a
    > tutorial or anything on this particular topic.
    >
    > Cheers
    >

  • How to view all the issues in the same page in OTM

    HI,
    I have created 20 issues in OTM but I am able to see only 10 issues at a time.So how can I view all the issues in the same page.

    Hi,
    Login to OTM then you can see "tools"in the top most right corner click on that and select options.In the options popup window select "Tree preference" change the number of nodes.
    Regards
    Rajesh

  • WHEN I LOGIN AS DIFFERENT USER, IT TAKES ME TO THE SAME PAGE WHERE THE PREV

    Hu Gurus,
    I log in to portal as user1 and go to a page and then log out of the portal. Then I try to login as user2, it takes me to the same page where the previous user was. It looks like it caches the page information. How can I avoid this. Please post a reply if you have some suggestions.
    Thanks
    Raj
    ----------

    Thanks for checking it, Jason. Yes, the cache settings are for 'Every visit to page'. That was the first thing I thought of. I have a feeling the problem has to do with a cache setting somewhere in our installation. For example, I'm still plagued with a few user accounts returning errors when I try to log in. The users aren't logged in, but when I click "Login" from the Portal Builder page, I see the same error...it's not even letting me get to a login screen. Thanks for all the help. It's great to get some feedback. In the meantime, we'll continue to track it down here.
    Mary

  • How can I have use the same div ID multiple times on the same page?

    Okay so a problem I encounter a lot is that often times I want to use the same div ID several times on the same page. An example of this is when I'm creating table like designs.
    Let's say for instance I create a div ID called 'product-container'. I want to use 'product-container' multiple times on the same page but if I do this it is improper XHTML and will throw errors in any XHTML validator (you are only allowed to use a div ID once on any XHTML page in order for it to be standards compliant).
    Now the first option is that I could define 'product-container' in my CSS style sheet multiple times by doing something like this...
    #product-container {
         width: 300px;
    #product-container-2 {
         width: 300px;
    #product-container-3 {
         width: 300px;
    #product-container-4 {
         width: 300px;
    What you will see there however is that it seems pointless to define the same ID numerous times over (just adding a number on the end) when each ID is the exact same thing and has the exact same attributes.
    Now what I have noticed is that there are some sites out there who manage to have the same ID appear several times in the code but add a number to it just like above. The difference is that they only have one definition for 'product-cointainer' in their CSS document but in their actual XHTML code they have IDs for 'product-container' but with numbers on the end like 2,3,4,5, etc. It's almost as if JavaScript or some other code is automatically appending a number on the end of the ID so the validator won't consider the markup to be invalid, but yet it knows that it's using the same 'product-container' style that is contained in the CSS style sheet.
    I hope I explained this correctly. I'm just hoping to find a way that I can put the same div ID on a page multiple times without having to define it over and over again in my CSS.
    Any help is much appreciated!

    Because it seems like by using a class you can't make this position as 
    well as you can by using an ID. Am I wrong?
    An ID name can be used only one time per page.  A class name can be used multiple times per page.
    .product {
    width: 300px;
    text-align:left;
    color: #FF0000
    border: 2px solid #666;
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • Is there a way to automatically add another of the same page while a form is being filled?

    Is there a way to automatically add another of the same page while a form is being filled?
    I have a two-page form of which the second page is essentially a spreadsheet analog.  Often, there is need for for more lines than are available on the page.  Is there a way in which to add another or even multiple copies of the second page? 
    Thanks ahead...
    TG

    You can do that with a dynamic XFA form created in LiveCycle Designer, which comes with Acrobat Pro for Windows. For more information, you can ask over at the LiveCycle Designer forum.

  • In Pages 5.2.2: How do you go from 1 column to 2 and keep them on the same page?

    In Pages 5.2.2: How do you go from 1 column to 2 and keep them on the same page?

    Sorry, I tried to say your answer solved my question, but I guess I told it that my response to you solved it. Now that I liked it, the solved option doesn't appear.

  • How to develp a subreport in the same page of the main report and processed when is called

    SSRS 2012
    Hi guys,
    I am developing a report that includes a subreport.
    therefore The report is made up by 2 sections:
    1) Show a grid (several rows - may be 100 or more - and some columns). It represent high level info  (Each row represent a specific item)
    2) The user click on a Row/column (eg: Item1, to see details that must be shown as graph.
    Here the problem: Searching info about SSRS reporting for subreports, drilldown, nested report and so on, no ones accomplish the requirements for the following reasons:
    1) Subreports: NOT open in the same page. The user must <go back> to see detail for other items, such as Item 2....
    2) Nested and DrillDown: Process data as the Main report (they are hidden and displayed after user action). In my case this leads to performance problem, because: if the main report has 200 objects (it means 200 graphs processed and hidden at the same time
    for the main reports).
    3) DrillThrough and Subreport: The detail data are processed only when the user select the interested item in the main report. Here the problem: the report is shown externally.
    Please, it there any possibility to have a subreport (or anything else) to be executed in the same report as the main report and processed only when the user make action?
    Thanks for your help.

    Hi Fasttrack2,
    According to your description, there is a main report with more than 100 rows of summary information, when users click the item of the row, the report need to jump to detail information shows as graph. The problem you are facing is that you are not sure
    subreport, drilldown or drillthrough report should be used? You hope to set display detail information in the main report and keep high performance of report.
    In Reporting Services, each subreport instance is a separate query execution and a separate report processing task. Subreports are recommended when there are just a few subreport instances. We should not use subreports inside a group when there are many
    group instances, instead, consider using drillthrough reports. Drilldown reports process all data even when the data is first hidden. In order to improve the performance of the report, we can split drilldown reports into parameterized drillthrough reports,
    because Drillthrough reports do not run until a user clicks the drillthrough link in the main report.
    In this case, we can consider using drilldown or drillthrough report. In drilldown report, when we click a plus or minus button to expand or collapse a section of a report, the detail data will be displayed in place. By using drillthrough report, when we
    click the link in the main report, the detail data will be displayed, we can come back to the main report by click return button in the drillthrough report.
    Reference:
    Troubleshooting Reports: Report Performance
    Drillthrough, Drilldown, Subreports, and Nested Data Regions
    If you have any more questions, please feel free to ask.
    Best Regards,
    Wendy Fu
    If you have any feedback on our support, please click
    here.

  • AT&T customers service reps. (Phone) and in the store not on the same page!

    On 6/27/15, I called into the 1(800) number to order a new phone and change my plan to the "Next" plan.  I went through whole process with the rep over the phone.  I asked if I could pick up the phone from the AT&T store in my area.  She told me I would have to go into the store and got through the process there.  She stated, I would only have to pay the taxes (around $42) on the phone and pick what installment plan I wanted.  Well I went into the store and spoke with a sales rep. picked the phone I wanted and proceeded with the process.  First I was told I had to pay my bill which was not an issue $127  the rep double charged my card. In which a manager had to fix.  Then I was told I had to pay $200  for downpayment to be on the Next plan.  When questioned was told oh we do this for customers getting an additional line, t(the rep I spoke to that morning said paid the taxes for the phone) so I paid the $200.  On 7/9/15 upon paying my bill I happened to look at the details of my account.  I notice the charge of $201 on 6/27/15 but my bank account reflected the amount of $242. from AT&T.  So I called customer service and spoke with a rep by the name of Robert.  Robert explained the confusion then, stated I did not have to pay the $201 for the Next plan.  I asked if I could have the $201 moved towards my bill, he stated yes it would not be an issue.  When he tried to make the adjustment he was unable to and informed me that I would have go into the store.  He also verified with his supervisor of the issue. He said he would have all the info needed documented on my account.  Later that day I went on the AT&T site to remove the mobile TV app and was unable do. So I got on the chat live contacted a rep Arvin, who helped me with issue.  Then I asked him the same question in reference the Next plan.  He confirmed with a supervisor that indeed I did not have to pay downpayment, just the tax.  He also put in notes on my account and said go into the store.  I arrive to the store (Snellville, GA) and was approached by Pamela.  I told her the issue and she proceed to tell me, that AT&T runs credit checks for additional lines. Which when I transferred to AT&T they ran a credit check.  But for an additional line and switch to another plan. I told her what the other 4 reps which includes the original rep that I started the initial order on the morning of 6/27 told me.  Pamela stated that they were wrong and did not know what they were talking about and they don't deal with customers as the store does. And she would look at my account and see.  I told her I have the print out of the chat from Arvin.  After she read the notes she proceeded to tell me I was wrong and the other reps were wrong and then she called the 800 number spoke with a customer service and the rep she spoke with told her "NO" they don't do that and I was correct in what I was saying about my the issue.  Pamela told her, she was incorrect and that she need to go read the regulations and gave her reg to look up.  During this time my mom was with me and she informed me a family friend was supervisor for AT&T Corporate office and to call her.  In which we did and she stated the same of course Pamela said we wrong and was nice nasty in reference to it as in being a know it all that she just couldn't be wrong.  My issue wasn't resolved and I felt like AT&T took my money and called myself and the 5 employees that worked there liars.  For a company that has been on the news for overcharging their customers you would think that your company would have better customer service and all on the same page.  And if the majority and a Supervisor were agreeing and saying that same thing. Pamela should have did the change on the account and not have a customer your company says it values to leave the store feeling the way I did.  Meaning knowing that I was upset and that I was told the same thing by 5 employees of your company, Pamela should have tried to compensate me or made sure that I wouldn't have any thoughts of going to another phone company.  I was made to feel like I was lied to.  It's bad enough when you walk into the stores the reps are on you like vultures.  And you feel overwhelmed and like you're at car lot.  And the reps are wheeling and dealing for their commission.  Now I'm concerned if I chose the right company???

    I didn't even do the survey and the reps in the store said it had to be done over the phone I just never called back I had already taken time to drive to the store I wasn't about to waste more time dealing with an upgrade over the phone I just figured doing an upgrade over the phone would be the same as doing it in the store I don't understand what the difference is

  • Parent (Global) and Current (Navigation) on the Same Page

    Hello,
    I am using the managed metadata feature in a SharePoint 2013 publishing site.  I am trying to layout my navigation as shown in the diagram below.  I can not find a publishing master page that implements this parent child relationship.  My
    top navigation is use the markup:
    <PublishingNavigation:PortalSiteMapDataSource ID="topSiteMap" runat="server" EnableViewState="false" SiteMapProvider="GlobalNavigationSwitchableProvider" StartFromCurrentNode="false" StartingNodeOffset="0"
    ShowStartingNode="false" TrimNonCurrentTypes="Heading"/>
    <SharePoint:AspMenu ID="TopNavigationMenu" runat="server" EnableViewState="false" DataSourceID="topSiteMap" AccessKey="&lt;%$Resources:wss,navigation_accesskey%&gt;"
    UseSimpleRendering="true" UseSeparateCss="false" Orientation="Horizontal" StaticDisplayLevels="1" AdjustForShowStartingNode="true" MaximumDynamicDisplayLevels="1" SkipLinkText=""/>
    I have tried using the same markup, using a different StartingNodeOffset and SiteMapProviders, for the side menu with no success.
    Thanks,
    Bob

    Hi,
    According to your post, my understanding is that you wanted to create Parent (Global) and Current (Navigation) on the Same Page.
    You can make quicklaunch work contextually like structural nav quicklaunch using Managed Metadata navigation. Please refer to:
    Managed Metadata Navigation - How do you make quicklaunch work contextually like structural nav quicklaunch?
    In addition, you can used JQuery and CSS to achieve staticlevel left navigation in SharePoint 2013.
    Here is a similar thread for your reference:
    http://social.technet.microsoft.com/forums/sharepoint/en-US/54edc501-0594-49e3-86b2-40ecf72bc68e/show-2-level-hierarchy-in-managed-navigation-menucurrent-navigation-in-sharepoint-2013
    More information:
    Overview of managed navigation in SharePoint Server 2013
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • I have been trying to log onto the Wounded Warriors Program Portal.  I can Log in and then when I click on the rewards it tried to go to the page the just takes me back to the same page I was on.  This is very frustrating.

    I have been trying to log onto the Wounded Warriors Program Portal.  I can Log in and then when I click on the rewards it tried to go to the page the just takes me back to the same page I was on.  This is very frustrating.  I am new to the Mac World so please bare with me.  Please tell me there is help somewhere for this issue.  It seems it is blocked or not letting me through.  Can anyone please help me out.  Thanks 

    Both Mail and Safari have Activity Options that open a  screen that shows you just how the site or mail is loading.
    In Safari if you are having trouble with a site in activity you will see the count of items being downloaded - and if an error occurs it shows red.
    On the top is the number of items it is loading or trying to load and the count should be increasing.   If the count stops, and you don't have errors it may be that too many people are going after the same site and your request just timed out. Have had the time out on a news site when trying to load a most popular article.

Maybe you are looking for

  • Error occurred when using db link in procedure

    Hi I have a problem. As COLL_OWNER, I failed to compile this procedure. CREATE OR REPLACE PROCEDURE Arch_Session_Order_Queue IS -- declarations BEGIN -- many lines SELECT COUNT (1) INTO v_wols_count FROM [email protected]; -- many lines END; The erro

  • IPod not recognized by iMac after plugging it into Windows computer by mistake!

    Hi there: I'm hoping someone can help me fix my husband's iPod. It is normally synced to the iMac computer, but for some reason today he decided to plug it into his laptop, which runs Windows (grrrrrr). The library was erased on the iPod. He doesn't

  • Hundreds of smbd processes - CPU: 0,00 % inactive - Virtual mem about 25GB

    Hi there, we've got an ugly problem here. Since a few month now, our XServe freezes nearly every second day. The problem seems to be that there are hundreds of smbd processes which need all system resources. Clearly we tried some things to solve that

  • Easy Setup for 24p Question

    I have footage shot in standard 24p (F5 on the DVX camera) I will be editing on a 23.98 timeline I am also working with some 24pA material, so we're planning to use Cinema Tools to convert the standard 24p material for use in the timeline. In Easy Se

  • How to create logical standby database without using Oracle Grid Control

    Hi All, I want to create Logical standby database on 11gr2 on RHEL 5 without using oracle Grid Control. I already have a primary database as well as physical standby database. What i want to create a logical standby database as well on the same machi