Conditionally display the values in the column based on another column

Hello

I'm sure this has been covered before, but I can't find anything appropriate based on the research I've done.

I have 2 attributes in VO.

I have a table that displays this VO.

I still want to display header for both attributes, but I only want to show the value of attribute 1 in a row, if value of Attibute2 = 'I '.

If Attibute2! = 'I', so I want just the column for Attribute1 to be empty space.

I've not yet done anything with conditional expressions, and I wonder if someone could provide a link or a thread which is similar to this issue.

Thank you

Joel

You can do according to the post above, but if you are not interested in changing the original Version and I want to just change the user interface page only, you can do as in the example below:


lines = ' #{bindings. " Employee.rangeSize}.
emptyText = "#{bindings." Employee.Viewable? "{'No data to display.': 'Access Denied.'}".
fetchSize = "#{bindings." Employee.rangeSize}.
rowBandingInterval = '0 '.
selectedRowKeys = ' #{bindings. " Employee.collectionModel.selectedRow}.
selectionListener = "#{bindings." Employee.collectionModel.makeCurrent}.
rowSelection = "single" id = "t1" >

headerText = "#{bindings." Employee.hints.Employeeid.label}.
ID = "c2" >


model = ' #{bindings. " Employee.hints.Employeeid.format}"/ >



headerText = "#{bindings." Employee.hints.Employeename.label}.
ID = 'c3' >



headerText = "#{bindings." Employee.hints.Salary.label}.
ID = "c1" >
*
ID = "ot2" >

model = ' #{bindings. " Employee.hints.Salary.format}"/ >


