Creating trees in oracle apex 4.0

Hi
I have to create a 3 level tree from three tables
the table structure are as follows
Customer(table:)
customerid,customer_name
Site(site)
site_id,site_name
equipments(table)
equipid,equipment_name,customerid(fk),siteid(fk)
nowi have to create a tree of the following structure
customer1
--->site1
--->equip1
---->equip2
--->site2
--->equip3
--->equip4
customer2
--->site3
--->equip5
can anyone please help to create a query to make this tree strcuture happen.
thank you
Musab

This is fairly simple - just put the tree data into a view and then access that view when you define the tree region
It would be something like the following but typically you'd add in images or links too...
create view vtree as
select to_number(null) pid, customer_id id, customer_name name from customer
union
select customer_id, site_id, site_name from site
union
select customerid, equipid, equipment_name from equipment --< note this is the same level as site, I'd imagine you'd want this to sit below customer?

Similar Messages

  • Need help in creating Aria using Oracle APEX

    Hi,
    I am trying to develop an employee lookup using DBCON's PDF(http://www.dbcon.com/oracle_apex_ebook_aria.html).
    I downloaded the Oracle XE, version 11.0.0.28844 and used the APEX from this. But, the files provided by DBCON seem to be old. I tried using the AriaTheme.sql file in the APEX, but, it errors out complaining that the file is not compatible.
    As this did not work, I downloaded the APEX(apex_4.0.1) and am trying to proceed with this. This comes with a large package and it is not clear on how to install and where to start off to build ARIA.
    Please help me out with the latest compatible theme or suggest the XE version that I need to download.
    Thanks,
    Divya.

    I downloaded it from: http://www.oracle.com/technetwork/database/express-edition/downloads/102xewinsoft-090667.html(Oracle Database 10g Express Edition (Universal) )
    Could you please comment on the 'Aria' setup, if you are aware?

  • Oracle apex creating mouse over drop down menu

    Hi ,
    I want to create a drop down menu for main tabs. Can any one explain or tell how to create this drop down and to use that in oracle apex 4.2 version.

    A much better option than using in-built tabs.
    1)
    You need to define a List, either static or dynamic, which will be your menu options - and it needs to be hierchical.
    Then you create a list region on the global page, using a stock template such as DHTML Tree
    2)
    Or you can use a CSS only menu, similar to the first option
    http://www.grassroots-oracle.com/2013/05/css-pull-down-menu-using-apex-list.html
    3)
    Or you can use a plug-in
    http://apex-plugin.com/oracle-apex-plugins/region-plugin/enkitec-navbar_317.html
    Scott
    ps - my, what a crazy username you have! is this the new forum default?

  • Escape '  ' while creating a collection in Oracle APEX

    Hi all
    I am creating a collection where I am using substr and instr functions and it does give an error message as below
    • ORA-06550: line 14, column 79: PLS-00103: Encountered the symbol ", -1)) OWSR, null PRIM_ADD , null PRIMA" when expecting one of the following: ) , * & = - + < / > at in is mod remainder not rem <an exponent (**)> <> or != or ~= >= <= <> and or like like2 like4 likec between || multiset member submultiset
    Relevant Portion where the error pops up:
    APEX_COLLECTION.CREATE_COLLECTION_FROM_QUERY(
    p_collection_name => 'RANGE_COLLECTION',
    p_query => 'SELECT
              :P999_LOC_TYPE ADD_TYPE_ID
              , TRIM(:P999_OWSR) PRIM_ST
              , SUBSTR(TRIM(:P999_OWSR),1,1) PRIM_DIR
              , SUBSTR(TRIM(:P999_OWSR),INSTR(TRIM(:P999_OWSR), ' ', -1)) PRIM_SUF
    ......... on the line below
    SUBSTR(TRIM(:P999_OWSR),INSTR(TRIM(:P999_OWSR), ' ', -1)) PRIM_SUF
    Does anyone have any solution how to escape the single quotes in Oracle APEX 4.2. - like \' or something? I already tried using backslash but had no luck.
    Would really appreciate your help ASAP.
    Thanks,
    Rads

    Rads wrote:
    Does anyone have any solution how to escape the single quotes in Oracle APEX 4.2. - like \' or something? I already tried using backslash but had no luck.Quotes in string liberals in Oracle are escaped by doubling them up:
    execute immediate 'update emp set sal = sal * 1.2 where ename = ''SCOTT''';However a better approach when dealing with SQL strings is to use the alternative quoting mechanism:
    execute immediate q'{update emp set sal = sal * 1.2 where ename = 'SCOTT'}';as this allows the original string to be left unaltered.

  • Create a query builder in oracle Apex

    Hi
    We have a request to create a query builder in oracle Apex particularly.But it provide the application builder and Utilities when we create the apex workspace.My question is any possibility are to make the application builder and utilizes as invisible
    regards
    apexuser

    hi scott,
    we no need to buid a report.we want generate a sql query using GUI drag and drop query builder.
    our suggestion is provide synonym for all objects and give to clinet,but in apex query builder only show view and table...
    it not show synonym thats the problem..
    simply we want oracle query browser.just want build a query.through synonym schema.
    we cerate a oracle user and provide synonym for live tables.then we provide the synonym user to client place,so they want build a query simpl.
    they dont have sql knowledge.
    regards
    apexuser

  • How to Create Websheet in  database application in Oracle Apex

    I'm making a database to my new web site and now I'm developing a site with Oracle Apex.
    The aim of my website provide free Oracle, Java, Unix education (videos, tutorials, articles, step-by-step instructions. etc).
    My questions
    - I created a database Application and I want create page as Oracle OBE where I will write/Save Subject name in database filed and all Subject Details Write/save in page as websheet Application(where I can add new section with all Document and image and save in page not in database)
    i mean i want to make page as this
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/apex/r41/inst_pkgapp/inst_pkgapp.htm

    Hi Prasad,
    You can write normal JDBC code in your controller.
    Check this Web Dynpro Java
    You can use the tool for generating the classes from your DB.Check this too
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/dfad6017-0301-0010-bdb8-a8b7d2006f36
    Best Regards, Anilkumar

  • How to create page zero in oracle apex 4.0?

    Hi All,
    How to create page zero in oracle apex 4.0?
    Regards
    Mani

    Hi,
    Home > Application Builder > Application xxx > Create Page
    At bottom center on wizard there is Page Zero
    Regards,
    Jari
    Edited by: jarola on Aug 25, 2010 7:28 PM
    And here is chapter about in documentation
    http://download.oracle.com/docs/cd/E17556_01/doc/user.40/e15517/ui.htm#BGBFFFGH

  • Creating vertical drop down list in oracle apex.

    Hi All,
    Am using Oracle Apex 4.2 version. I want to create a vertical drop down menu.So, for that  I have created a list with parent and child entries. But I dont know what to do after that.
    Kindly help me in doing this.
    Thanks,
    Sravanthi.

    refer following link
    Grassroots Oracle: CSS pull down menu using APEX List
    or use enkitec plugin
    Enkitec : Products : Plug-ins : Details : Help

  • Create PDF from PL/SQL-Interface XML FOP / Oracle BI / Oracle APEX packages

    Hi All,
    I think this is perhaps the most often asked question. And people suggest using PL-FPDF or PL PDF. There is a constraint, I can't use PL PDF because of monetary reasons.
    I wish I could use some method to output PDF from the PL/SQL. I already have a document (word document stored as CLOB). Now, I need to output this file as PDF. I know doing this outside database is easy and advisable, but this what I have been asked to do.
    Is there any method of implementation, using either XML - FOP or Oracle BI publisher or Oracle APEX tools (and not Oracle APEX itself, I know how to do this if the application is built, run using Oracle APEX, but this is plain Oracle HTP).
    Database: Oracle 9.2 running in Windows server.
    Thanks in advance.
    Guru
    Edited by: guru paran on Oct 22, 2009 12:55 PM
    Added tags

    Apologies for that.
    I am looking into ways to use Apex. Like calling the FOP in Oracle OC4J server and generating PDF from it. As I told already, we have this application built on Oracle HTP, we can't move to Oracle Apex now. I can install Oracle APEX and use the tools it offers. No problem in that.
    PL-FPDF is free, but I can see this doesn't help much. What I have is CLOB, not data from table. :(
    I am just looking into different ways one can do this.

  • How to create image button in oracle apex 3.1

    Hi,
    I am new to oracle apex.
    I would like to show button called Delete as image icon for the same i have saved the button attributes as mentioned below
    Button= Style Image
    Button Image #WORKSPACE_IMAGES#delete_row_64.gif
    But it is not no showing image, displaying like image not available.
    Please any one help me how solve this issued
    Please helpe me where i need store images which i can use as image icon for page item .
    Thanks and regards,
    Ibrahim Sayyed.

    Thanks you so much Gus, I got it.
    Thanks and regards,
    Ibrahim Sayyed.

  • Bug Report: Create Tree Wizard

    Just a minor one...
    1) The create tree wizard doesn't clear it's pages when it's called again, that's why all the old values of the last creation are displayed as default -> problem is that the page number, ... is already used.
    2) When selecting "Existing Application Item" as Link Option, the LOV on page 118 also shows page item buttons (eg you can select the P101_LOGIN button from page 101). But I don't think that's a valid target...
    Patrick
    *** New *** Oracle APEX Essentials *** http://essentials.oracleapex.info/
    My Blog, APEX Builder Plugin, ApexLib Framework: http://www.oracleapex.info/

    Bug filed, thanks.
    Scott

  • How to not display nodes in a tree if Oracle roles are NOT used?

    How to not display nodes in a tree if Oracle roles are NOT used?
    We don't use Oracle DB roles to grant users access to Forms from the menu. We use a template and role system of our own. Basically a few tables with templates and roles.
    We want to convert our normal Forms menu to a tree menu and one of our key requirements is that when the tree is populated ONLY nodes with programs (i.e. forms) he has been granted to execute is shown.
    Since we don't use Oracle Roles how to do this in a tree?
    I created a function to show/hide LEAF nodes, BUT problem is that there are sub-menu nodes showing even if the leaf-nodes under it has not being displayed. My function has suppressed it.
    My tree query is like this:
    SELECT
         t.status, LEVEL, t.label, t.icon, t.node VALUE
    FROM
         tma_tree_menu t
    WHERE
    tma_authenticate_sys_chk_role(USER, t.node) = 1
    CONNECT BY
         PRIOR t.node = t.master
    START WITH
         t.MASTER IS NULL
    ORDER SIBLINGS BY
    t.position
    The tma_authenticate_sys_chk_role will return 1 only if the user has access to the form under that node.
    I tried the FTree functions in Forms but even that has nothing.
    Any help would be greatly appreciated.
    Edited by: Channa on Mar 17, 2010 6:49 AM

    Would you share the source code? I guess what I need is how exactly you retreive the user credentials from the DB table and set that boolean variable.
    and then how to condition it in UIX?

  • Ora-06502 pl/sql numeric or value error in Report Query in oracle apex

    Hello all,
    I need your help...
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    I am using bi publisher to generate PDF reports in oracle apex.
    We were using APEX 4.0 and migrated to 4.2 just a week ago.
    Now we have apex 4.2.
    When I try to Create report query,
    Shared Components >> Report Queries then create.
    and test a report in a create wizard I am getting a error "ORA-06502: PL/SQL: numeric or value error: character string buffer too small".
    I have also applied a patch "16760897".
    This issue is because of number of columns in a query is more then 26.
    If I run a report with 26 or less number of columns then the is working fine, otherwise getting this error.
    My before migration report queries working perfectly even now, but not new queries.
    This issue is also in apex.oracle.com.
    You can see
    Not working  - http://apex.oracle.com/pls/apex/f?p=619:4
    Working - http://apex.oracle.com/pls/apex/f?p=619:2:
    Please give a solution.
    Thanks you.

    check the DB version compatibility with apex 4 or your DB version to apex 4.0 support for upgrade!
    Oracle Application Express Installation Requirements for 4.0

  • How to pass a value to a bind variable in a query report in oracle apex

    Hi Guys,
    I have requirement to send weekly reports via email to some users. The users should receive their own records in the report. The user details is stored in a table. What I am planning to do is to create a report query in oracle apex to generate the report and then run a function/procedure via a scheduler to email the report to respective users. Now my query is ............. is it possible to pass a value (user name) to the report query to pull records of only that user? I know we can have bind variables in the report query but I have no idea how to pass a value for bind variables from a function/procedure.
    Can anyone help me on this issue or suggest a better approach?
    Thanks,
    San

    You need to use dynamic sql
    But please keep in mind that since you're using Oracle you may be better off posting this in some Oracle forums
    This forum is specifically for SQL Server
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Report in pdf format in oracle apex

    how can i save the contents of a form as a report in pdf format by clicking on tha print button in oracle apex???
    plz help if anyone knows tha solution
    Edited by: user9139675 on Mar 9, 2010 11:14 PM

    how can i save the contents of a form as a report in pdf format by clicking on tha print button in oracle apex???You may create a report and call it in an Apex process fired by press a button.
    in the process:
    l_utl_http := utl_http.request(l_url);
    where set l_url like:
    http://167.165.243.209/dev60cgi/rwcgi60?repdevi_key&server=Rep60&report=my_rpt.rdf&DESFORMAT=PDF&DESTYPE=FILE&DESNAME=/arch/chrisweb/devi/cache/my_rpt.PDF&BACKGROUND=YES&P_1=PC00980
    The generated pdf report my_rpt.PDF is kept at /arch/chrisweb/devi/cache/

