Link to tree conditional to the region of the page

Hello
I'm still stuggling with the tree;).
I have a view from tree:

CREATE OR REPLACE FORCE VIEW 'LIB_TREE' ('ID', 'PID',
'NAME', 'LINK', 'A1', 'A2') AS
SELECT
1 id,
NULL pid,
'Documents '.
name,
null link,
null a1,
null A2
Of
Double
UNION ALL
SELECT
id_dept + 100000 id,
1 the nest.
Department
name,
null link,
null a1,
null
A2
Of
lib_dept

UNION ALL
SELECT
id_cat + 200000 ID.
id_dept + 100000 pid,
name of the category,
null
link,
null a1,
null A2
Of
lib_categories

UNION ALL
SELECT

id_doc,
id_category + 200000 pid,
name of the document,
null link,
null
A1,
null A2
Of
lib_documents
/

So, I get:

LINK code A1, A21 - Documents - PID NAME
100003 1 dept1-
1 100004 dept2-
100001 1 dept3-
100002 1 dept4-
200001 100001 contract-
200002 100004 project-
7343514157589715 200003 basket.php-
7347221195799935 200003 index.php-

Query tree finally:

SELECT
ID 'ID.',
"PID" pid,
'Name',
? p = & APP_ID.:28: & SESSION. : NO::P28_ID_DOC :'|| "" Link ID ".
null a1,
null A2
Of
"#OWNER # '." LIB_TREE ".

I have 2 problems. First is the link in a query (P28_TREE_ROOT) of the tree. In this version, I have links on each level, categories and departments are links and documents (files) that are in the hierarchy from the bottom and actually should be links. Question is: how to make a conditional link column in a query of the tree?
Second problem is related to a sql database report in an area on page 28 (the same as the tree). The report is a simple SELECT query on a table of documents which, in consequence, gives all columns and all rows of the table. Question is: what is the condition WHERE should I do, to have only one line in the result, which would rank code of the document that has been clicked on a tree.
Otherwise superior trees then documents could be links that give as a result with all report documents of the clicked Department or category...

Thaks for help.

Blazej

Published by: TheJoshuaTree on March 11, 2009 17:54

Hello

First of all, as you create a view that sees all three tables, you can add another field in each select statement that identifies the level involved. You can then use a CASE WHEN... Sql statement of PURPOSE for the LINK in your tree. You could, of course, create the LINK on selects it individual - even if it means hardcode the links within the sql view. If you set the LINK to set two values on your page - one indicator to identify the level and the other for the ID, then you have your report based on something like:

