Creating Single TreeTable from two self linking VOs

Hi,
Lets say, I want to show the organization structure in TreeTable in following format
NOTE: I am sorry, I am not able to get the indentation. Every row in below layout is indented one level compared to above row
Continent
Country
AreaHead
Employees
So the layout should look like
Asia
India
Ahead01
Emp01
               Emp02
Below are the tables I am using
1. LOCATION – Self linking table which displays continents and countries hierarchically.
Eg:
     | Location | Location_ID | Parent_Location_ID |
     | India | 100 | 101 |
     | Asia Pacific | 101 | 102 |
2. EMPLOYEE Table – Employee table which holds employee details
     Its a self linking table which defines manager, team member relationship
     Holds a foreign key to LOCATION table
     | Employee_ID | Name | Designation | Location | Manager_ID |
     | 100 | Emp01 | Area Head | 100 | |
     | 101 | Emp02 | Department Head | 100 | 100 |
I have created two VOs LOCATION, EMPLOYEE and two self referencing view links
     one on LOCATION.LOCATION_ID to LOCATION.PARENT_LOCATION_ID
     one on EMPLOYEE.EMPLOYEE_ID to EMPLOYEE.MANAGER_ID
While displaying as a tree table the details of EMPLOYEE table should start from the leaf node of LOCATIONS table.
Please let me know the best way of achieving this. I am okay with creating a VO programatically accessing other VOs?
I am using JDeveloper: 11.1.1.3.0
Edited by: 817895 on Dec 5, 2010 6:06 AM
Edited by: 817895 on Dec 5, 2010 6:13 AM

Hi,
see sample 32 on http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html
Frank

