Value of the selected tree node

Hello

I'm new to Apex (4.1.1) and I'm having a small problem.
I had 2 Pages. The frist one is composed of a treeregion and a "submit" button.
The Second is a report.

I want to create a workflow, the user selects a treenode shipment and presses. Then it will be redirected to the reportspage,
that will show him a report according to the treenode that he selected on the first Page.

Problem:
I don't know how I can read the value of the selected treenode.

I hope you can help me.

Thank you
Frédéric

Hi Frederic,.

To get the value of the selected tree node, you can make use of the "selected Page element node' attribute on the attributes of the tree page. Just create an element of your page and set the "Page of selected node element" of this new item page. Then fill the point via the BINDING of your tree query parameter. For an example, take a look at the following: http://apex.oracle.com/pls/apex/f?p=36648:6, where I put my point page P6_SELECTED_NODE to the value of the node selected in the first tree that is empno. Your report query must refer to the node selected item "Page, to make sure it displays information about the selected tree node.

I hope this helps.

Kind regards
Hilary

Tags: Database

Similar Questions

  • How to get the selected tree node and its attributes

    I have a 'af:RichTree' on a page, which is linked to a support bean (session scope)

    Here is my selection Listener:

    {} public void groupTreeSelectionListener (SelectionEvent selectionEvent)
    RichTree tree = (RichTree) selectionEvent.getSource ();
    Model TreeModel (TreeModel) = tree.getValue (); / /--> this line causes a "pointer Exception zero."
    RowKeySet rowKeySet = selectionEvent.getAddedSet ();
    Key of the object = rowKeySet.iterator () .next ();
    }




    what I'll do is get the note selected and then get all the attributes of this node, perform other actions.


    Please advise,

    Thank you
    Shahab

    have not tried the tree component but cross chek well's Rowselection component of the tree. If so set to single or multiple

  • How to read the data of the selected tree node?

    I tried this site 2.

    http://blogs.Oracle.com/jdevotnharvest/entry/how_to_read_data_from

    http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/november2011-OTN-harvest-1389769.PDF


    but can still because there is something wrong with the setting for MethodExpresion:


    newClass [{SelectionEvent.class}]
    = me exprFactory.createMethodExpression (elCtx, adfSelectionListener, Object.class, newClass [] {SelectionEvent.class});


    Anyone know about [] {SelectionEvent.class} newClass, thank you before.

    What version of jdev do you use?
    The sample for jdev 11.1.2.1, have you tried to run the sample workspace as it is?
    What is the problem with the SelectionEvent?

    Timo

    Published by: Timo Hahn on 25.01.2012 08:55
    second look:
    newClass [{SelectionEvent.class}]
    = me exprFactory.createMethodExpression (elCtx, adfSelectionListener, Object.class, newClass [] {SelectionEvent.class});
    should be
    New Class [] {SelectionEvent.class}
    me = exprFactory.createMethodExpression (elCtx, adfSelectionListener, Object.class, Class [] {SelectionEvent.class}) new;
    There is a space between the new and class

  • get the values of the selected items to RichSelectManyChoice

    Hi all

    I have a RichSelectManyChoice

    When the user clicks on the "submit" button I want to get the values of the selected items...


    ----------------------------------------------------------page.jspx-----------------------------------------------------------------------------

    <? XML version = "1.0" encoding = "UTF - 8"? >

    " < = xmlns:jsp jsp:root ' http://Java.Sun.com/JSP/page "version ="2.1"xmlns:f =" " http://Java.Sun.com/JSF/core "

    ' xmlns:af = ' http://xmlns.Oracle.com/ADF/faces/rich "> "

    < jsp:directive.page contentType = text/html"; Charset = UTF - 8 "/ >

    < f: view >

    < af:document title = "untitled1.jspx" id = "d1" > "

    < af:messages id = "m1" / >

    < af:form id = "f1" >

    < af:panelGridLayout id = "pgl1" >

    < af:gridRow height = "100%" id = "gr1" >

    < af:gridCell width = '100% ' halign = "stretch" valign = "stretch" id = "gc1" >

    <! - content - >

    < af:selectManyChoice value = "#{bindings." CountriesView1.inputValue}.

    label = "#{bindings." CountriesView1.label}"id ="smc1.

    valuePassThru Binding = "#{suspect." Country}"="true">

    < f: selectItems value = "#{bindings." CountriesView1.items}"id ="si1"/ >

    < f: validator binding = "#{bindings." CountriesView1.validator} "/ >"

    < / af:selectManyChoice >

    < / af:gridCell >

    < / af:gridRow >

    < / af:panelGridLayout >

    < text af:button = "Button 1" id = "b1" action = "#{suspect.valide}" / >

    < / af:form >

    < / af:document >

    < / f: view >

    < / jsp:root >

    ---------------------------------------------------------------------------------------------------------------------------------------

    --------------------------------------------------------------------suspect.java-------------------------------------------------------------------

    package test.view;

    import com.sun.org.apache.xpath.internal.operations.String;

    Import oracle.adf.view.rich.component.rich.input.RichSelectManyChoice;

    public class suspect {}

    RichSelectManyChoice campaign private;

    String string = null;

    public suspect() {}

    ????????????????????????????????????????

    }

    public void valide() {}

    }

    {} public void setCountry (RichSelectManyChoice country)

    This.Country = country;

    }

    public RichSelectManyChoice {} getCountry()

    back country;

    }

    }

    ---------------------------------------------------------------------------------------------------------------------------------------------------------


    Anyone has an idea please?

    Hello

    You can use

    JUCtrlListBinding listBindings = (JUCtrlListBinding) getBindings () .get ("CountriesView1");

    Object [] str = listBindings.getSelectedValues ();

    for (int i = 0; i)< str.length;="" i++)="">

    System.out.println (STR [i]);

    }

    in this loop, you will get all the values of selectManyChoice, for details see Ashish Awasthi (Jdev/ADF) Blog: using the selection Multiple (component selectManyListbox & selectManyCheckbox) in ADF

    hope it helps

  • Cannot get the value of the selection of OAMessageChoiceBean

    Hello

    Of our 11i to R12 upgrade, in the customer's advanced search page, we are unable to get the handle suitable for OAMessageChoiceBean (in extendedCO).

    The snippet for the bean handling is as follows:

    OAMessageChoiceBean PartyStatusFilter = (OAMessageChoiceBean) vOAPageContext.getRootWebBean () .findChildRecursive ("xxfeF426PartySearchStatus");
    String xxTest = PartyStatusFilter.getSelectionValue (vOAPageContext);

    The value of the above xxTest (in R12 approx.) is coming with a null value. Considering that the same code works in 11i environment and the xxTest output = "A".

    So we cannot get the value of the selection of the messagechoicebean in our environment of R12. I already looked in previous similar positions in this forum, also tried to use getSelectionText (vOAPageContext) or getSelectedValue(), however, it did not work.

    Pointers please?

    Thank you very much
    Zahid

    Hi Zahid,

    Try with this ID = HzPuiPartyStatus

    -Had

  • Refreshing a report on the change in value of the selection list

    -Very well, this should be very easy, but I can't seem to do things.

    I have 2 items on a page: a list of selection and a report.

    The report contains a WHERE clause that uses the value of the selection list.

    So when I change the value of the selection list, the report needs to be recharged.

    I don't want to use a 'Redirect and set' when I change the selection list, because I don't think it's very pretty.

    So I created a dynamic action that updates the State when the selection list is changed.

    Now for the problem: the report get updated, but the new value of the selection list is not used!

    How can I make select the value of the item to be stored in session state?

    I can't find this option anywhere in the parameters of the dynamic action.

    Thank you.

    popovitsj wrote:

    How can I make select the value of the item to be stored in session state?

    I can't find this option anywhere in the parameters of the dynamic action.

    It is in the region of report definition: Page to submit items in the Source section.

  • Restore the value of the selected line in the editable Table.

    Hello, I use Jdeveloper 11.1.2.1.0.

    My problem is:
    1. Select a line in the editable table.
    2. change the value inside elements of the af:inputText of columns.
    3. tap on restore.
    4. the values of the selected line remains the same.

    If I select another line, before the restore, the restore will work as expected.

    I want to when you press the button cancel the values of the selected row to be rollback-ed as well.

    Set the immediate on all the inputTextFields in the table and it worked.

    Thank you.

  • Toggle button depends on the value of the selected row

    Hello.

    My problem is:

    I have a Table "singleSelect" and a button Delete.

    I´d want to toggle the button depends on the value of the selected row.

    I mean:

    C1: DepartmentId
    C2: Yes/No

    For each line: If c2 = "" then disable the rest button activates the button.

    I hope you can help me.

    I'm from Venezuela my English is not very good. :)

    Disabled = "#{row." C2 eq 'No'} '.

  • How to get the value of the selection of the text box list

    Hello

    I have a selection list that I want to retrieve the value of the selection of the text box list.

    How can I do this?


    Kind regards
    Santini.

    Hi Sarah,.

    Yo can use Java script for this...

    Dynamically the value will enter in the text box.

    Use the script below.

    
    

    See you soon,.
    Shan

  • How to use the Type of Oracle Table values in the Select statement.

    Hello

    I get the initial set of values in the Table of Type Records of the Oracle and want to use the list of values in the Select statement.

    For example, try something like the following:

    TYPE t_record () IS RENDERING
    ID TABLEA.ID%type,
    NO TABLEA.NO%type

    );
    v_record t_record;
    T_table TYPE IS the v_record TABLE % TYPE;
    v_table t_table;

    -Code to fill the values of v_table here.

    SELECT ID, NO, COLLECT in BULK IN < some other table variabes here > FROM TABLEA
    WHERE ID IN (i) v_table USER.USER;

    I want to know how to use the Type of Oracle Table values in the Select statement.

    Something like this:

    create or replace type t_record as  object (
    id number,
    no number
    )
    /
    
    CREATE or replace type t_table AS TABLE OF t_record;
    /
    
    set serveroutput on
    declare
    
      v_table t_table := t_table();
      v_t1 t_table := t_table();
    
    begin
    
      v_table.extend(1);
      v_table(1).ID := 1;
      v_table(1).No := 10;
    
      v_table.extend(1);
      v_table(2).ID := 2;
      v_table(2).ID := 20;
    
      SELEC t_record (ID,NO) BULK COLLECT INTO v_t1
      from TableA
      FROM TABLEA
      WHERE ID IN (select t.ID from table(v_Table) t);
    
      for i in 1..v_t1.count loop
        dbms_output.put_line(v_t1(i).ID);
        dbms_output.put_line(v_t1(i).No);
      end loop;
    end;
    /
    

    No test!

    P;

    Published by: bluefrog on March 5, 2010 17:08

  • How to use the value of the select in SQL queries list

    I have a list with the list of states (P1_STATE) in Page 1. When I send the page, I get the VALUE of P1_STATE in Page 2 to the format: DC:AS:AK. I use the application to display the form in the Page 2 below.

    Select *.
    of STATE_REF
    where IN location_id (: P1_STATE)

    Now the format of P1_STATE will not work in the query. So it's not fetch all results. Is there a way in which the values of the selection list can be used in SQL queries. Thanks for the help.

    Hello

    Try something like:

    select *
    from STATE_REF
    where ':' || :P1_STATE || ':' LIKE '%:' || LOCATION_ID || ':%'
    

    Andy

  • Clear the selection of nodes on the table of the Trinity

    Hi all

    We have an ADF application 10G. Selection of nodes in tree in the pages which can be enabled or disabled programmatically like this:

    < af:treeTable binding = "#{treeBean.treeComponent} '"
    var = "treeItem".
    disclosureListener = "#{treeHolder.processDisclosure} '"
    expandAllEnabled = "false" >
    < f: facet name = "nodeStamp" >
    < af:column >
    < af:panelLabelAndMessage >
    < af:outputLabel value = "#{treeItem.nodeName}" / >
    < / af:panelLabelAndMessage >
    < / af:column >
    < / f: facet >
    * < f: facet = 'selection' name > *.
    * < text af:tableSelectOne = 'Select items' disabled = "#{treeItem.addNodeNotSelectable}" / > *.
    * < / f: facet > *.
    < / af:treeTable >

    However, facet 'selection' has been removed from Trinidad treeTable . How to toggle the treeTable programmatically nodes? We want that tree nodes to extend completely than just that the user should not be able to select some of them using the option button.

    rowSelection = "simple/multiple" recounts only if the user can select one or more nodes.

    Thank you

    Published by: user12054715 on November 16, 2011 10:57

    If you read "anger" in my answer, you picked up something that don't is not there - I don't was any "angered."

    Allow me to paraphrase what I said:

    According to my understanding of the documentation of Trinidad (link above), the tree table doesn't have this capability more, and therefore, we can not do.

    Update - I went back and read my original answer above and can see how you got the impression that I've been "angry" - I should have phrased differently. No intended anger. Note for later: don't post answers to the OTN late at night when you're tired :)

    Sorry for the wrong impression.

    John

  • Some columns of the values of the selected line returns NULL in the table of the adf.

    Hello..

    My version of jdev 11.1.1.5.0

    I have a vision with some columns. This view is mapped to a table of adf with some of the displayed columns. My task is to get the column values selected line (including the values of the column not displayed).
    But I'm certain values such as null, although there are values present when I run the query from the view.
    My code:
    DCIteratorBinding tableVO = ADFUtils.findIterator ("myVO");
    ViewObject voTableData = tableVO.getViewObject ();
    Line rowSelected = voTableData.getCurrentRow ();


    + / / codeto display column and the values +.
    int x = 0;
    * for (the names of the objects: rowSelected.getAttributeNames ()) {*}

    * for (int i = x; i < rowSelected.getAttributeValues () .length; i ++) {*}
    * System.out.println (x + "." + name + "=" + rowSelected.getAttribute (i)); *
    break;
    *}*
    x ++ ;
    continue;
    *}*


    MY table:
    * < af:table value = "#{bindings.myVO.collectionModel}" *.
    * var = "row" rows = "#{bindings.myVO.rangeSize}" *.
    * EmptyText = "#{Bindings.myVO.Viewable?" "{'No data to display.': 'Access Denied.'}". *
    * fetchSize = "#{Bindings.myVO.rangeSize}" *.
    * rowBandingInterval = "0."
    * filterModel = "#{Bindings.myVO.queryDescriptor}" *.
    * queryListener = "#{Bindings.myVO.processQuery}" *.
    * filterVisible = "true" varStatus = "vs."
    * selectionListener = "#{myBean.method_onRowSelect}" *.
    * rowSelection = "single" id = "t1" styleClass = "AFStretchWidth."
    "* partialTriggers =": sbcClose: sbcOpen: socWarehouse. "
    * inlineStyle = "height: 217px;" / > *.


    Thank you

    Question: the attributes are not null in the DB?
    The attributes are part of the past of the query select?
    And they are part of the binding of the tree?

    Timo

  • monetary value for the selection of the checkbox?

    I have a price list page 5 which has checkboxes for items people want to buy. I want to add a dollar value on the box so that if the item is selected, I can get a box of total at the end of the form that calculates all checked/ordered. I looked at the forums and I see Javascript, but impossible to find the right solution - I'm a novice at JavaScript. Any help would be much appreciated.

    I have a text box invisible with the prices "1100XL PRO" and a check box beside it called CheckBox1.

    Is this correct and how to link the two?

    Thank you in advance.

    You can set the price as the value of the field to export, in fact, and then you would only need to use a single field.

    You will find this setting under properties of the checkbox, Options tab.

  • Refresh the report area of PL/SQL (not Page) using the value of the select list

    Hello

    I have a report region based on a "body of the PL/SQL function returning a query'which SQL is generated on the selection of a value of an element from the selection list, select action list is"Redirect and set", but this causes the entire page refresh rather than just the region report." I tried to update the report using only a dynamic action on the item list select (Action now reset to 'None'), but now the report does not appear on the choice of the list. Can someone suggest a solution that will allow me to update this report without refreshing the page? I use APEX 4.2.2 and the syntax of the statement is as follows:

    DECLARE

    v_statement VARCHAR2 (500);

    BEGIN

    SELECT query_text
    IN v_statement
    OF sql_queries
    WHERE query_id =: P2_QUERY;

    RETURN v_statement;

    END;

    where P2_QUERY is Select list item,

    Kind regards

    Kevin.

    KevinFitz wrote:

    The displayed report region is subordinate to the point P2_QUERY is NOT NULL. I guess that the region appears not is because the Action for the select list item is set to None, and so P2_QUERY is always NULL.

    No, the region does not appear because it is subordinated to the P2_QUERY being NOT NULL. This means that the region of report never exists on the page displayed in the browser, so it cannot be updated dynamically. (Dynamic updating is not to evaluate the conditions of the region, and she makes only the content of the report, not the whole region again).

    Remove the condition on the region to report, check the update works and then go back on what exactly are the requirements here. If you want to the area appear only when P2_QUERY has a value, and you want it to be regenerated without submitting and reposting of the page, the region must then be hidden rather than conditionally restored and shown via dynamic when action P2_QUERY Gets a value.

    I tried to add a further Action for the event real value DA but has been a mistake, as stated above,

    All irrelevant if Page to submit items on the region is used correctly.

Maybe you are looking for