Maybe you are looking for

  • Transparent logo into KN?

    Mac OS10.4.11. Keynote 3.0.2 Logo created in Freehand. I want to place a two colour logo (Call it "A&B") into KN on a colored background without its white picture box surrounding it. JPEG, TIFF, PDF files don't seem to work. A Freehand vector EPS log

  • Rounding Difference in Process Order

    Dear SAP Gurus, I need to explain accounting how rounding works when consuming the components of BOM while confirmation of process order. We have two very similar packaging products with 'EA' as base UOM in one BOM. Comp A   Target  = 2.222 EA     Ac

  • Outlook 2010 ...messaging interfaces returned unknown error... cannot resolve recipient. When replying

    There is a link with someone else who was receiving the same error, but i believe for different reasons. http://social.technet.microsoft.com/Forums/en-US/outlook/thread/43221dbf-60e1-4afb-8c25-f23f06deed3e I just performed an upgrade from office 2007

  • ITunes cannot run because it detects a problem with Quicktime

    When I click on the help icon I am prompted to uninstill Quicktime. The problem is, Quicktime isn't in the list of installed programs. It is visable if I go to classic view in the control panel page but I can't seem to delete it. Any help would be gr

  • CQ5 with InDesign, Bridge, and Drive

    We make lots of catalogs. We use the full CS5 suite currently, and are considering purchasing CQ5 as the repository for the assets and then to move on to the web content management. Some thoughts and questions on how CQ5 might support a print product