Connect each value in a column to another worksheet

Hi all

I'm looking for a way to connect different value in a column with another page. If anyone can tell me how, that would be appreciated!

Thank you!

Eric

for example, the value I want to make a link to the page 10 is called DIRECTORS

I did not understand what you mean by that, administration page 10 named or don't you have an element that must be defined by the value of this column when linking it?

In regard to showing her the "GLE1N1_NOM" as a link to the page 10

select * from (
select
   '<a href="f?p='||:APP_ID||':10:'||:APP_SESSION||'">'||"GLE1N1_NOM"||'</a>' as "Direction",
..

I do not see why you use the external selection, but mayb you intend to use it for something else later

_Change the Tye of column of the 'Direction' Standard report column_ column (otherwise you won't see any link, but just the text)

Tags: Database

Similar Questions

  • How to map the entered value of attribute column to another attribute in the table for each row.

    Hi Experts ADF,

    JDev 12 c.

    I create a button and a table below. If the user clicks on the button create, I invoke CreateInsert. The new line now appears as an editable fields.

    So I suppose I have a column that is displayed in editable mode. If the user enters values in that. Has another column B whose value is not displayed in the UI must have the same value as the column.

    This occurs for each row added. During the click on save if user entered 2 in column A, then the value in column B must be same 2.

    Thank you

    Roy

    There is more than one way, for example:

    Generate ViewRowImpl Java class (with generate audited accessors) you will get for an attribute setter.

    Change the Set accessor to set the attribute B (IE, calling setAttribute ("B", value)) after setting a value

    OR, write valueChangeListener for inputText representative and set the B attribute to the same value

  • Formula that multiplies the value in each cell in a column with another cell

    Hello

    is it possible to do a simple way?

    I need a formula that will multiply each cell in a column, one by one, with another cell. And then a way to fill the 32 raws and 12 columns.

    That's how I explain what I need simplified.

    G1 = ((chaque cellule de B1:B32, un par un) * E1) + (( B1:B32each cell, one by one) * E2) +...

    and then that again and again for coulumn 12.

    G1 to G12.

    G2 would be = ((chaque cellule de C1:C32, un par un) * E1) + ((each cell c1:C32, one by one) * E2) +... and so on...

    It would take weeks to do this manually.

    It is, for me, very complicated and my brain can not understand.

    very grateful for the help with this one.

    Thank you

    /Joakim

    Hello

    I can't imagine the structure of your table according to your descriptions, but formulas would be very simple if you calculate:

    G1 = (B1*E1 + B2*E1 + ... + B32*E1) + (B1*E2 + B2*E2 + ... + B32*E2) + ...
       = (B1 + B2 + ... + B32) * (E1 + E2 + ...)
    

    For example,.

    Table 1 (excerpt)
    
    A1 
    A2 
    A3 
    A4 
       
    B1  =RANDBETWEEN(0,5)
    B2  =RANDBETWEEN(0,5)
    B3  =RANDBETWEEN(0,5)
    B4  =RANDBETWEEN(0,5)
       
    C1  =RANDBETWEEN(0,5)
    C2  =RANDBETWEEN(0,5)
    C3  =RANDBETWEEN(0,5)
    C4  =RANDBETWEEN(0,5)
       
    D1 
    D2 
    D3 
    D4 
       
    E1  =RANDBETWEEN(0,5)
    E2  =RANDBETWEEN(0,5)
    E3  =RANDBETWEEN(0,5)
    E4  =RANDBETWEEN(0,5)
       
    F1 
    F2 
    F3 
    F4 
       
    G1  =SUM(B1:B32)*SUM(E)
    G2  =SUM(C1:C32)*SUM(E)
    G3 
    G4 
    

    * Table is designed with numbers v2.

    Kind regards

    H

  • ADF: Change of color for each value in the column, according to the State

    Hello world

    I use Jdev 11 G.
    I created an ADF only read the table.
    table has 5 columns. (empno, ename, sal, comm, address).

    If comm < 0, then I need to display it in the color blue
    otherwise have to display in red color.

    Note: comm value can be decimal (float).
    How to get there?
    All responses will be very grateful.

    Thank you...

    Something like that?

    cell color

    Arun-

  • Update the value of the column based on another value of the column to another table

    Hi all

    I have something very confused me and need your help.

    Having two tables A and B.

    Table A have 2 column (+ id + and desc1)

    Table B have column 2 also (+ transnum + and desc2)

    Now, I want to update the column desc2 of table B identical desc1 of table was where transnum of Table B same as the id of the table has.

    I use this SQL

    update of a2 set a2.desc2 = a1.desc1 of a2 on a2.transnum = a1.id inner join a1

    but this error occurs

    Error from line 5 in order:
    update of a2 set a2.desc2 = a1.desc1 of a2 on a2.transnum = a1.id inner join a1
    Error in the command line: 5 column: 35
    Error report:
    SQL error: ORA-00933: SQL not correctly completed command
    * 00933. 00000 - "command not properly ended SQL."
    * Question: *.

    * Action. *

    Hope someone can help me. TQ for help...
    SQL> create table a1 (id number(2),des varchar2(10));
    
    Table created.
    
    SQL> create table b1 (transnum number(2),des varchar2(10));
    
    Table created.
    
    SQL> insert into a1 values (1,'maran');
    
    1 row created.
    
    SQL> insert into b1 values (1,'ram');
    
    1 row created.
    
    SQL> commit;
    
    Commit complete.
    
    SQL> update b1 set des=(select des from a1 where b1.transnum=a1.id);
    
    1 row updated.
    
    SQL> select * from b1;
    
      TRANSNUM DES
    ---------- ----------
             1 maran
    
  • How to upgrade a minimum value of column column in another table?

    Hi all

    I created a few tables as below, and it need to update a column in a table with a minimum value of the column of another table...

    Scenarios explained as follows:
    CREATE TABLE T_20 (CONTROL NUMBER(10) NOT NULL,
                                PO NUMBER(10) NOT NULL,
                                AMENDNO NUMBER(3) NOT NULL,
                                FACTOR VARCHAR2(3) NOT NULL,
                                COMMENT_X VARCHAR2(40),
                                FLAG VARCHAR2(1))
    
    
    SQL> alter table t_20 add constraint t_20_pk primary key (control, po, amendno, factor);
    
    SQL> DESC T_20;
     Name                                      Null?    Type
     --------------------------           -------- --------------
     CONTROL                           NOT NULL NUMBER(10)
     PO                                     NOT NULL NUMBER(10)
     AMENDNO                          NOT NULL NUMBER(3)
     FACTOR                             NOT NULL VARCHAR2(3)
     COMMENT_X                                      VARCHAR2(40)
     FLAG                                                 VARCHAR2(1)
    
    Table altered.
    
    CREATE TABLE T_30 (CONTROL NUMBER(10) ,
                                PO NUMBER(10) ,
                                AMENDNO NUMBER(3) ,
                                FACTOR VARCHAR2(3) ,
                                AMOUNT NUMBER(10,2),
                              USER_NAME VARCHAR2(4))
    SQL> /
    
    Table created.
    
    SQL> INSERT INTO T_20 VALUES(101,1000,01,'MSC','NO COMMENT','Y')
      2  /
    
    1 row created.
    
    SQL> INSERT INTO T_20 VALUES(101,1000,02,'MSC','NO COMMENT','Y')
      2  /
    
    1 row created.
    
    SQL> INSERT INTO T_20 VALUES(101,1001,00,'NDP','NO COMMENT','Y')
      2  /
    
    1 row created.
    
    SQL> INSERT INTO T_20 VALUES(101,1001,01,'NDP','NO COMMENT','Y')
      2  /
    
    1 row created.
    
    SQL> INSERT INTO T_20 VALUES(102,1002,00,'ABC','NO COMMENT','Y')
      2  /
    
    1 row created.
    
    
    SQL>  INSERT INTO T_30 VALUES(101,1000,NULL,'MSC','400','A')
      2   /
    
    1 row created.
    
    SQL>  INSERT INTO T_30 VALUES(101,1000,NULL,'MSC','500','S')
      2   /
    
    1 row created.
    
    SQL>  INSERT INTO T_30 VALUES(101,1001,NULL,'NDP','600','I')
      2   /
    
    1 row created.
    
    SQL>  INSERT INTO T_30 VALUES(101,1001,NULL,'NDP','700','R')
      2  /
    
    1 row created.
    
    SQL> INSERT INTO T_30 VALUES(102,1002,NULL,'ABC','800','L')
      2  /
    
    SQL> SELECT * FROM T_20
      2  /
    
     CONTROL     PO         AMENDNO      FACTOR     COMMENT_X         F 
    ----------         ----------    ----------        --------          --------------            ---- 
     101       1000          1       MSC       NO COMMENT           Y 
     101       1000          2       MSC       NO COMMENT           Y 
     101       1001          0       NDP       NO COMMENT           Y 
     101       1001          1       NDP       NO COMMENT           Y 
     101       1002          0       ABC       NO COMMENT           Y 
    
    SQL> SELECT * FROM T_30;
    
       CONTROL         PO     AMENDNO         FAC     AMOUNT  USER                            
    ----------      ---------   ----------   ---      ----------      ----                            
           101         1000        null         MSC        400      A                               
           101         1000        null        MSC        500       S                               
           101         1001        null         NDP        600      I                               
           101         1001        null         NDP        700       R                               
           101         1002        null        ABC        800       L                               
    NOW I WANT TO UPDATE T_30 THAT LOOKS AT BELOW:

    By top T_30 initially AmendNo pass is null in T_30. Now I want to update
    column based on a minimum value of AMENDNO in the column T_20
    best way I can explain is:

    In the table T_20
    For CONTROL 101-> there are two numbers with 1000 but with different Amendno like 1, 2 in.
    and
    In the T_30 Table for CONTROL 101-> there are two IN. with 1000 but currently null. REQUIREMENT IS NOW
    THE TWO DOCUMENTS SHOULD BE UPDATED WITH MIN (AMENDNO) FOR THIS CONTROL T_20. IN THIS CASE FOR THIS CONTROL
    101 MIN (AMENDNO) IS '1' (1, 2)

    SO 101 RECORDS (BOTH) OF NOW T_30 SHOULD BE UPDATED WITH '1' AS AMENDNO

    Once again 101 now have one another IN '1001' with two different 0.1 IN. now T_30 AmendNo should be updated with min (0.1) which is
    '0'

    production is expected to be lower after update:
    SQL> SELECT * FROM T_30;
    
       CONTROL      PO              AMENDNO  FAC     AMOUNT      USER                            
    ----------       ----------   ----------      ---        ---------     ----                            
           101       1000         1          MSC        400                      A                               
           101       1000         1          MSC        500          S                               
           101       1001         0          NDP        600           I                               
           101       1001         0          NDP        700           R                               
           101       1002         0          ABC        800           L  
    Propose any query pls...

    Thanks in advance...

    I'll try level better to format the pure code in the post...

    Concerning
    Prasanth

    Try this

    update t_30 x
       set amendno = (
                       select amendno
                         from (
                                select control, po, factor, min(amendno) amendno
                                  from t_20
                              ) y
                        where x.control = y.control
                          and x.po = y.po
                          and x.factor = y.factor
                     )
     where exists (
                       select amendno
                         from (
                                select control, po, factor, min(amendno) amendno
                                  from t_20
                              ) y
                        where x.control = y.control
                          and x.po = y.po
                          and x.factor = y.factor
                 )
              
    
  • Copy data from one column to another column in the form of customization

    Hi all

    I need, it's that I need to copy the value of a column to another column.

    But the two columns are different from the TAB

    Who be used, please send me the code.

    Thank you

    And can you describe your condition more clearly?

    My question was... you try to copy the incident followed summary on behalf of the task? In this case, you will need to find the event that triggers ONCE you have entered your resume. Enter in the preview, select display custom events and see what events are triggered. These are the 'moments' that you can use to add additional programming.

  • I have a column with two values, separated by a space, in each line. How to create 2 new columns with the first value in a column, and the second value in another column?

    I have a column with two values, separated by a space, in each line. How do I create 2 new columns with the first value in one column and the second value in another column?

    Add two new columns after than the original with space separated values column.

    Select cell B1 and type (or copy and paste it here) the formula:

    = IF (Len (a1) > 0, LEFT (A1, FIND ("", A1) −1), ' ')

    shortcut for this is:

    B1 = if (Len (a1) > 0, LEFT (A1, FIND ("", A1) −1), ' ')

    C1 = if (Len (a1) > 0, Member SUBSTITUTE (A1, B1 & "", ""), "")

    or

    the formula of the C1 could also be:

    = IF (Len (a1) > 0, RIGHT (A1, LEN (A1) −FIND ("", A1)), "")

    Select cells B1 and C1, copy

    Select cells B1 at the end of the C column, paste

  • How to perform an addition of column values in an insert query that would insert in the 3rd column, and the values how to insert into another table.

    I have two tables (2) RESULT TAB (1)

    CREATE TABLE TAB

    (

    NUMBER OF SNO

    A NUMBER,

    B THE NUMBER.

    NUMBER OF THE SUM

    );

    CREATE AN ARRAY OF RESULT

    (

    NUMBER OF SNO

    NUMBER OF THE SUM

    )

    my doubt is:

    (1) I want to insert a table TAB, my question is how to insert a column to the SUM using the column A AND B... Here im adding two values of the column and store result in the AMOUNT column.

    SNO   A  SUM           

    1 100 150 250

    2 300 100 400

    I want to like this, it is possible with single insert query?


    (2) at the time of the insertion TAB of values that SNO, and the values of table TAB $ insert in the table of RESULTS... is it possible these two inserts at the same time?

    in fact, im using another this table.fro TAB and easy to understand I write like that, please solve this problem

    First, you post in the wrong forum as this one is only for Oracle's SQL developer tool. So you might ask your question in the general forum of SQL.

    Second, you might solve your problems with bind variable:

    Insert tab

    (sno, a, b, sum)

    values

    (: SNO,: A: B: A + B :))

    You should not use sum as column name because it is a reserved word.

    More you cannot insert into two different tables with a single SQL, but you can use PL/SQL to do this:

    Start

    insert into tab values (: SNO,: A: B: A + B :);)

    insert into result values (: SNO,: A + B :);)

    end;

    If you meet sno from a sequence, you could do something like this:

    Start

    insert into values tab (seq_sno.nextval,:,: B,: A +: B) return sno in: SNO.

    insert into result values (: SNO,: A + B :);)

    end;

    Hope that helps,

    dhalek

  • Table with list of value to load on another value of the column that is never changed by the user

    Nice day!

    I work with JDeveloper 11.1.2.4.

    I have a Table of the ADF that has 4 lines.  Each row has a column with a unique value.  The plan should include a LOV column in the row show a different list of values based on a single column value.  I have install the list of values, use a display with a variable binding criterion.  When you create the data LOV source, I Specifies the name of a single column for the value of the bind variable.  However, it seems that the LOV changes none selecting different lines.

    Is there a good way to handle this?  I did LOVs of person in charge in the past, but this isn't quite the same as the user can view only the value that depends on the LOV on.

    Any suggestions are greatly appreciated!


    BradW

    Hey, it's always a case of use of the dependent list of values. If the attribute that you bind the bind variable view criteria at part of the view object then the value LOV to be examined accordingly. I did a quick test case and I see my lists filtered by an attribute in line (I used the HR schema and posted employees as candidates managerId. The employee list is filtered so that it only shows the employees in the same Department that the employee I want to put a new managerId on) Frank

  • How to set the value of a column in a table according to another column?

    Hello world!

    I use Apex 4.1.
    My question is how can I set the value of a column in a table according to another column?
    I have a table and when I insert the value in the column content, I want to change this value in the note column with the note, which is generated with pl/sql function (function of string returned if the typed value is in the range).

    I tried to use javascript as
     $('input[name=f02]').live('change', function(){
    if($(this).val()!='1'){
    $('input[name=f03]').val("test")}
    }); 
    for the development of the column note to test if the value typed in the content of the column is not 1, but this code assigns the value to all the lines and I need to set only the specified line.

    Can someone give me a hint in any way to do this if possible?

    Kind regards
    drama9346

    You will need create a process on your page type PLSQL and develop this process "we demand" of the page. In this process, you can run the PLSQL you need. That is to say to retrieve the note value as described in your PC:

    and when I insert the value in the column content, I want to change this value in the note column with the note, which is generated with pl/sql function (function of string returned if the typed value is in the range).

    In this process, you must provide a return value of the call, and you can do this by using htp.p. Example:

    DECLARE
       --putting x01 in a var to simplify
       l_test_var VARCHAR2(200) := apex_application.g_x01;
       l_return VARCHAR2(200);
    BEGIN
       -- a simplistic test
       IF LENGTH(l_test_var) BETWEEN 10 AND 20 THEN
          l_return := 'String is between 10 and 20';
       END IF;
    
       --this will write l_return to the buffer, and the ajax callback will receive this
       htp.p(l_return);
    END;
    

    And the code that I wrote above, which is javascript, would need to go where your current code is that binds to the onchange event. The result should be that, when a change is made to this element, an ajax request is made on the server. When the call is finished, it will be the value returned in the item you want.

  • How to add a value to a column of a string of pop up

    I am really inexperienced with spreadsheets, but asked me to help create a timesheet for a rotational system.

    I know that the time could be manually entered and calculated in duration but as there are only four options, let's say A, B, C travel and OFF, it would save a lot of time if there is a pop-up menu along side each name and under every day so that when a change is selected, the corresponding hours would be added in the total column.

    I actually created the spreadsheet with context menus as follows:

    08:00 - 15:00

    15:00 - 22:00

    Off

    08:00 - 18:00

    The reason why the 08:00 - 18:00 is in the end, it is a special change that only supervisors do.

    In any case, is there a way that these string values can be converted to hours to a total of column? I tried, very awkwardly, and I can't really follow the logic of the formulas of the numbers so I would be very grateful if someone could help me.

    I've included a selective screenshot in case my description is not very clear; Thank you.

    Hello Alf,

    The key to this is to use a lookup table for the transit time of list (as in your Menus pop up) and the number of normal hours for this position.

    Note this column of the table must match exactly to your Menus pop up (I added spaces on both sides of the hyphen).

    Then another table (hours) to account for the infeed Table and convert shifts in hours.

    Formula in B2 of table of the hours (and fill right and fill down)

    = INDEX (Lookup::$B,MATCH(Input::B2,Lookup::$A,0))

    My cheat for the combination of the INDEX sheet and MATCH:

    = INDEX (column, I want a value returned by,)

    MATCH (the value of my choice,

    Column, I want to search against.

    Enter ""0")).

    Finally, the formula in the column "hours worked" (right part of the input table)

    I2 = SUM (Hours::2:2)

    And fill down.

    Kind regards

    Ian.

    Edit: You can move (copy / paste) the table and the table to another worksheet hours to 'hide '. Ian.

  • How do the average of the last 5 values of a column as new values automatically entered?

    If the issue is not clear for you, here's a site I found that teaches you how do it on excel. ml https://www.extendoffice.com/documents/Excel/2533-Excel-average-last-5-values.HT    I can't find the corresponding method on the good numbers. Thank you for your response in advance :-)

    Hi Z_J,

    This number approach pulls the last 5 (low) values of table 1 in another table where the average can be calculated.

    Step 1. Add line numbers in column A of table 1. This gives a way for table 1-1 to extract the last 5 values.

    Formula in A2 (and fill down

    = ROW()

    Step 2.

    In table 1-1, the formula in A6 estimated the maximum line in table 1

    = MAX (Table 1::A)

    The formula in A5 (and filling up)

    = A6−1

    Formula in B2 of table 1-1 (and fill down) using VLOOKUP to find a match for each line number in table 1-1 and get the value out of this line in table 1.

    = VLOOKUP(A2,Table 1::A:B,2,FALSE)

    Step 3.

    Now add another row (and insert a new value) to the lower part of table 1

    Lines 3 to 7 are now drawn.

    Ranger by hiding some columns

    Kind regards

    Ian.

  • get the length of each string in a column

    Hi all

    Is there a way to get the length of each string in a column:

    for example:

    If the table contains lines like below:

    Select 'test test1 test31' col1 of double

    Union of all the

    Select 'sectest1 sectest234' double col1

    The output should be as below:

    col1

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

    4 5 6

    8 10

    That is to say get the count of each separated from the chain of space in a column. Is this possible using regexpr_substr?

    Thanks in advance.

    Roy.

    Try the below

    SELECT LISTAGG(val1,' ') IN ONE GROUP)

    New_val ORDER BY lvl)

    Of

    (SELECT LENGTH (REGEXP_SUBSTR (col1,'[^] +', 1, LEVEL)) val1,)

    RN,

    LEVEL lvl

    Of

    (SELECT col1,

    ROWNUM rn

    Of

    (SELECT 'test test1 test31' col1 OF double)

    UNION ALL

    SELECT 'sectest1 sectest234' double col1

    )

    )

    CONNECT BY LEVEL<= regexp_count(col1,'="">

    AND PRIOR rn = rn

    AND PRIOR DBMS_RANDOM. VALUE IS NOT NULL

    )

    GROUP BY rn;

    OUTPUT:-

    =======

    col1

    ----

    4 5 6

    8 10

    Thank you

    Ann

  • To validate each value

    Hello

    In this example,.

    with t as)

    Select "RTGF, TYGG, YTTGH, KIJYT, HYG, IYT" double pass

    )

    Select TRIM (substr (cut into two,

    InStr (cut in two, ",", 1, level) + 1.

    InStr (cut in two, ",", 1, level + 1)-instr (cut in two, ",", 1, level)-1)) as ret_row

    from (select ',' | col |) "," cut in two

    t)

    connect by level < = length (cut in half) - length (replace (cut into two, ',' ")) + 1

    and instr (cut in two, ",", 1, level + 1)-instr (cut in two, ",", 1, level) order > 0 - 1 by 1.

    I want to check that each value of ret_row is the existing code in another table. How?

    You can make a small change to the solution of Etbin. Like this (if you're on 11 GR 2)

    with

    feat_table as

    (select feat "TYGG" of all the double union)

    Select "KIJYT" from double

    ),

    t as

    (select "RTGF, TYGG, YTTGH, KIJYT, HYG, IYT" collar)

    of the double

    ),

    csv_to_rows as

    (select TRIM (substr (splitted,

    InStr(Splitted,',',1,Level) + 1,

    InStr (cut into two, ',', 1, level + 1) - instr(splitted,',',1,level) - 1

    )

    ) as ret_row

    from (select ',' | col |) "," cut in two

    t

    )

    -simplify your version of http://asktom.oracle.com/pls/apex/f?p=100:11:0:P11_QUESTION_ID:73830657104020

    connect by level<= length(splitted)="" -="" length(replace(splitted,',',''))="" -="">

    )

    Select LISTAGG (ctr.ret_row, ',') INTRA GROUP (ORDER OF RET_ROW)

    of csv_to_rows ctr

    left outer join

    FT feat_table

    On ctr.ret_row = ft.feat

    where ft.feat is null

    order of ctr.ret_row;

    If you are on the older version, use this.

    with

    feat_table as

    (select feat "TYGG" of all the double union)

    Select "KIJYT" from double

    ),

    t as

    (select "RTGF, TYGG, YTTGH, KIJYT, HYG, IYT" collar)

    of the double

    ),

    csv_to_rows as

    (select TRIM (substr (splitted,

    InStr(Splitted,',',1,Level) + 1,

    InStr (cut into two, ',', 1, level + 1) - instr(splitted,',',1,level) - 1

    )

    ) as ret_row

    from (select ',' | col |) "," cut in two

    t

    )

    -simplify your version of http://asktom.oracle.com/pls/apex/f?p=100:11:0:P11_QUESTION_ID:73830657104020

    connect by level<= length(splitted)="" -="" length(replace(splitted,',',''))="" -="">

    )

    Select RTRIM (XMLAGG (XMLELEMENT (A, ctr.ret_row, ',')). Extract ('//Text ()'), ',')

    of csv_to_rows ctr

    left outer join

    FT feat_table

    On ctr.ret_row = ft.feat

    where ft.feat is null

    order of ctr.ret_row;

    Post edited by: Parth272025

Maybe you are looking for