OutputText for the Attibute1, you can write the EL expression as:
*<>
* value = "#{rank." Attibute2 == "I"? "line. "{Attibute1:"}. "
* id = "ot2" > *.

I hope this helps.

Thank you
Nini

Tags: Java

Similar Questions

  • How to not display the column heading in the table view?

    I don't want to display the column header in the table display, how I can make?

    If you use JavaFX 8, you can use the following text in an external style sheet:

    .table-view .column-header-background {
      -fx-pref-height : 0 ;
    }
    

    If you use JavaFX 2.2, the - fx-pref-height attribute is not available in css, so I think that you must resort to a search:

    final Region tableHeader = (Region)table.lookup(".column-header-background");
        tableHeader.setPrefHeight(0);
    

    As always, I am obliged to point out that I don't really like the research. Sometimes, they seem to be the only way, however.

  • Display the columns or headers folder

    Hello

    Is pls. possible to show only the line with the results?  I don't want the columns or headers folder.

    TXS for any help.

    Antonio

    • Create a table view
    • Go to the layout editor and click Properties Column and measure. Uncheck 'display title '.
    • Go to the properties of the Table view. Specify a value of 1 in the "lines per Page.

    Select this option if correct/useful.

  • Display the column name of the column more recently updated

    I wonder if it is possible to display the name of the column in the column most recently updated in a table.

    Example:

    Emp table

    Name

    Height

    Weight

    Age

    Update_Date

    Update_Column

    Original record (03/20/14)

    Name size weight Age Update_date Update_Column

    John                                                 03/20/14          Name

    Then someone comes and update the height on 22/03/14:

    Name size weight Age Update_date Update_Column

    John 5'9 03/22/14 height

    And the Update_date and the Update_column would change again if someone came and put a value for the age. And so on.

    Is this possible?

    Also, if the above is possible, would it be possible to display the name of extreme right column if a user updated several columns at the same time?

    Example:

    User updates the sub-folder:

    Name size weight Age Update_date Update_Column

    John 5'9 03/22/14 height

    And adds weight and age at the same time on 24-03-14:

    Name size weight Age Update_date Update_Column

    John 5'9 150 31 03/24 / 14

    The Update_Column would display age because it is the furthest to the right. (Think by reading from left to right, the column that has been updated if the extreme right)

    So to sum things, I need to be able to display Updated_date (which will be the date of the day when the record is the last updated) and Updated_Col (which is the column name of the column was last updated, and if multiple columns are updated then display that value has been updated last in)

    I hope that the examples help to clarify things.

    Thank you

    Steven

    I think I found a solution.

    delimiter //
    create table a (
      id int (10) unsigned auto_increment,
      a int(10),
      b int(10),
      update_date datetime NULL,
      update_column varchar(16) NULL,
      primary key (id)
    )//

    create trigger bu_a before update on a for each row begin
      set NEW.update_date = NOW();
      set NEW.update_column = NULL;
      -- you need to start with the rightmost column if you want
      -- that matched with the highest priority
      if OLD.b != NEW.b then
       set NEW.update_column = "b";
      elseif OLD.a != NEW.a then
       set NEW.update_column = "a";
      end if;
    end //

    TEST

    insert into a (id,a,b) values (1,1,1), (2,1,1), (3,1,1), (4,1,1)[
    update a set b = 2 where id = 2;
    update a set a = 2 where id = 3;
    update a set a = 2 where id = 4;
    update a set b = 2 where id = 4;
    select * from a;

    DISPLAY

    ID  A   B   UPDATE_DATE                    UPDATE_COLUMN
    1   1   1   (null)                          (null)
    2   1   2   March, 24 2014 23:22:33+0000      b
    3   2   1   March, 24 2014 23:22:33+0000      a
    4   2   2   March, 24 2014 23:22:33+0000      b

  • How to display the columns in the wise line in pl sql

    I have to display some values of constant wise online using the select statement. For example, after query both display constant columnwise...

    Select 83: 42 double;

    83 42

    I want to display the rowwise... IE

    Constant
    83
    42

    I can create temporary table and add them then ask, but there should be a way I can use double to show the values line wise. something like

    Select a double where an in (83, 42)

    Appreciate your help.

    Hello

    Here's one way:

    SELECT     column_value    AS cnstnt
    FROM     TABLE (sys.odcinumberlist (83, 42))
    ;
    

    CONSTANT is a keyword from Oracle is not a very good name for your own column.

  • Default value for the prompt based on another request

    Hello:

    I have a requirement where I need to define default values of messages based on another request.

    The guest is a quick Date.

    I have tried using the presentation variable and sql query writing, where is written "WHERE promo_id = @{variable}" "

    but it still does not.

    Please let me know a workaround for this problem.

    Thank you.

    -Vinay

    What determined your operator BETWEEN End Date? I guess it's variable. In addition, is the second report on the same page or another page of dashboard? Assuming that the two reports are on the same page, do the below. If this isn't the case, you can use the same guests on the second page of dashboard. Define the scope of "dashboard" and the selection of the user is wearing on the second page.

    The easiest way is to have 3 guests of dashboard: Promo_ID, Start_Dt and end_date. assign to these guests PVs: pvPromoID, pvStartDate and pvEndDate, respectively.

    Filter a report on pvPromoID and pvStartDate.

    The second report on the pvPromoID of the filter and use pvStartDate in the filter of the two report Date column. Assuming that the values BETWEEN are variable, so you can write the following on the column of your second report:

    "Table name". " Date ColumnName.<= '@{pvstartdate}'="" and="" table="" name"."date="" column="" name"=""><>

    And your Promo column, use the filter "Table name". "Class = ' @{pvPromoID}"

    When the user selects the Promo ID, Start Date and end Date in the guests, the first and second reports will be filtered accordingly.

  • Why only a Yahoo Group displays the column group name?

    I belong to several Yahoo groups and get individual emails from 3 of them. They all worked well until May 8, 2014, when the Freex news group began to display only "[email protected]" in the column. It's always like that. I can't be sure it's a Yahoo problem, like the other groups I am a member of display the senders display name and e-mail address.
    The attachment is a snip of the CT showing how it was and how it has changed.
    Please tell us how to get back to the display names and addresses.

    locate this address in your address book, and then delete.

  • Display the column names in a table

    Stupid question time...

    How to display the names of columns in a table on the front panel? I thought by right clicking on the table would give me a selection to view.

    Hi Eric,.

    Right-click the table and select "Show column headers" visible elements "->":

  • Display the column in the table, but not in the IR

    Hi guys,.

    [apex Oracle 11 g 4.2]

    Is there a way to display a column in a graph that is generated by the IR and is not in the table-IR?

    I know I can chosse columns in the IR and choose to not display this column. It's going to work.

    But if I put the column 'hidden' in the attributes of IR Section I can't create a chart out of it.

    So I want to create a graph of the same data that the (default) column is hidden.

    THX in advance Thorsten

    There is no way to do it.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Apress.com/9781430235125
    http://Apex.Oracle.com/pls/Apex/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • Cannot display the column format in SQLPLUS.

    Hi all

    Why my sqlplus just displays # when I run sql > column group # format a20;

    SQL > column group # format a20;
    SQL > select group # log v$.

    GROUP #.
    ----------
    ##########
    ##########
    ##########
    ##########

    Help, please!
    Thank you!

    Welcome to the forums!

    Try:

    COLUMN group# FORMAT 9999
    

    You try to provide a column for a VARCHAR2 format, but the data type is NUMBER.

  • Display the description based on lookup_code

    I have a drop down field (: P2_TEXT_FOUR) and a text field (: P2_TEXT_FIVE). I also have a table of form of choice in a different tab.

    My question is when ever, I chose a drop down value, I need to display the description of this value from the search screen.
    What I chose from the dropdown field (: P2_TEXT_FOUR) I need to display the description of the lookup_code value in (: P2_TEXT_FIVE).

    Can anyone help?

    See the example:
    http://Apex.Oracle.com/pls/OTN/f?p=23974:1:1821547540657661:no
    JC

    This example of the great and end Carl B site is stil one of the best around: http://apex.oracle.com/pls/otn/f?p=11933:63

  • Filter the rows based on another column

    Hello

    I have a table like this:

    user_idteamsla_teamrownum
    11one01
    22one02
    33b13
    44b14
    55c3

    5

    I want a list of the first order of 3 users of sla_team.

    If 2 or more users have the same sla_team, must list both of them.

    In this case, I want to return user_id: 11, 22, 33, 44

    A way to do it is like this:

    Select *.

    table

    where sla_team < = (select max (sla_team) in the table where rownum < = 3)

    But my table is bigger and more complex query.

    Any other sugestion?

    Thank you and sorry for my bad English.

    Hello

    Whenever you have a problem, please post a small example data (CREATE TABLE and only relevant columns, INSERT statements) of all the tables involved, so that people who want to help you can recreate the problem and test their ideas.

    Also post the exact results you want from this data, as well as an explanation of how you get these results from these data, with specific examples.

    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: Re: 2. How can I ask a question on the forums?

    This sounds like a job for a Query of Top - N, like this:

    WITH got_r_num AS

    (

    SELECT table_x. *- or whatever the columns that you want to

    , EVALUATE () DURING (ORDER BY sla_team) AS r_num

    FROM table_x

    -WHERE... - If you need any filtering, put it here

    )

    SELECT *- or the list of all columns except r_num

    OF got_r_num

    WHERE r_num<=>

    ORDER BY r_num

    ;

  • Display the columns on index

    I have a list of indexes that are not used.
    I want to do is make a query that shows that these indices are on the columns.

    The results would be so: INDEX_NAME TABLE_NAME COLUMN_NAME

    I appreciate any help on this.
    SELECT TABLE_NAME,COLUMN_NAME,COLUMN_POSITION FROM DBA_IND_COLUMNS WHERE INDEX_NAME='INDEX_NAME';
    
  • Update of the table based on another

    Hello

    I'm trying to update a date column in a table based on another table. There is a unique ID in each table that identifies and connects each person:
    update patient_bu a set a.entry_date = (select b.entry_date from CLIENT_MED_DT b where a.id = b.id)
    This is the error:

    ORA-01427: einreihig subquery returns multiple rows


    The problem (I think) is that the select statement back several dates for records people. There are some people / records that have multiple entry dates, but I'm only interested in the most recent date.

    How can I update this table with only the most recent date?

    Thanks for any help,
    Matt

    Oh well, I forgot the UPDATE clause:

    SQL> create table patient_bu
      2  (id number
      3  ,entry_date date);
    
    Table created.
    
    SQL> create table client_met_dt
      2  (id number
      3  ,entry_date date);
    
    Table created.
    
    SQL> merge into patient_bu a
      2  using (select id
      3               ,max(entry_date) max_date
      4         from   client_met_dt
      5         group  by id
      6        ) b
      7  on    (a.id = b.id)
      8  when  matched then update
      9        set a.entry_date = b.max_date;
    
    0 rows merged.
    
  • How to display the value of an element based on another element

    Hello
    In a page, I have to display name for the corresponding id displayed in id element. I can write a query based on the id and full name as soon as I enter this item.if, so is there any properties that I need? I'm looking for just post_text_item functionality in forms?

    Thank you
    Manoi

    Hello Eric,

    You must alert gReturn instead of get.
    But it is your call to this public page? And Page 0 requires an authorization?

    Greetings,
    Roel

    http://roelhartman.blogspot.com/

Maybe you are looking for