Similar Messages

  • Trying to create single select from two

    Hi all, i am new to this forum so be gentle with me...;-)
    i have got the following two queries that group by a number of columns and return counts of the grouped columns....now the question is, can i get a single query out of this with the two counts still coming out as two seperate counts but all grouped together...any advice gratefully received...
    1)
    SELECT BUSINESS_EVENT_DATE,
         nvl(POS_TYPE,'NONE') POS_TYPE,
         nvl(APPLICATION_TYPE, 'NONE') APPLICATION_TYPE,
         nvl(PROCESSING_AREA, 'NONE') PROCESSING_AREA,
         COUNT(*) APPS_RCVD
    FROM APPLICATION_FACT
    GROUP BY BUSINESS_EVENT_DATE, POS_TYPE, APPLICATION_TYPE, PROCESSING_AREA
    2)
    SELECT AF.BUSINESS_EVENT_DATE,
         nvl(AF.POS_TYPE,'NONE') POS_TYPE,
         nvl(AF.APPLICATION_TYPE, 'NONE') APPLICATION_TYPE,
         nvl(AF.PROCESSING_AREA, 'NONE') PROCESSING_AREA,
         COUNT(*) APPS_WITH_ANCAS_RCVD
    FROM APPLICATION_FACT AF, APPLICATIONWARNING_FACT AWF
    WHERE AF.INTERNAL_ACCOUNT = AWF.INTERNAL_ACCOUNT
    AND AF.APPLICATION_SEQ = AWF.APPLICATION_SEQ
    GROUP BY AF.BUSINESS_EVENT_DATE,
              AF.POS_TYPE,
              AF.APPLICATION_TYPE,
              AF.PROCESSING_AREA

    Hello
    I think you need to look at UNION and UNION ALL:
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/queries5a.htm#2054266
    HTH
    David

  • Any Tutorial / Sample to create Single PDF from multiple source files using PDF assembler in a watched folder process.

    Any Tutorial / Sample to create Single PDF from multiple source files using PDF assembler in a watched folder process. I have a client application which will prepare number of source files and some meta data information (in .XML) which will be used in header/footer. Is it possible to put a run time generated DDX file in the watch folder and use it in Process. If possible how can I pass the file names in the DDX. Any sample Process will be very helpful.

    If possible, make use of Assembler API in your client application instead of doing this using watched folder. Here are the Assembler samples :  LiveCycle ES2.5 * Programming with LiveCycle ES2.5
    Watched folder can accept zip files (sample : Configuring a watched folder to handle multiple input files and write results to a single folder | Adobe LiveCycle Blog ). You can also use execute script to create the DDX at runtime : LiveCycle ES2 * Application Development Using LiveCycle Workbench ES2
    Thanks
    Wasil

  • How to combine  two user prompts into 1 single prompt from two Webi Queries

    Hi All,
    I developed a single webi report from two different queries on top of 2 BW OLAP universe .
    Here I have one user input prompt for each query so I want to combine them into one single user input promt which  should pass the user input value to both the Webi queries feeding data to the  single webi report.
    I found that the webi doc has auto checked merge dimensions enabled but it is not providing combined resluts from both the queries .
    Any inputs are greatlt appreciated.
    Thanks

    Stratos
    Firstly ,I appreciate your responses for my two questions.
    Both the prompts I am using are from the masterdata and they are similar.data types.I think the transactional data is not available in BW for one of the prompt ,hence I am not getting consistent data.
    Anyway will do further investigation in finding similarities and let you know.
    Thanks a lot

  • How to get list of FMs while creating Contact Person from User Admin Link

    Hi Experts,
    We are implementing SAP ECommerce for my SAP ERP. In one of our requirements, we need to develop MASS UPLOAD program which will take input as Contact Person's first name, last name, address and authorization details and create new Contact Person as it is done through User admin link.
    To develop above tool, I want to trace all the Function Modules which are called while creating new Contact Person from User admin link.
    Please provide your inputs on how I can get the trace of FMs.
    Thanks,
    Keya

    Hi Keya,
    For a B2C eCommerce solution, you are looking at FMs BAPI_CUSTOMER_CREATEFROMDATA1 and ISA_USER_CREATE and the table USAPPLREF which holds the reference to the customer and user.
    To get the FMs called, you would have to do a session trace during B2C user registration / B2B user creation from UME. You could search this forum on a 'how-to' for doing a session trace or lookup the development and extension guide that provides a lot of useful information.
    Cheers,
    Ashok.

  • Single pivot from two different Essbase Cubes

    Hi All,
    I need to show the data from two different cubes into a single Pivot.
    Is that can be achive at different levels like :-
    1. Repository
    2. Answers
    3. Essbsae
    If there is any another way to solve this problem.
    Thanks In Advance
    Brijesh.

    Hi ,Banerjee.
    Asuume that you Cube Structures like below..
    Cube -1 :  Clime No, Cliime Name, Location, Amount1, Amount2.
    Cube -2 :  Clime No, Plant, Material, Location, Amount3, Amount4.
    In your Multiprovider you need to select the Charecteristics "Clime No" , and "Location" ,becasue it is common in both Cubes
    and In Keyfigure : You can select all or only one or only two or one from Cube -1 and other from Cube - 2 it doesn't matter.
    In this case it will disply in single line, but in your case I hope the charecteristics which you are selected in Multiprovider in Identification is wrong, if you don't select common Charecteristics, you won't get the report in single line.
    For reference you can see the following BLOG which will explain exactly your problem and Solution.
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417500)ID0672843250DB01550372956869897428End?blog=/pub/wlg/4478
    Thanks
    Reddy

  • Retriving single field from two tables which are unrelated

    Hi experts..
           i would like to retrieve a field say X from two database tables TAB1 and TAB2 which are unrelated . Can you give me a way to retrive the field X from TAB1 and TAB2 in a single select statement on perticular condition.
    Reward points if aswered..

    Hi,
    If the field is in two tables,you can use for all entries. But anyway two select statemetns are needed.
    If you want single select statement, try using subquery.

  • Creating a single pdf from multiple pdfs - linking to original pdfs

    I have been asked to create a PDF document from other, smaller PDFs. The individual PDFs, which I am using to create the larger PDF, are maintained on a shared network drive. I am using Acrobat Pro XI and dragging the files onto the thumbnail navigation pane and creating bookmarks. The result is to be a navigatable document with a table of contents. My problem is that the individual files from the network drive will change. Ideally, I would like the large document I am creating to update automaticaly when the individual files are changed. Does anyone know of a tool I can use to link in this way? I have Tech Comm Suite 4.
    Thanks,
    Mary

    Try PDFLab (freeware) at www.versiontracker.com.

  • How to create a Multigroup from two ODC's?

    Hello,
    In an existing PCUI Application, i would like to combine ODC4 and ODC5 into a single Multigroup so that i can add another Multigroup in the place of ODC5. Currently, both of these elements are of LIST Screen Element Types, have only one tab, have different Events and have different field group, structure and so is the different class.
    How can i combine these two into one Multigroup? I have never touched this area in PCUI and would really appreciate if you can provide any help on this.
    Thanks,
    Vasu

    Hi Vasu
    You can add the corresponding event from a tab group  to the existing multigroup or you can also create your own multigroup.
    regards
    shankar

  • Creating a PDF from Word, endnote links jump to wrong page

    I have a Word file with a large number of endnotes.  In Acrobat 9.5.5 the endnote links jumped to the correct page.  In Acrobat XI, which I just upgraded to, all endnotes jump to the wrong page.  Somehow when converting the Word to PDF the calculation of what page to jump to is calculated incorrectly.  Is this a known problem?  I see other discussions on problems with endnotes but they are for different problems.  How can I resolve this.  I don't want to have to revert to Acrobat 9, but it worked.

    Well I tried that.  I set the printer driver to Adobe PDF.  I then selected all text and hit F9 to refresh all links and saved the file and then went to the Acrobat tab to create the PDF version.  Using the application and importing the file to create a PDF causes the same result.  I can now see a pattern of what is happening.  This has a large number of endnotes, 525.  There are probably 30+ endnotes links per page.  I noticed that all the endnotes links for the first page that has the links all point to the second page of endnotes in the endnote section (strange that it starts with the second page and not the first), then all the endnote links of the next page point to the third page of endnotes and it continues that way until the end. 
    Another way to describe this is that the first page of endnote links should point to endnote pages 1 through 4 but they all point to page 2.
    I checked and all the links in the Work doc are linking correctly.
    I wonder if version XI has been rewritten since version 9 and my case is too extreme for this version and it chokes.  I'm trying to rebuild part of the file from scratch and see if the problem goes away since there is a lot of history to this file and it started at least at Word 2007.  I'm using Word 2013 now and have converted the format to the 2013 level.
    I've sent in a bug report but have not heard anything and talked to customer service over chat but they don't seem to care enough to pass this to development even though it's easily reproducible.
    Thanks for your help.

  • Data Corrupted when using CREATE AS SELECT * FROM over DB LINK

    Hi ,
    I wonder if anyone has suffered a simillar issue as this:
    I have a DB Link Between a 10gR1 (Base install not patched) database on Windows 2003, and a 10gR2 (with latest Patch Database ) on Sun Solaris. The 10.1 DB is the SOURCE 10.2 is TARGET
    When using a statement like the following on the Target :
    CREATE TABLE a AS SELECT * FROM TABLE a@SOURCE
    The statement completes, however for some (not all) tables, the data content is seriously corrupted, I noticed this when trying to apply a UKey on the newly created table in TARGET. The data was completely messed up for around 600 out of 450000 rows, I could not easily tell which rows were messed up as it was the columns that build the UKey that were affected :-(
    The same happens if I precreate the table and use INSERT /*+APPEND*/ INTO AS SELECT.... etc
    I realise that using an unpatched 10.1 is not nessasarily advisable, however currently it is difficult for us to patch or upgrade the DB...
    If anyone has seen this before an/or has any ideas what might be the cause , I would appreciate any help I can get.
    Cheers
    JAmes

    The Problem Manifest itsself in that some fileds are created with incorrect Values, specificaly in easy to identify cases NULL where the original values where not NULL.
    These field do not contain special chars like ä or ß , so it does not seem to indicate a charset issue.
    JAmes

  • Creating single clip from multiple clips

    I'm wondering if there's an easier way to do what I'm doing....
    I had someone digitize a bunch of tapes for me but they had the "on timecode break, make new clip" on, in the preferences, so now I have about 100 clips per tape. What I want to do is make each tape a single clip for easier logging.
    What I've been doing is that I grab all the clips on a particular tape, drag them to the timeline, mark in and out at heads/tails and export it as a reference (not self-contained). Then I reimport that file back in and it all works out great. Only that each tape takes about 20 minutes to do this. Is there a faster way to get the same result?
    Thanks in advance....
    Steve

    Once the clips are loaded into a sequence, Name the sequence Tape_001 (or whatever) and simply log from that timeline.
    The individual clips will retain their timecode, you can mark the in/out for each clip, you can mark 'good take' on the individual clip and do all manner of wonderful file management that is difficult with only one long clip.
    x

  • Creating Single Role from Many Roles

    Hi,
    Can we created a single role(not composite) from many roles?? i.e. all the authorisations of n roles being copied into a single new role??

    You can create a composite role in PFCG and just include the other roles within it. But there is no functionality to merge roles into one another.
    If you need more detail, the I suggest you ask your question in the Security Forum.
    Hope that helps.
    J. Haynes
    Denver CO US

  • How to create a Gradientcolor from two existing swatches

    Hello all,
    I have 2 colors in the swatches palette.has anyone how to create a new gradient color from this to swatches.
    So far I can get my to colors from the palette and extract their color:
    aSwatch1 = sAISwatchList->GetSwatchByName( colList, colorName1 );
    aSwatch2 = sAISwatchList->GetSwatchByName( colList, colorName1 );
    iErr = sAISwatchList->GetAIColor( aSwatch1, &colorP1);
    iErr = sAISwatchList->GetAIColor( aSwatch2, &colorP2);
    // now somehow create a new gradient:
    iErr = sAIGradient->NewGradient( &gradientHnd );
    but what do now. to get the new color from colorP1 and colorP2. I need a simple linear gradient.
    Any hints?
    regards
    Michael

    Hello,
    > Please, excuse any ignorance below. I'm not well versed in the actual artistic side of Illustrator, just the implementation
    excused because you're the one of the few people here who give thoe most usefull answers
    > Isn't that to be expected though? From my admittedly limited understanding, the gradient being saved is really just a sequence of colour stops. I would have thought since the angle of the gradient is more of a property of how its applied to the path (or whatever) that it wouldn't make sense to save it on the gradient colour.
    No, not from my view (and needs ).
    The color for the gradient has a type of AIGradientStyleMap. this struct contains the angle für the linear gradient etc. This color is added to the swatchpalette so it shoud keep the value.
    If you replace the CreateGradientSwatch function in SnpGradien.cpp of the SnippetRunner with the following code a 2nd swatch with an different angle is added to the swatchpalette when creating a new linear gradient is created (name seems not what it should but 2 swatches are created. Applying this 2 swatches to a rectangle also the angle is changed as it should be.
    So from my point of view Illustrator doesn't take the angle when a new color/swatch is created in the swatch panel. Why the angle is saved by creating a style is another question and difficult to answer without looking inside the source of Illustrator
    ASErr SnpGradient::CreateGradientSwatch(const AIGradientHandle gradient, AISwatchRef& swatch)
    ASErr result = kNoErr;
    try {
    // Insert new swatch at end of general swatch group.
    swatch = sAISwatchList->InsertNthSwatch(NULL, -1);
    // Get gradient name.
    ai::UnicodeString gradientName;
    result = sAIGradient->GetGradientName(gradient, gradientName);
    aisdk::check_ai_error(result);
    // Set swatch name.
    result = sAISwatchList->SetSwatchName(swatch, gradientName);
    aisdk::check_ai_error(result);
    // Create the swatch color using the gradient.
    AIColor swatchColor;
    swatchColor.kind = kGradient;
    swatchColor.c.b.gradient = gradient;
    swatchColor.c.b.gradientAngle = 30;
    swatchColor.c.b.gradientLength = 1;
    AIRealPoint origin = {0,0};
    swatchColor.c.b.gradientOrigin = origin;
    swatchColor.c.b.hiliteAngle = 0;
    swatchColor.c.b.hiliteLength = 0;
    SnippetRunnerLog::Instance()->WritePrintf("gradientAngle: %.1f",swatchColor.c.b.gradientAngle);
    SnippetRunnerLog::Instance()->WritePrintf("gradientLength: %.1f",swatchColor.c.b.gradientLength);
    SnippetRunnerLog::Instance()->WritePrintf("gradientOrigin (v / h): %.1f /  %.1f", swatchColor.c.b.gradientOrigin.v, swatchColor.c.b.gradientOrigin.h);
    SnippetRunnerLog::Instance()->WritePrintf("gradientAngle: %.1f",swatchColor.c.b.gradientAngle);
    SnippetRunnerLog::Instance()->WritePrintf("hiliteLength: %.1f",swatchColor.c.b.hiliteLength);
    // Set the swatch color.
    result = sAISwatchList->SetAIColor(swatch, &swatchColor);
    aisdk::check_ai_error(result);
    // making a 2nd swatch
    AISwatchRef swatch2;
    swatch2 = sAISwatchList->InsertNthSwatch(NULL, -1);
    result = sAISwatchList->SetSwatchName(swatch2, (ai::UnicodeString("Grad2")));
      // Create the swatch color using the gradient.
      AIColor swatchColor2;
      swatchColor2.kind = kGradient;
      swatchColor2.c.b.gradient = gradient;
      swatchColor2.c.b.gradientAngle = 60;
      swatchColor2.c.b.gradientLength = 1;
      swatchColor2.c.b.gradientOrigin = origin;
      swatchColor2.c.b.hiliteAngle = 0;
      swatchColor2.c.b.hiliteLength = 0;
    result = sAISwatchList->SetAIColor(swatch2, &swatchColor2);
    catch (ai::Error& ex) {
    result = ex;
    return result;
    The CS3/CS4 question is easy: for CS3 i use the CS3 SDK and for CS4 I#m working with the CS4 SDK :-)

  • Acrobat 9.3.4 issue: Creating single PDF from Multiple PDFs

    Hey all,
    My setup:
    • Mac OS 10.6.4 / Mac Pro dual / 6GB RAM
    • Adobe CS5 Master Collection
    • Acrobat Pro 9.3.4
    Just ran into issue (critical) I have not encountered before, but it is frighteningly reminiscent of the InDesign CS5 problem of the "Document fonts" folder issues and Small Caps/All Caps. Here's the scenario:
    1. In an IDCS5 document I've used the "All Caps" command to give a heading that characteristic (font used is Avenir 95 Black; type 1).
    2. Export to PDF (Print), and receive a correct PDF, with the All Caps designation showing/printing correctly.
    3. Open it in both Acrobat 9.3.4 and Adobe Reader 9.3.4, and the file is correct (see attachment 1, below).
    4. I then make several other single-page PDFs and save them all to a new folder.
    After creating these single-page PDFs for client review, the client has requested that a random number of these PDFs be compiled into a single PDF, which is no problem--it's a common request which we do all the time. The steps for this are:
    1. Launch Acrobat Pro 9.3.4
    2. Choose File>Create PDF>Merge Files into a Single PDF; dialogue box pops up.
    3. Click the "Add Files" button in the upper left corner of dialogue box (Single PDF button is selected in top right corner of box).
    4. Navigation window pops up, allowing me to choose the folder created in step 4, above, which contains the PDFs I need.
    5. Highlight the desired PDFs, and arrange them in the desired order; click on the "Combine Files" button in the lower right corner of dialogue box. 6. PDFs are generated, and I save the resulting PDF; I then open it in either Adobe Reader 9.3.4 or Acrobat Pro 9.3.4 to verify all went well, and to my disappointment, notice the incorrect interpretation of the "All Caps" line of type (see attachment 2, below).
    I have verified that a PDF file exported through IDCS5 works correctly, and making the 'combined' PDF by making a new IDCS5 document and adding the necessary pages and exporting a single PDF works correctly, as well. The problem is that the "Combine..." feature in Acrobat Pro is our workflow, because it allows for single PDFs to be combined into one WITHOUT having to set up a new IDCS5 document specifically for the final PDF; to do so would require countless numbers of IDCS5 files in order to get the randomly chosen pages into one PDF.
    Has anyone else encountered this problem, and if I overlooked a similar post, my apologies. Thanks in advance...
    Cheers!
    Mikey

    The issue is related to font embeddings. If all of the pdfs had contained the entire font set rather than font subsets this would not be an issue. The way to tackle the problem is to use the PDF optimizer to remove ALL font embeddings. Then use the Preflight to to re-embed the fonts.

Maybe you are looking for