SELECT ...
FROM ...
WHERE (:P1_FLAG = 'X' AND ID_DOC = :P1_ID)
OR (:P1_FLAG = 'C' AND ID_DOC IN (SELECT ID FROM LIB_TREE WHERE PID = :P1_ID)
OR (:P1_FLAG = 'D' AND ID_DOC IN (SELECT ID FROM LIB_TREE WHERE PID IN (SELECT ID FROM LIB_TREE WHERE PID = :P1_ID))

There may be even simpler means using the SQL features own tree (see the CONNECT BY clause in SELECT statements: [http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/queries003.htm#sthref3139] - that is, in my view, how are constructed trees of Apex).

Andy

Tags: Database

Similar Questions

  • Apply the condition on the page to allow access if Javascript is enabled

    Hi, is there a way I can put a condition on the page to allow access allow access only if java script is enabled?

    I have a heavy use of Javascript to calculate different values in a page and want to ensure that if Javascript is not enabled in the browser they do not get to use the page.

    Using Apex 4.1.1

    See you soon.

    Xrc xarg wrote:
    Hi, is there a way I can put a condition on the page to allow access allow access only if java script is enabled?

    I have a heavy use of Javascript to calculate different values in a page and want to ensure that if Javascript is not enabled in the browser they do not get to use the page.

    APEX is JavaScript-dependent, it is unlikely that users will even be able to log in and access this page, unless you already take steps throughout the application to allow it to work with JS disabled.

    Also note that for security reasons all depends on the JS in the browser must be verified on the server when the page is sent.

  • Convert links to Destinations named in the Page numbers instead

    I have a PDF file in Adobe Acrobat Pro MS which has 1000 named destinations. Is there a way to convert the links to these destinations to go to the page of the destination named instead?

    I'll never need to add or remove pages, so these destinations are not useful for me. I want the link to go to the 'number of Page use' the destination named in the action to the named destination.

    Reason... the named destinations have lack of characters in them, and that it is a problem of import in another software that I use.

    Acrobat_2016-05-11_14-04-32.png

    Thank you to anyone who is willing to provide assistance.

    Troy

    By Evermap's Autobookmark did for me.

  • Move links to javascript value when the page is loaded

    Hello

    I use JDeveloper 11.1.2.4.0.

    When loading my jsf page, I want to pass the value of the lat, long columns of links the attribute so that the map google map is rendered correct loading of the page.

    I can do when a button is clicked.  But I want to do it when the page is loaded.

    Any ideas?

    Thanks in advance.

    Here is the code snippet, which includes the javascript function: instead of coding hard - 34.397 and 150.644, I would like to happen next as parameters or

    access it some how from the pagedef attribute binding.

    < f: facet name = "metaContainer" >
    " < af:resource type = 'javascript' source = ' https://maps.googleapis.com/maps/API/js?v=3.exp & Sensor = false "/>
    < af:resource type = "javascript" >
    var map;

    initialize() function
    {
    var mapOptions =
    {
    Zoom: 8, Center: new google.maps.LatLng (-34.397, 150.644)
    };
    card = new google.maps.Map (document.getElementById('map-canvas'), mapOptions);
    }

    google.maps.event.addDomListener (window, "load", initialize);
    < / af:resource >
    < / f: facet >

    Hello

    set a listener of phase for the view (using the beforeMethod on the f: view of the page markup). In the method, then use the ExtendedRenderKit Service to call JavaScript from Java. The method must listen for the phase PREPARE_RENDER, who is the liaison for the page to exist. You can access the link from BindingContext.getCurrent () .getCurrentBindings () layer. From there, you call (AttributeBinding) bindings.get ("the binding of the attribute name") to get the attribute mandatory and then - in a next step - the inputValue with data to transmit

    Call JavaScript from Java:

    String script = «...» Add JS calls to set values in JS variables accessed by Google Maps"

    ExtendedRenderKitService erks = Service.getRenderKitService (context, ExtendedRenderKitService.class);

    erks.addScript (context, script);

    Frank

  • FMW: Links Portal Upgrade Advisor to the page build Middleware of Oracle 11 g Architecture

    Perhaps a link in the Advisor to each document for installation/upgrade is needed.   Would be very useful.  And, if the document refernence is not specific to the step, but it is more general in nature, then a shor comment indicating to view only the relevant sections of the document.   That, to me, would be the most valuable contribution.  Please ask for clarification if necessary.   The page I am referring here would be 'Building the Middleware of Oracle 11g Architecture basis'. Each of the steps listed there is extremely useful.   Also, small change to it would be great for it is according to put it as follows in the next video that Dan is putting together to address upgrade scenario.

    And as mentioned in a previous debate. Would be really nice if we know exactly what is supposed to be running for each of these steps.  Not so much after we're done, but how to start.  Also, what environment should be set to.

    Example: Ensure that portal db, earphone, IDM and former/current levels are rising and runing and environment is set for new construction/PFRD area (where are the new binaries) for the portal 11g Upgrade Wizard.

    Example: Ensure that db, listener, old idm level runs and defined environment to the new layer IDM of IDM Upgrade Wizard.

    NOTE: These are examples only and may be wrong, but (and please let me know if so)... There you have something to run with.

    FYI... So I made changes at the stage 'The base Middleware of Oracle 11g Architecture site'... so we have documentation References inline + some additional details added. When you find the time, take a look and let me know if the changes are for the clearest reading / understanding of the build process.

  • Accordion widget without close when they are incorporated vertical menu is linked to an anchor on the page. Help!

    I placed a vertical menu inside an Accordion widget. I've linked the elements of vertical menu to page anchors. The page scrolls to the appropriate area, but does not close the menu accordion. If I have a link to the vertical menu with new pages to push it to a new page, but not if I use anchors on the page.

    I suggest you use the composition and Insert menu in container with skin defined target as the hover out of the container. This will hide the container target composition on the scroll of the page.

    Thank you

    Sanjit

  • link to other parts of the page

    How can I associate text higher in the page to something that is located near the bottom of the page

    1 give the item you want to link to an id html highlighting and adding a unique name (no spaces or special characters) in the area of identification in the property inspector. Make sure that you do not accidentally select the global container that contains all the items you want to link to, defining this way anchor links will take you to the top of the selected item.

    2. highlight the point/text you want to use as the link and put this id, preceded by the symbol #, in the property inspector link box.

    That should do it.

  • my logo and links continue to go to the page! can someone please?

    My logo and the links always moving around the page when I view the site with Internet explorer 8 and its okay when I watch with Safari.

    He sometimes happenss with all pages and sometimes not!

    Can anyone help solve this mystery. the site is www.zarproductions.com.au

    Thank you very much.

    Alex

    In a Word, yes although DW will do much of the heavy lifting for you.

    Edit > find & replace

    Find: all of the current Local Site

    Search: Specific tag > table

    Action: Remove attribute > height

    Replace everything.

    Rinse and repeat for the width and do the same thing for thetag.

    To style with CSS view

    http://www.Projectseven.com/Tutorials/CSS/css_td/

    Otherwise, forget the tables altogether (a few new sites Web use) and use an integrated model of the DW CSS-based.

    Or buy a rock solid template CSS online and learn the modern way of laying on the Web pages, for example http://www.projectseven.com/products/templates/index.htm (cost money, but they are great learning tools). I have no ties to them other than as a satisfied customer who learned of them.

  • How to get the value of the tree node without reloading the Page. !

    Hello
    I worked with apex 4.2 and I've created trees and as a table to retrieve the date according to the value of the tree node select the code tree something like that

    {
    Select case when connect_by_isleaf = 1 then 0
    When level = 1 then 1
    of another-1
    end the status,
    level,
    'ENAME' as the title,
    NULL as an icon,
    'EMPNO' as value,
    NULL as ToolTip,
    ' f ? p = 36648:34:5234984107903:P40_SELECTED_NODE :'|| EmpNo as link
    "Dept". "" EMP ".
    Start by "MGR" is nothing
    connect prior "EMPNO" = "MGR".
    siblings arrested by 'ENAME '.
    }
    and I put the Page selected node element: P40_SELECTED_NODE. the tree worked well and recover the data in tabular form according to the value of tree node

    My Question:
    1. I want to recover the data without submitting the page where whenever I select the value of the tree make page reload to update the tabular presentation with the new value, there is a way to convey the value of the tree node to point P40_SELECTED_NODE and in the form of refreshment without page reload.

    2-i want when selected in the page tree run process according to the value of the on-set tree node to create dynamic action with (jquery selector: div.tree li > a) but the value of the incorrect node.

    Concerning
    Ahmed;

    Take a look at my sample tree application.
    When you select a node, a details report is updated. That should help you implement for your situation.
    However, one thing to note is the link on each node that you have. Click on a node to redirect to the same page and set the value of P40_SELECTED_NODE. You can keep the element, but the link should go, as it's him "reload" the page whenever you click on a node. Implementation of the action of "onselect" tree and setting the page element to the value of the node that will be in place. Be sure to add the page element in the elements present in the form of tables.
    The reason why your selector didn't return the correct value is that you have a click event bound to the anchor tag in each element of the list. The anchor tag does not hold the real value (usually and id), but holds that the display value. The items list item containing the real value in their attribute "id". Therefore, to get this value you should always inspect the first parent of the clicked anchor tag. (which is another way to solve it, of course)

  • How to develop all the rows of the table of the tree when the page loads?

    Hi all

    I have tree than VO mere reference of table... I want to expand all table tree rows when the page loads... I already have initially developed property to true... but it only runs from first line of tree...

    Any help would be great-Jey

    In the backbean and that:

      private RowKeySetTreeImpl ps = new RowKeySetTreeImpl(true);
    
      public void setPs(RowKeySetTreeImpl ps)
      {
        this.ps = ps;
      }
    
      public RowKeySetTreeImpl getPs()
      {
        return ps;
      }
    

    In the jspx set table tree as disclosedRowKeys

    
    
  • http link will not remain in the link box

    I have a link to a page of one web site other than the site of Muse I created.  I have a line that says go HERE to get the coupon.  I have a link HERE to the Web page that contains the coupon.  I have 3 instances of the apperaring link on the same page.  The first link half works and loads the page without images.  second link works perfectly.  3rd link does nothing.  Go back and look at the link box and the first and the last is changed to other stuff.  Can't get the right link to stay in the box...  Link works very well in the Middle but not the other two.

    Hello

    Please check the text and the text block that you use, because the issue may be here with not successfully added links.

    Select the text and check the hyperlink field if it meets the correct link and also check by selecting the text block.

    Thank you

    Sanjit

  • Is it possible to reuse a region in several pages?

    Is it possible to reuse a region in several pages?

    For future maintenance, it would be easier to make changes in the region alone. Keep several copies of a region is more work and eventually someone will not forget to modify one of the regions.

    Thank you.

    Hi wolfv
    Create your area on page 0 and then conditionally set the display of the region for specific pages in your application only.
    In 'condition type' attribute region Select "current page is contained within the Expression 1 (delimited list of pages)" and in Expression 1 set 1,2,4,6,99 etc or pages what ever you want it to appear on.
    This works especially well for parts of the tree.

    concerning
    Paul P

  • Dynamic action to show skillbuilders popup doesn't work when the page refreshes

    Hello!.
    I have a relationship with a column of link:

    "" < a href = "f?... class = show_popup '...

    I have a dynamic action defined like this:


    Event: click.
    type: jquery selector
    selector: a.show_popup
    no condition.

    Action: skillbuildersmodalpage 2.0.0
    URL: attribute of the triggering element.

    It works fine, but after that the popup is shown and closed, the link does not work until the page is completely refreshed again.

    After the closure of the pop-up window, I only update the report with $a_report (in another dynamic action on the 'auto skillbuolders close' event), I don't want to send the entire page...
    the partial update works fine too, but not the link, it works again by refreshing or submit that all page

    any idea?

    Published by: Andres Vilallave on 28-may-2013 16:22

    you define the scope of the dynamic event?

  • Cannot bring up the Table again after the passage of the pages

    I have three pages in my application. There is one table and they all access. One is the homepage and includes a report. From there, I can click on "New line" and go to a blank form to enter another record. From the homepage, I can also go to a page "Updated a line" to update the information.

    This is the update to the update page that does not work. It loads a blank form.

    The parameters for the extraction process on the update page are:

    Type: Automatic line Fetch
    Sequence: 1
    Process: When loading - after the header
    Enforcement process: once a Page visit (by default)
    Process the message error: unable to fetch the line
    No conditional

    These parameters to produce a blank form. I don't want a blank form. I want the shape to be filled with the lowest ID number in the Table.

    Frustrating thing is, it worked a week ago, but somehow got back to "not the mode of operation."

    Steve in Raleigh NC

    Published by: user8703867 on August 28, 2009 09:13

    Hello

    OK - normally, the user would click on a link on a line in the report on the first page to go to the update page. This link would cross the primary key value of the record they want to put up-to-date.

    If you just click a button, the update page wouldn't know which required record updated. The update page has a process of "search for the line...". "that must have a parameter that identifies the page element that will contain the primary key of the record. It is this value that must be defined by a link.

    I suggest you change your report, click the column attributes tab and click a column that you can use a link and scroll down to the section of the link column. Here, enter the page number of the form was updated, the page element in need of the primary key (in the first 'these elements' SETTING) and the name of the column (in the "with these values" setting - surround the column with # s name, for example, #EMPNO #) that contains the primary key on your report. These settings then build a URL that, when the user clicks on the link, transfer the user to the update page and move into the desired primary key - the process then does the rest to update the record on the screen.

    Andy

  • CreateInsert button submits the page

    Hi all

    I use jdeveloper 12.1.3.0.0 on windows internet explore 10.

    I followed this link Re: Center Align on the page

    I have a form of the ADF on a view object and a drag and drop the button createInsert so.

    now the problem is that when I click the button CreateInsert, the page is sent and the postings raise errors. See the image below

    create_insert_page_submit_error.png

    why it behaves like this?

    Thank you.

    LON

    the immediate = true is not worked, the behavior is the same.

    but when I insert a record into the table, because the table was empty, the problem is fixed.

    He has been to launch this error only when the table is empty.

    for subsequent records, she never raises this error.

    Thanks Timo Hahn.

    Kind regards.

Maybe you are looking for