ContextMenu on the line of the Table and ContextMenu on a table column

jdev12.1.3

I am able to use < f: facet = 'contextMenu' name > with af:table right-click on a table row to display the menu.

I am also able to use < af:showPopupBehavior popupId = "p2" triggerType = "contextMenu" / > on af:column right-click on the column to display the menu.

But when I have both on, do a right click on a row and column do not work.

My question is: is it possible to have do a right-click on the column and right-click on the line on the same table?

Thank you.

I'm sorry. I meant the context menu on the text in the table cell.

I managed to make it work.

Here's what I did:

...

... ...

.....

...

Tags: Java

Similar Questions

  • How to disable the right click option resize on the table column header?

    Hi all

    Please let us know how to disable the right click option resize on the table column header.

    The problem is that when I right click on the header of the column, the column is selected and the context menu with options like type, resize columns, columns, etc... is popping. We want to disable the option of re-size column.

    We create a link by program the values in the table (do not use Bc4J) and the version of Jdeveloper's 11.1.2.2

    Thanks in advance,

    -Vignesh S.

    So who did not observe here is that the table is wrapped in a panelCollection and who is in fact source menu.  However, the content of the context menu can be controlled through the featuresOff of the panelCollection component attribute

  • How to get the names of the table columns in the quick dashboard

    How to get the names of the table columns in the quick dashboard


    Thanks and greetings
    ------------------------
    Kishore P

    Make a prompt like:

    SELECT case when 1 = 0 then 'D0 time. " "" T02 by month name "other" 'D2 market' '. "" M04 region' ' the end 'Sample Sales' UNION ALL SELECT case when 1 = 0 then 'D0 Time. " "" T02 by month name ' else ' 'Time D0. "" T02 by month name ' ' the end 'Sample Sales.

    Put the name of column in single quotes.

    Make your rank as a function:
    Rank ('F1 income'. "" Recipes 1-01 (after all) "by @{pColumn} {'D0 time'. ({"" T05 annually name '})

    It works fine for me

    concerning

    John

    http://obiee101.blogspot.com

  • How to save the table column and row headings

    I have a table where I activated the column and row headings.  Once the table is loaded with data, I would like to save the contents of the table, including the column and row headings in a text file.  The crux of "value" property returns only the content of the table, not the row and column headers.  I could use "header line chains []" and '[] column header chains' property nodes as well, but I'm in the island there is an easier way.  Looks like adding the headers of lines would be difficult.  Any ideas?

    Thanks in advance.

    Here is a way. The construction with the empty constant is to provide to the left corner of the table where there is no data.

  • table col name get the details of the table column and inserting of values depending on the data type of the column

    Hello

    I am train to write a procedure where I would spend the table as a parameter name and then the code would determine it is column names, and then he would insert records in each column depending on the data type. could someone help me with this.

    Thank you

    SM

    Hello

    Perhaps you need to dummy data just for the table.

    Here is my exercise

    create or replace
    procedure generate_rows(p_table_name varchar2, p_count number)
    is
      --
      function insert_statement(p_table_name varchar2) return clob
      is
        l_columns clob;
        l_expressions clob;
        l_sql clob default
          'insert into p_table_name (l_columns) select l_expressions from dual connect by level <= :p_count';
      begin
        select
          -- l_columns
          listagg(lower(column_name), ',') within group (order by column_id),
          -- l_expressions
          listagg(
            case
            when data_type = 'DATE'
              then  'sysdate'
            when data_type like 'TIMESTAMP%'
              then  'systimestamp'
            when data_type = 'NUMBER'
              then  replace('dbms_random.value(1,max)',
                      'max', nvl(data_precision - data_scale, data_length)
                    )
            when data_type = 'VARCHAR2'
              then  replace(q'|dbms_random.string('a',data_length)|',
                      'data_length', data_length
                    )
            else
                    'NULL'
            end, ',') within group (order by column_id)
        into
          l_columns,
          l_expressions
        from user_tab_columns
        where table_name = upper(p_table_name);
        --
        l_sql := replace(replace(replace(l_sql,
          'p_table_name', p_table_name),
          'l_columns', l_columns),
          'l_expressions', l_expressions);
        -- debug
        dbms_output.put_line(l_sql);
        --
        return l_sql;
      end;
    begin
      execute immediate insert_statement(p_table_name) using p_count;
    end;
    /
    
    -- test
    create table mytable(
      id number(4,0),
      txt varchar2(10),
      tstz timestamp with time zone,
      dt date,
      xml clob
    )
    ;
    set serveroutput on
    exec generate_rows('mytable', 10);
    select id, txt from mytable
    ;
    drop procedure generate_rows
    ;
    drop table mytable purge
    ;
    
    Procedure GENERATE_ROWS compiled
    Table MYTABLE created.
    PL/SQL procedure successfully completed.
    
    insert into mytable (id,txt,tstz,dt,xml) select dbms_random.value(1,4),dbms_random.string('a',10),systimestamp,sysdate,NULL from dual connect by level <= :p_count
            ID TXT
    ---------- ----------
             3 WnSbyiZRkC
             2 UddzkhktLf
             1 zwfWigHxUp
             2 VlUMPHHotN
             3 adGCKDeokj
             3 CKAHGfuHAY
             2 pqsHrVeHwF
             3 FypZMVshxs
             3 WtbsJPHMDC
             3 TlxYoKbuWp
    
    10 rows selected
    
    Procedure GENERATE_ROWS dropped.
    Table MYTABLE dropped.
    

    and here is the vision of Tom Kyte for the same https://asktom.oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:2151576678914

    Edit: to improve my code, it must use p_count as bind as Tom.

  • a list of all the tables, columns and their consntraints in the database

    Hello

    I need to write sql code which considers a list of all tables in the database, their columns and the primary or foreign key for each column (if any) and the refrence for each foreign key column.

    Any ideas how ro?

    DROP TABLE table_b;
    DROP TABLE table_a;
    --
    CREATE TABLE table_a (
     CONSTRAINT pk_table_a PRIMARY KEY (column_b)
    ,column_a INTEGER
    ,column_b INTEGER
    );
    --
    CREATE TABLE table_b (
     column_c INTEGER
    ,column_d INTEGER CONSTRAINT fk_table_a REFERENCES table_a(column_b)
    );
    --
    
    SELECT  utc.table_name
           ,utc.column_name
           ,CASE WHEN uc.constraint_type = 'P' AND position IS NOT NULL THEN uc.constraint_name END primary_key
           ,CASE WHEN uc.constraint_type = 'R' AND position IS NOT NULL THEN uc.constraint_name END foreign_key
           ,CASE WHEN uc.constraint_type = 'R' AND position IS NOT NULL THEN uc.r_constraint_name END referenced_key
    FROM    user_tab_cols utc
            LEFT JOIN user_constraints uc
              ON  (utc.table_name = uc.table_name)
            LEFT JOIN user_cons_columns ucc
              ON(ucc.table_name = utc.table_name
                   AND utc.column_name = ucc.column_name
                   AND uc.constraint_name = ucc.constraint_name)
    WHERE   utc.table_name IN ('TABLE_A','TABLE_B');
    

    TABLE_NAME COLUMN_NAME PRIMARY_KEY FOREIGN_KEY REFERENCED_KEY

    TABLE_A COLUMN_B PK_TABLE_A

    TABLE_A COLUMN_A

    TABLE_B COLUMN_D FK_TABLE_A PK_TABLE_A

    TABLE_B COLUMN_C

    If you want to 'improve' the referenced_key column for the column referenced actually, you need to join user_cons_colums once again and use the column position.

    Concerning

    Marcus

  • Select the table column group and generate a sequence number

    I have to select data from a table column group and generate a sequence for every reset of the sequence from 1 to leave.

    For example:

    Data:
    Col1 Col2 Col3 Col4
    A NA KA-2009-08-13
    B NA KA-2009-08-13
    C NA KA-2009-08-13
    A NA KA-2009-08-13
    B NA KA-2009-08-13
    A NA KA-2009-08-13

    Expected results of the Select statement:
    Col1 Col2 Col3 Col4 Seq_No
    A NA KA-2009-08-13 1
    A NA KA-2009-08-13 2
    A NA KA-2009-08-13 3
    B NA KA-2009-08-13 1
    B NA KA-2009-08-13 2
    C NA KA-2009-08-13 1

    How can it be possible with a SELECT statement? Is it possible to assign the following numbers for a group of columns and put it back when it changes? In the above example, all columns are the key to generate the seq number

    I know that this can be done using procedures stored and that is how I do it now by introducing a temporary table.

    Can someone help me with this? Please let me know if the question is too vague to understand!

    Thank you
    Nachi

    Use the row_number() analytics.

    Ravi Kumar

  • For the MONEY and to break on a column SQL query

    Hello

    I have a situation where the data in the table are as below

    AA

    BB

    1

    FG

    1

    FG

    1

    FG

    2

    SS

    1

    FG

    I need to write a sql query that would give output like below. Basically, it must break BB of the column and the value of the sum up to what it breaks.

    AA

    BB

    3

    FG

    2

    SS

    1

    FG

    Please suggest.

    Thank you

    Shankar

    Hello

    770914 wrote:

    Hello

    I have a situation where the data in the table are as below

    AA

    BB

    1

    FG

    1

    FG

    1

    FG

    2

    SS

    1

    FG

    I need to write a sql query that would give output like below. Basically, it must break BB of the column and the value of the sum up to what it breaks.

    AA

    BB

    3

    FG

    2

    SS

    1

    FG

    Please suggest.

    Thank you

    Shankar

    Remember, there is no order integrated to the rows in a table.  The table you have posted is exactly the same as:

    AA bb

    --    --

    1 FG

    1 FG

    2 SS

    1 FG

    1 FG

    and both are exactly the same as:

    AA bb

    --    --

    2 SS

    1 FG

    1 FG

    1 FG

    1 FG

    If you use words like 'first', 'previous' or 'row' when it comes to lines, then we must define what these words mean.  This is usually done by making reference to a column in the table.  For example, if you had a column called r_num, like this:

    AA bb r_num

    --    --    -----

    1 FG 1

    1 FG 2

    1 FG 9

    2 SS 10

    1 FG 10.5

    Then, it would be wise to say things like 'the table starts with 3 lines consecutive "FG", followed by "SS".  After that there is another "FG", which is the last line in the table, WHEN TRIE BY R_NUM.   If the part about "WHEN SORTED BY R_NUM" is not known, the words 'begins '. "consecutive", 'followed', 'after' and 'last' have no meaning.

    If (and only if) you have somehting like r_num in your table. Then you can get the resutls you want like this:

    WITH got_group_num AS

    (

    SELECT aa, bb, r_num

    ROW_NUMBER () OVER (ORDER BY r_num)

    -ROW_NUMBER () OVER (PARTITION BY bb

    ORDER BY r_num

    ) AS group_num

    FROM table_x

    )

    SELECT SUM (aa) AS total_aa

    ,         bb

    OF got_group_num

    GROUP BY bb

    group_num

    ORDER OF MIN (r_num)

    ;

  • How to set different color for the table column header

    Can I set different colors for the 4 following as being attached.

    -color of the header text

    -the head of the column of the background color

    -color of the text of the content

    -color of background content

    The value of the cluster - 2, -2 to define all of the cells,

    Then go back and the cluster the value-1, -2 to simply set the line header.

    (If you also had a column of row headers, then -2,-1 would set them.  Course the upper left corner which is the intersection of the column header and row header will change with any of them.)

  • PPR on the table column

    JDev 11.1.1.6.0 BPM

    I have two country of components selectOneChoice and State. If I select a country from the country LOV, the corresponding States is filled through PPR. I'm in the States Get accessor check which country is selected and defining the list accordingly. It works very well. Now, I have a table in which there is a column of States for which the condition is the same. States should be a LOV and values must be filled based on the selection of countries. I used the same method of getter and PPR for the column of the table indicates which is a component of selectOneChoice. But it does not work as expected. It is not of any value.

    OK I solved it myself

    I just add a value change listener and programmatically set the partial relaxation for the table. And that did the trick

  • Stop in the middle of the table column width setting

    I set some tables previously built.

    When you adjust the width of columns, some tables develop the center column and others on the left side of the column.

    Can someone tell me where the setting is for this?

    Thank you very much

    pkahrel wrote:

    Danny meant that you should look at paragraph of parent of the table, not the table itself.

    That's it, thank you. I was struggling to think what to call it.

  • Sum of columns together in the responses, and then calculated off summary columns

    I have three questions answers (with 4 columns) that I have gathered the results for:

    Four columns are: campaign # promoted # Respones, # Respones promoted

    Query 1:

    Campaign, # promoted, 0, 0

    Query 2:

    Campaign responses #, 0, 0,.

    Query 3:

    Campaign, 0, 0, # promoted Respones

    My query returns the following (assuming that the campaign code is ABC) 3 rows:

    Campaign of # Promoted # Responses # Promoted answers
    ABC10000
    ABC0120
    ABC009

    I want to put in place so that it adds campaign to get a row of results as follows:

    Campaign of # Promoted # Responses # Promoted answers
    ABC100129

    I can get this result using the conversion to a PivotTable (won't go thought road if possible because I have other calculations that I need to add).   Once I get this summary to a single row result I then do a few such analyses that create:

    1. Response % (Respones # / # promoted)
    2. Promoted to the rank of % (# promoted answers / # promoted)

    When I add the calculatinos to the percentages to the United query I get null or zero for my results.   I used the Add button to insert a calcuation and then I used the following formula: saw_2 / saw_3

    Here's what I would preferably:

    1. Sum of answers (not a pivot table) Table columns.
    2. Add columns calculated at United query that will produce results based on the combined pivot columns
    3. If I use the PivotTable, and then how to get the values calculated for work

    Thank you...

    Ben,

    Try to use the rule of aggregation on the columns in the Table view and see if that makes a difference.

    I just tried this and the SUM of each of the criteria provided the results I wanted, which in turn you are looking for.

    If nothing works for you send me the screenshot of what you are trying to do at vijaybez at gmail and I can understand what is happening properly...

  • Title of the report based on the value of the Table column

    Hello

    We use OBIEE 10 g.

    We have a Table and a chart based on the table in a report.

    Assume that the table has two columns, ID and NAME

    can we refer dynamically the value of the column NAME in the title of the report?
    for example
    the table has

    ID | NAME
    -------------
    123 | GS

    now, we would like the title to appear as

    Report for the GS

    where GS is dynamic

    Use the narrative mode and refer to the column that you want to display using @2 and place it instead of view title.

    Thank you
    Isabelle Renon

    Published by: Rajesh Raoul - BI on May 2, 2013 05:59

  • Impossible to change the table column heading alignment in 11.1.1.5

    11.1.1.5 work.

    I want to align to right one of my headers of columns in the Table view. I'm going in the criteria, the column properties tab. Format of the column and clicking the Format icon next to the column heading box. I'm on the column properties dialog box, change the background color, adding a border and right Horizontal alignment setting. See the table in the results, I see the background color of the column heading, and I see the border. However, the column header text is always aligned to the left.

    What Miss me it please?

    Hi Mark,

    You do not have lack of what, whether Oracle has missed this basic functionality! This is a bug :-(

    Bug 12696084: FORMAT HEADINGS > HORIZONTAL ALIGNMENT does NOT WORK IN THE TABLE OR the PIVOT VIEW

    Rgds,
    DpKa

  • Grant select privilege on the table column

    Hello
    I think that it is not possible to give the right to select level of column in a table.

    by example-grant select (col1, col2) on table1 to User1;

    Can anyone suggest what might be the way to achieve (apart from creating a view on the table).

    Hi, Anit,

    Anit says:
    Hi Frank,.
    Thanks for the reply. Nothing bad to see.

    Then use a notice. It is simpler and more robust.

    As that I knew WHAT EVP is used for the column data hide with a null value or other values. do not hide the entire column of the selection operation. Please correct me if I'm wrong.

    Maksing the column with a null value or another value is hide the column.
    Do what you should always do whenever you have a question. Post some sample data (CREATE TABLE and INSERT statements) and the results desired from these data. In this case, after an authorized user (that is, a user with all privileges) must get results and results that a user with lesser forge privileges.

    A view (or a copy of the table, as a materialized view) is the only way I know to prevent users to know that there is a column (for example) called credit_card_num.
    Use row-level security, you can return NULL when users not allowed to reference credit_card_num, or you can trigger an error if they try to refer to this column.

  • JDeveloper 10.1.3.4: text-align for the table column has no effect

    Hello

    I use JDeveloper 10.1.3.4. In a table, I have a column that contains the numbers, which are aligned to the left by default:
    Applied
    ---------------
    $50.00
    $2,160.00
    $50.00
    ---------------
    $2,260.00
    I want to be aligned with the right to examine more carefully:
    Applied
    ---------------
             $50.00
          $2,160.00
             $50.00
    ---------------
          $2,260.00
    Or better yet, have the cell with the longest string aligned to the Center, and all the other cells in alignment with it by the decimal point:
        Applied
    ---------------
          $50.00
       $2,160.00
          $50.00
    ---------------
       $2,260.00
    I looked in the property inspector, and the only thing that seems closest to the goal is text-align. I put this attribute on the right (text-align: right) for the column and the outputText, but has no effect. Everything is always embedded on the left. How to do things?

    Thank you!


    Newman

    Hello Newman,

    as I recall, I did using the formatType property = 'number' of the component of the column

    Kind regards

    Branislav

Maybe you are looking for