Table tree select questions

Hi all

I use Jdeveloper 12.1.2.0.0.

My requirement is to select the checkbox all rows in a table from the tree root level when the user clicks a checkbox control named selectAll (this box resides outside the TreeTable). If the user disables the selectAll checkbox all rootLevel in tree lines must be unchecked.

The tree has two levels. I used a transitional mode attribute in the t and when the user clicks the selectall checkbox, ValueChange Listener fires and I'm looping through the lines of the iterator, setting the transient value to be true.

It works fine all the time but not the first time. When I click on the for the first time selectAll checkbox, the ValueChange listener fires but the treeTable lines are not get verified. The second time, it works perfectly.

I have a partial trigger to the TreeTable.

If I use a button instead of a check, it works fine all the time.

Could someone help me.

Do not know what causes this. Have you tried in jdev 12.1.3?

To work around the problem, you can but a button hidden on the page and the queue an event to actin the listener to change value of the check box for the button. So easy the key dies at work, and it should work.

Timo

Tags: Java

Similar Questions

  • Table tree - Select All child nodes at the same time when the Parent node is selected.

    Hi all

    I am relatively new to ADF and JDeveloper, and so I hit a problem I can't deny.

    I have a tree table that looks like the following...

    1 status | Name | Employee ID

    -> Status 2. Name | Employee ID | etc. | etc.

    -> 3 status. Name | Employee ID | etc. | etc. | etc.

    I want to do is when I select the node from top of the line/parent (line 1) page I would like child nodes (lines 2 and 3) to choose from in the same mouse clicks.

    In the end I will be citing a listener of the property on a button, once the selection was made, to change the value of the 'Status' column in all three levels that have been selected.

    NB. each level in the tree above is derived from 3 views distinct, who are joined on the employee ID.

    Thanks in advance for your help and your advice.

    Kind regards

    Jamie.

    Jamie, tell us your version of jdev, please!

    This http://andrejusb.blogspot.de/2012/11/check-box-support-in-adf-tree-table.html Blog shows how to implement this.

    Timo

  • create the table in SELECT (question)

    Hello

    In regards to create the table as subquery, I read that:

    The data type of column definitions and the NOT NULL constraint are passed to the new table. Note that only the explicit NOT NULL constraint is inherited. The PRIMARY KEY column will not function NOT NULL column null. Any other rule of constraint is not passed to the new table. However, you can add constraints in the column definition.

    Can someone explain to me how to do this? Or, how we need to specify the constraints (and also the default values for columns, because it is possible) for the columns in the column definition?

    In addition, I do not understand this: the PRIMARY KEY column will not function NOT NULL column zero.
    Can someone give me some small examples regarding these?
    For example, it generates an error:
    create table test1 (a, b, c default sysdate) 
    as 
    select 1, 'b' from dual
    Thank you!

    Edited by: Roger22 the 01.09.2011 11:37

    Hello

    When you set a primary key consists of a unique constraint and a constraint not null, but they are both implicit with the primary key. When you create the table because it will copy only the explicitly declared NOT NULL constraints so it isn't look upward than the implicit NOT NULL primary key.

    SQL> create table dt_pk
      2  (   id      number primary key,
      3      col1    number not null,
      4      col2    number
      5  )
      6  /
    
    Table created.
    
    SQL> desc dt_pk
     Name                                      Null?    Type
     ----------------------------------------- -------- ----------------------------
     ID                                        NOT NULL NUMBER
     COL1                                      NOT NULL NUMBER
     COL2                                               NUMBER
    
    SQL> create table dt_pk2 as select * from dt_pk;
    
    Table created.
    
    SQL> desc dt_pk2;
     Name                                      Null?    Type
     ----------------------------------------- -------- ----------------------------
     ID                                                 NUMBER
     COL1                                      NOT NULL NUMBER
     COL2                                               NUMBER
    
    SQL> select constraint_name,constraint_type from user_constraints where table_name='DT_PK'
      2  /
    
    CONSTRAINT_NAME                C
    ------------------------------ -
    SYS_C006935772                 C
    SYS_C006935773                 P
    
    SQL> select constraint_name,constraint_type from user_constraints where table_name='DT_PK2'
      2  /
    
    CONSTRAINT_NAME                C
    ------------------------------ -
    SYS_C006935774                 C
    

    However, a primary key can reuse existing constraints and indexes instead of declaring new. For example, we can explicitly declare a constraint not null on the column id and then create a primary key. This means that we will now inherit the constraint not null in the ETG, as it has been explicitly declared and is a constraint separate in there own right that has been 'borrowed' by the pk constraint.

    SQL> create table dt_pk3 (id number not null, col1 number not null, col2 number);
    
    Table created.
    
    SQL> alter table dt_pk3 add constraint dt_pk3_pk primary key (id);
    
    Table altered.
    
    SQL> select constraint_name,constraint_type from user_constraints where table_name='DT_PK3'
      2  /
    
    CONSTRAINT_NAME                C
    ------------------------------ -
    SYS_C006935775                 C
    SYS_C006935776                 C
    DT_PK3_PK                      P
    
    SQL> create table dt_pk4 as select * from dt_pk3;
    
    Table created.
    
    SQL> desc dt_pk3;
     Name                                      Null?    Type
     ----------------------------------------- -------- ----------------------------
     ID                                        NOT NULL NUMBER
     COL1                                      NOT NULL NUMBER
     COL2                                               NUMBER
    
    SQL> desc dt_pk4;
     Name                                      Null?    Type
     ----------------------------------------- -------- ----------------------------
     ID                                        NOT NULL NUMBER
     COL1                                      NOT NULL NUMBER
     COL2                                               NUMBER 
    

    Regarding the definition of the default values, you must always specify the column in the select, but doing so means follow you the semantics of a default in a standard INSERT statement, i.e. you specified the column, you must provide a value, in which case even if the value is null, the default value will not be used. However, the new inserted rows where the column with the default value is not specified will revert to the default.

    SQL> create table test1 (a, b, c default sysdate)
      2  as
      3  select 1, 'b' from dual
      4  /
    create table test1 (a, b, c default sysdate)
                        *
    ERROR at line 1:
    ORA-01730: invalid number of column names specified
    
    SQL> create table test1 (a, b, c default sysdate)
      2  as
      3  select 1, 'b', null c from dual
      4  /
    select 1, 'b', null c from dual
                   *
    ERROR at line 3:
    ORA-01723: zero-length columns are not allowed
    
    SQL> create table test1 (a, b, c default sysdate)
      2  as
      3  select 1, 'b', cast(null as date) c from dual
      4  /
    
    Table created.
    
    SQL> select * from test1;
    
             A B C
    ---------- - ---------
             1 b
    
    SQL> insert into test1(a,b) values(2,'b');
    
    1 row created.
    
    SQL> select * from test1;
    
             A B C
    ---------- - ---------
             1 b
             2 b 01-SEP-11
    

    To create a constraint, you must list all columns without the data types and constraints list online.

    SQL> create table dt_cons (id number, col1 number, col2 number, constraint chk2 check(col2 IS NULL or col2>10))
      2  as select * from dt_pk3
      3  /
    create table dt_cons (id number, col1 number, col2 number, constraint chk2 check(col2 IS NULL or col2>10))
                          *
    ERROR at line 1:
    ORA-01773: may not specify column datatypes in this CREATE TABLE
    
    SQL> create table dt_cons (constraint chk2 check(col2 IS NULL or col2>10))
      2  as select * from dt_pk3
      3  /
    create table dt_cons (constraint chk2 check(col2 IS NULL or col2>10))
                         *
    ERROR at line 1:
    ORA-00904: : invalid identifier
    
    SQL> create table dt_cons (col2 constraint chk2 check(col2 IS NULL or col2>10))
      2  as select * from dt_pk3
      3  /
    create table dt_cons (col2 constraint chk2 check(col2 IS NULL or col2>10))
                          *
    ERROR at line 1:
    ORA-01730: invalid number of column names specified
    
    SQL> create table dt_cons (id,col1,col2 constraint chk2 check(col2 IS NULL or col2>10))
      2  as select * from dt_pk3
      3  /
    
    Table created.
    
    SQL> desc dt_cons
     Name                                      Null?    Type
     ----------------------------------------- -------- ----------------------------
     ID                                        NOT NULL NUMBER
     COL1                                      NOT NULL NUMBER
     COL2                                               NUMBER
    
    SQL> insert into dt_cons values(2,2,2);
    insert into dt_cons values(2,2,2)
    *
    ERROR at line 1:
    ORA-02290: check constraint (JJACOB_APP.CHK2) violated
    
    SQL> insert into dt_cons values(2,2,10);
    insert into dt_cons values(2,2,10)
    *
    ERROR at line 1:
    ORA-02290: check constraint (JJACOB_APP.CHK2) violated
    
    SQL> insert into dt_cons values(2,2,11);
    
    1 row created.
    
    SQL> insert into dt_cons values(2,2,null);
    
    1 row created.
    
    SQL>
    

    HTH

    David

  • 12.1.3 JDeveloper and table for selection of rows in Internet Explorer 9

    Configuration: Windows 7, Internet Explorer 9 12.1.3, JDeveloper (sorry, the company standard for now)

    I have problems of selection of rows in a table when you use IE9 (disabled compatibility view) as my browser.  I created a simple application to test.  I did the following:

    1 created a new web application from merger in JDev 12.1.3.

    2 objects of business created for 1 table

    3. create a simple page (jspx) for testing

    4 dropped the table on the side of Center of a PanelStretchLayout on the page as a table read-only with sorting and single-row selection enabled.

    5. changed the property table DisplayRow selected.  No other property has changed.

    When I run the application, the table appears and is filled as expected.  However, after you select at random the rows in the table, the application will lose focus and become hidden behind other applications on my desktop.  If I bring the application in the foreground and try again the same thing will happen.  After the selections of line 1 X application will disappear from the screen.

    I decided to reproduce the JDev 12.1.2 test.  In JDev 12.1.2 the application behaves as expected.  Never, the application loses focus after several attempts to select a field.

    I wonder if something in the hotfix released to correct the 12 c/Internet Explorer 11 questions is the culprit.

    Everyone knows about this problem?  I hope there is a change of ownership that I do in 12.1.3 to solve the problem.

    Thanks in advance!

    A solution that seems to work...

    Add a clientListener inside the table

    
    

    Add a javascript method

    function handleTableSelection() {
      window.focus();
    }
    

    Just seems to bring the window to the front without changing anything, as far as I can tell.

  • Table tree ADF elements at all levels in nodeStamp facet

    Fusion Middleware Version: 11.1.1.5

    WebLogic: 10.3.5.0

    JDeveloper Build: Build JDEVADF_11.1.1.5.0_GENERIC_110409.0025.6013

    Project: Custom Portal Application WebCenter integrated with ADF custom workflows.

    Hello


    I have a problem with ADF Tree Table (af:treeTable) that if I add an item to a group under the facet "nodeStamp" he repeats for all levels in the tree even those outside the group.

    Overview:

    -3-master level / retail structure created using ADF business components (display objects 3 connected by 2 show links)

    -ADF Tree Table based on the master-detail

    -Requirement to indicate 3 levels of data in the first column tree

    -Table tree renders correctly showing the values for "node. FullName ',' node. DisplayValue' and ' node. HoursType' respectively in a tree of level 3.

    -When another element is added to the top node in the tree ("node. FullName') for example, some output text ('node. TimeBuildingBlockId'), it is displayed along components side ' node. DisplayValue' and ' node. HoursType' as well.

    Code snippet:

    < af:treeTable value = "#{bindings." Var PerPeopleFVO1.treeModel}' = 'node '.

    selectionListener = "#{bindings." PerPeopleFVO1.treeModel.makeCurrent}.

    rowSelection = "single" id = "tt1" styleClass = "AFStretchWidth."

    horizontalGridVisible = "true" verticalGridVisible = "true".

    disableColumnReordering = 'true' summary =' entered in the time sheet.

    displayRow = "selected" expandAllEnabled = "false".

    contentDelivery = 'immediate' autoHeightRows = '24 '.

    columnStretching = "column: column1 '.

    Binding = "#{pageFlowScope.TimecardMB.tree_binding}" >

    < f: facet name = "nodeStamp" >

    < af:column id = "c1" headerText = "Partner details" width = "500" >

    < af:group id = "g4" >

    < af:outputText value = "#{node." FullName}"id ="ot3"/ >

    < af:outputText value = "#{node." TimeBuildingBlockId}"id ="ot1"/ >

    < / af:group >

    < af:outputText value = "#{node." DisplayValue}"id ="ot4 ".

    inlineStyle = "color: Green;" make-weight: bolder; "/ >

    < af:outputText value = "#{node." HoursType}"id ="ot5"/ >

    < f: facet = 'filter' name / >

    < / af:column >

    < / f: facet >

    < f: facet name = "pathStamp" >

    < af:outputText value = "#{node}" id = "ot2" / >

    < / f: facet >

    < af:column FROM HERE... >

    Any ideas greatly appreciated.

    Hello

    Try to use a blender to distinguish three levels of the tree. You can have three different facets, three different af:group's.

    When you add at one level, it will not repeat in the other classes.

    Please see the excerpt below.

    selectionListener = "#{bindings." RefBusinessUnitView1.treeModel.makeCurrent}.

    rowSelection = "single" id = "t1" >

    facetName ="#{node.hierTypeBinding.viewDefName}">

    Alisson

  • ADF Table and select one choice

    Hai everybody, please help.

    I have a page that contains the table and select a choice where the table record displays the current month and the choice of a select contain only months. When I select the month from the list, save the table will change based on the months that I have chosen. I have really no idea on how to perform this task.

    123.png

    With the help of jdev version 11.1.1.7.0

    Thanks for your help.

    El

    Try to follow the following:

    1 - in the ViewObject (to which redirect the table) define the bind variable, this variable binding will filter the query (for example variable binding name is selectedMonth).

    2 - from the page, select the selectOneChoice and of the Inspector properties set value change listener method in backbean and autoSubmit = true.

    
       .
       .
    
    

    Method of earphone 3 months value change will be:

      public void monthValueChangeListener(ValueChangeEvent valueChangeEvent)
      {
        BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
        DCIteratorBinding iter = (DCIteratorBinding) bindings.get("TableIteratorName");//you can get iterator name from pageDef.
        ViewObject vo = iter.getViewObject();
        vo.setNamedWhereClauseParam("selectedMonth", valueChangeEvent.getNewValue());
        vo.executeQuery();
      }
    

    3. set table by selectOneChoice id partialTrigger

    
        .
        .
        .
    
    
  • Add the value of table row selected PageFlowScope so that I can access taskflow

    Hi all

    Facing a problem of getting a value from a table ADF selected line to a taskflow that appears as an inline popup. Here's the scenario. I have a vision that shows a table. When I click on an edit btn I display my taskflow as an inline popup. What I would do, is to take the line of the selected table, remove lets say the value of line name and pass it on to my taskflow for display. I tried this value within an mbean settting when I click the btn edit using:
            AdfFacesContext.getCurrentInstance().getPageFlowScope().put("editTargetNameSource", targetName);
            String tmpClear = (String) AdfFacesContext.getCurrentInstance().getPageFlowScope().get("editTargetNameSource");
    That seems to get together, but when I try to enter this value using EL inside my page of jspx taskflow it seems to be not defined.
     <af:outputLabel value="Selected Row" id="ol1"/><af:outputText value="#{pageFlowScope.editTargetNameSource}"
    It seems that pageFlowScope for my taskflow popup! = pageFlowScope for page my table saw to. I tried to put this as a parameter of the entry page, but I have the feeling that I missed something. I wish I could set this value within my bean when a user clicks the edit btn and then display that value in my taskflow popup.


    Any help is appreciated,
    -Wraith

    RequestContext requestContext = RequestContext.getCurrentInstance ();
    requestContext.getPageFlowScope () .put ("editTargetNameSource", targetName);

  • Create the table in select * from the other table

    DB: 11.2.0.2

    How to create a table with structure only not empty the data that we do not generally create table in select * from... But the command will pull the data also. How to create without data?

    create table foo
    in select * bar
    where 1 = 0

  • Values in the list by the order of table in SELECT Union

    Version: 11.2

    Apparently a very basic thing. But I couldn't do it :)

    In the UNION example below automatic sorting in is based on alphabetical order. I want to get rid of this sort and list the values according to the order of the table in the SELECT.

    Test data
    create table test1 (name1 varchar2(10));
    
    create table test2 (name2 varchar2(10));
    
    create table test3 (name3 varchar2(10));
    
    
    insert into test1 values ('EARTH');
    insert into test1 values ('TAURUS');
    insert into test2 values ('YELLOW');
    
    insert into test2 values ('ALPHA');
    insert into test2 values ('TANGO');
    
    
    insert into test3 values ('BRAVO');
    
    
    select name1 from test1
    union
    select name2 from test2
    union
    select name3 from test3;
    
    NAME1
    ----------
    ALPHA
    BRAVO
    EARTH
    TANGO
    TAURUS
    YELLOW
    
    6 rows selected.
    In the above example, I want the values in the first array SELECT listed first, then all the values of the second table in SELECT it and so on.

    Basically my requirement will be
    Return all values from test1 (alphabetically sorted)
    then
    Return all values from test2 (alphabetically sorted)
    then
    Return all values from test3 (alphabetically sorted)
    Expected results:
    NAME1
    ----------
    EARTH  ------------> from the first table in the SELECT
    TAURUS ------------> from the first table in the SELECT
    ALPHA  ----------------------> from the second table in the SELECT
    TANGO  ----------------------> from the second table in the SELECT
    YELLOW ----------------------> from the second table in the SELECT
    BRAVO  ------------------------------> from the third table in the SELECT

    Hello

    Union made a distinct in terms of the line. From the line "ALPHA", 2 and the line 'ALPHA', 3 are different, they both show in the result set.

    Further, you are all just lucky, that you get the results you want with the order clause:

    order by 2
    

    This performs a sort on the second column (1,2,3)
    Also, you want to sort on the first column (name1, name2 and Name3). The order clause should be (as already shown correctly abbove):

    order by
      2, 1
    

    Kind regards

    Peter

  • create table as select or parallel table / * + parllel() * /.

    Dear Experts,


    I have two huge table almost 300 GB each.
    create table as 
    select * from table t1 ,t2
    where t1.row_id=t2.row_id
    How to run this query in parllelism. Withou Parlell, it takes too much time.

    as it should be
    create table parallel 15 as 
    select * from t1,t2;
    or in another way

    and if it was it y 3 table to join to

    My * wrote:
    Dear Experts,

    I have two huge table almost 300 GB each.

    create table as
    select * from table t1 ,t2
    where t1.row_id=t2.row_id
    

    How to run this query in parllelism. Withou Parlell, it takes too much time.

    as it should be

    create table parallel 15 as
    select * from t1,t2;
    

    or in another way

    and if it was it y 3 table to join to

    What happens if the slowdown occurs on SELECT it & not create?

  • input field for text inside the table tree adf

    Hello

    I want to know, how to create a field of text within the tree adf table entry.

    I have three table tree of hierarchical level, places-> Services-> employees.

    This function I want as editable email field.

    can someone tell me please how to do this?

    Thanks in advance,
    SAN

    Hello.

    Drag table tree and try this code in your jspx

    
                        
                            
                                
                            
                        
                        
                            
                        
                        
                            
                        
                        
                            
                        
                        
                            
                        
                    
    
  • DIF creation Table Type Select = in gR 10, 3

    In a case of very simple example, I have a customers table that I am trying to create a Table Type select in the physical layer.

    Using the administration tool I created 'New physical tabe' and enter select * from customers where region = 'East '.

    If I "update all heads of rank" it shows now 56 lines - which is correct

    If I try 'view data' I get an error

    [nQSError: 17001] Oracle error code: 936, messgae: ORA-00936: lack of expression cal OCIStmtExecute beaked.
    [nQSError: 17010] Prepare the SQL statement failed.

    If I deploy the view I can go to sqlplus and choose in this one.

    I tried table of qualification name and select specific columns - I know that's not a problem of permission and without doubt the fact that there are ranks well confirms it must have generated correct SQL.

    I'm confused - what I'm missing here?

    Hi Tim,.

    You can try to give a few columns

    Select col_name, col_name2, col_name3 customer where region = 'east '.

    and to create all the columns--> right click on--> the new physical column (with the same data type)

    Thank you
    Saichand.v

  • Table tree icons has not erased even after the application of CSS

    Hello

    I need to change the table tree developed and reduced and the head node icon.

    Leaf node icon happens correctly, but the other two are misapplied.

    In the background the old default image becomes redered and in addition to this the newly given image is displayed.

    Here are the .css declarations used to change icons.

    AF|treeTable::expanded-icon{content:URL(/org/CalWIN/UI/superweb/image/yellowBlueMarker-minus_trans.gif);
    background: no ;}
    AF|treeTable::collapsed-icon{content:URL(/org/CalWIN/UI/superweb/image/yellowBlueMarker_trans_plus.gif);
    {Background: none}
    AF|treeTable::leaf-icon{content:URL(/org/CalWIN/UI/superweb/image/blueCircleMarker_trans.gif);
    {Background: none}

    Can anyone suggest a solution for this.

    Thank you
    Praveen.

    Hello

    If you extend an existing skin, try - tr - inhibit: all;

    AF | treeTable: {expanded icon

    -tr - inhibit: all;
    Content:URL(/org/CalWIN/UI/superweb/image/yellowBlueMarker-minus_trans.gif);
    Background: none;
    }

    in case there is a problem with the legacy

    Frank

  • Problem with create table as select (DEC)

    Hello

    We try to data cleaning of huge tables. And a customer of guise is reanme main table to the backup table. Then create a master table in select * backup table with some test.

    Now the problem with create table select, is that it creates the table without indexes and constraints. Is it possible to use the ETG (create the select table) with the same structure that he was the (all index, constriaints).

    Or any other solution to solve this problem?

    Thanks in advance

    Sweety wrote:
    Hello

    We try to data cleaning of huge tables. And a customer of guise is reanme main table to the backup table. Then create a master table in select * backup table with some test.

    Now the problem with create table select, is that it creates the table without indexes and constraints. Is it possible to use the ETG (create the select table) with the same structure that he was the (all index, constriaints).

    Or any other solution to solve this problem?

    Thanks in advance

    No, this is not possible. You need to get the manuscript of dependent object and create it manually.

  • Specify the type of data when using the "CREATE TABLE AS SELECT"?

    In the table creation code I'm trying to create a DATE column called DOB below. However, the resulting DOB column in the condamnes2 table is a Varchar2. How can I specify that I want to be a DATE field DOB? (I know that I can create the structure first and then fill it but this isn't what I want.)

    create the table condamnes2
    SELECT Person_ID,
    decode (year of BIRTH, null, null, to_date (nvl(BIRTHMONTH,1) |)) » /'|| NVL(Birthday,1) | » /'|| NVL (BIRTHYEAR, 1500), ' MM/DD/YYYY')) DOB
    Among the people

    Thank you

    Use the CAST function in your decoding:

    SQL> create table Persons2 as
      2  SELECT Person_ID,
      3         decode(BIRTHYEAR
      4               ,null, cast(null as date)
      5               ,to_date(nvl(BIRTHMONTH,1)||'/'||nvl(birthday,1)||'/'||nvl(BIRTHYEAR,1500),'MM/DD/YYYY')) DOB
      6  from   persons
      7  ;
    
    Table created.
    
    SQL> desc persons2
     Name                                      Null?    Type
     ----------------------------------------- -------- ----------------------------
     PERSON_ID                                          NUMBER
     DOB                                                DATE
    

Maybe you are looking for