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/

Tags: Database

Similar Questions

  • How to display the value of the variable for bottom of pl/sql

    How to display the value of the variable for bottom of pl/sql

    declare

    V_1 number: = 10;

    V_2 number: = 20;

    V_3 number: = 30;

    v_4 number: = 40;

    v_5 number: = 50;

    test varchar2 (100);

    Start

    I'm in 1.5

    loop

    test: = "v_" | I have;

    dbms_output.put_line(i||) e > ' | test);

    end loop;

    end;

    /

    How to get below output:

    1 > v_1

    2 > v_2

    3 > v_3

    4 > v_4

    5 > v_5

    But I want to output of

    1 > 10

    2 > 20

    3 > 30

    4 > 40

    5 > 50

    Hello

    You cannot reference variables as you did and get the value of the variable. Use pretty collection.

    set serveroutput on size 2000
    declare
      type      number_table is table of number;
      numbers   number_table := number_table(10, 20, 30, 40, 50);
    begin
      for i in numbers.first .. numbers.last
      loop
        dbms_output.put_line(i || '->' || numbers(i));
      end loop;
    end;
    /
    
    anonymous block completed
    1->10
    2->20
    3->30
    4->40
    5->50
    

    See the Collections of PL/SQL and Records http://docs.oracle.com/cd/E11882_01/appdev.112/e25519/composites.htm#LNPLS005

  • How to display the values of the Parent form in the form of child

    Hello


    I have the order Page and Page element


    In the order Page If I select any item and click submit, it should open the article Page and results should display in advance table region. In my article page I have region of header (default double) with 3 fields (dummy) as

    Agenda
    Description
    org

    Now my question is, I need to display the value of the item in the item Page header area in the column of the item that I was selecting in the order Page.

    I have a prescription 100 point A, B, C, I select B and click on submit it should open on the Articles page and article Page, I have a column called Item and value B sholud be fulfilled.



    Thank you
    Mahesh

    OAMessageTextInputBean oa = (OAMessageTextInputBean) webBean.findChildRecursive ("ItemNo");
    oa.setAttributeValue (SItemNo);

    There is no such method as setAttributeValue for UI beans, this method is for VO, that is to say if you take a VO and VO a method object to set its attribute.

    Bean of the user interface, you will need to use method below,

    OAMessageTextInputBean oa = (OAMessageTextInputBean)webBean.findChildRecursive("ItemNo");
    oa.setValue(pageContext,SItemNo);
    

    Thank you
    AJ

  • How to display the values of this query? The type is XDB. XDB$ STRING_LIST_T

    Hi all

    If I run this query using a tool like developer PL/SQL (SQL window), the values are displayed as a Collection. Just click and see the results of the al.

    Select
    dbms_resconfig.getRepositoryResConfigPaths)
    Of
    Double;


    I want to know how to display these values using any tool of sqlplus (with dbms_output or something like that).

    How can I do? With the help of the table? Create a type?

    TKS

    user12083350 wrote:

    I want to know how to display these values using any tool of sqlplus (with dbms_output or something like that).

    SQL> select * from table(dbms_resconfig.getRepositoryResConfigPaths())
      2  /
    
    COLUMN_VALUE
    --------------------------------------------------------------------------------
    /sys/xs/userrc.xml
    /sys/xs/rolesetrc.xml
    /sys/xs/drolerc.xml
    /sys/xs/rolerc.xml
    /sys/xs/frolerc.xml
    /sys/xs/xdserc.xml
    /sys/xs/scrc.xml
    
    7 rows selected.
    
    SQL> 
    

    And in PL/SQL:

    SQL> declare
      2      v_list xdb$string_list_t := dbms_resconfig.getRepositoryResConfigPaths();
      3  begin
      4      for i in 1..v_list.count loop
      5        dbms_output.put_line(v_list(i));
      6      end loop;
      7  end;
      8  /
    /sys/xs/userrc.xml
    /sys/xs/rolesetrc.xml
    /sys/xs/drolerc.xml
    /sys/xs/rolerc.xml
    /sys/xs/frolerc.xml
    /sys/xs/xdserc.xml
    /sys/xs/scrc.xml
    
    PL/SQL procedure successfully completed.
    
    SQL> 
    

    SY.

    Published by: Solomon Yakobson, April 24, 2010 15:04

  • How to display the value of the column

    Oracle 10g on Linux

    I want to display the value of the id column in the table of www if count (distinct id) is 1. The following query is fine except that it does not display the value of the column ID help, please.
    SELECT count(distinct id)
                   FROM www c
                  WHERE C.x_code IN (SELECT D.x_code
                                                     FROM www_app d
                                                    WHERE d.y_code = '1151299386')
                  having count(distinct id) = 1                                                

    I think you can use MAX in this case

    SELECT max(id)
                   FROM www c
                  WHERE C.x_code IN (SELECT D.x_code
                                                     FROM www_app d
                                                    WHERE d.y_code = '1151299386')
                  having count(distinct id) = 1
    
  • How to display the value of the parameter in the xmlp layout

    Hi all

    1.) my rdf report that generates an xml (I m using to create the model of presentation xmlp) file takes some parameters.

    (2) rdf even generates also a PDF file that i'm using a pattern pre-determined XMLP design layout, this PDF shows also the values of the given parameters.

    3.) so that these settings are not available as a block of data or in the XML output.

    My question is how can I display the same settings in my layout xmlp or how can I get the element name for the parameter that are given when running simultaneous program values.


    Thank you
    Pratap

    At the beginning of the report, simply add these

    
    
    
    

    where p_PARAMETER1, p_start_date, and p_end_date are names of param simultaneous pgm
    and refer to them as

    
    
    
    
    
  • How to pass the value of an element in a function called by a procedure

    Hello

    I have a procedure named PROCEDURE AFFICHAGE_PLUVIO_VEILLE (sorry I don't know how to get in shape for the code):

    {code: sql}create or replace PROCEDURE AFFICHAGE_PLUVIO_VEILLE AS

    CURSOR curs1 is

    Select the site, name, site_pluviometre clef_var

    where EN_SERVICE = 'YES ';

    number of stmt;

    BEGIN

    DELETE FROM PLUVIO_DATA;

    for m loop curs1

    stmt: = calc_pluvio (m.clef_var);

    INSERT INTO pluvio_data values (m.clef_var, stmt);

    end loop;

    commit;

    END AFFICHAGE_PLUVIO_VEILLE; {code}

    This procedure calls a function:

    {code: sql}create or replace function "CALC_PLUVIO" (station NUMBER)

    return the number is the default number of 0 total.

    BEGIN

    WITH PRECIPITATION AS

    (SELECT DATE1 RAINFALLDATE, VALUE

    OF EVV_STPL

    WHERE CLEF_VAR = station

    AND TRUNC (DATE1) = TRUNC (sysdate-1))

    SELECT SUM (TOTO) INTO CUMULATION

    DE)

    SELECT TRUNC (RAINFALLDATE) AS date,

    VALUE,

    (VALUE) AHEAD OF (TRUNC PARTITION (RAINFALLDATE)

    ORDER BY RAINFALLDATE

    ) - VALUE AS TOTO

    PRECIPITATION

    )

    WHERE TOTO > = 0

    GROUP BY date;

    DATE OF RETURN;

    EXCEPTION

    WHEN NO_DATA_FOUND THEN

    TOTAL: = 0;

    DATE OF RETURN;

    END; {code}

    You can see that the function uses 'sysdate-1' regarding the date. " In order to be more flexible with the date and to be able to use a date other than the date of the previous day, I would like to pass as a parameter to the function of the value of a page called P1_DATE.

    But, how can I do? Function CALC_PLUVIO' is called by the stored procedure 'AFFICHAGE_PLUVIO_VEILLE of PROCEDURE' for which I can not transmit to any parameter as for example the P1_DATE element.

    I use Application Express 5.0.1.00.06

    Thank you for your help.

    Chipniz wrote:

    I have a procedure named AFFICHAGE_PLUVIO_VEILLE of PROCEDURE (sorry I don't know how to get in shape for the code):

    Click on the link to the editor advanced usage in the top right of the edit box, select the code in the editor and choose the language desired from the syntax highlighting options in > toolbar button menu. (For SQL and PL/SQL code, use "SQL").

    create or replace PROCEDURE AFFICHAGE_PLUVIO_VEILLE AS
      CURSOR curs1 is
        select site, nom, clef_var from site_pluviometre
                  where EN_SERVICE = 'OUI';
      stmt number;
    BEGIN
      DELETE FROM PLUVIO_DATA;
      for m in curs1 loop
        stmt := calc_pluvio (m.clef_var);
        INSERT INTO pluvio_data values (m.clef_var, stmt);
      end loop;
        commit;
    END AFFICHAGE_PLUVIO_VEILLE;
    

    This procedure calls a function:

    create or replace function "CALC_PLUVIO" (station in NUMBER)
    return number is cumul number default 0;
    BEGIN
    WITH RAINFALL AS
    (SELECT DATE1 RAINFALLDATE, VALEUR VALUE
    FROM    EVV_STPL
    WHERE  CLEF_VAR = station
    AND        TRUNC (DATE1) = TRUNC (sysdate-1))
    SELECT SUM (TOTO) INTO CUMUL
    FROM (
    SELECT TRUNC (RAINFALLDATE) AS datte,
    VALUE,
    LEAD (VALUE) OVER ( PARTITION BY TRUNC (RAINFALLDATE)
    ORDER BY RAINFALLDATE
    ) - VALUE AS TOTO
    FROM RAINFALL
    )
    WHERE TOTO >= 0
    GROUP BY datte;
    RETURN CUMUL;
    EXCEPTION
        WHEN NO_DATA_FOUND THEN
            CUMUL := 0;
        RETURN CUMUL;
    END;
    

    You can see that the function uses ' sysdate-1' regarding the date. " To be more flexible with the date and to be able to use a date other than the date of the previous day, I want to pass as a parameter to the function of the value of a page called P1_DATE.

    But, how can I do? The CALC_PLUVIO function ' is called by the stored procedure 'AFFICHAGE_PLUVIO_VEILLE of PROCEDURE' for which I can not transmit to any parameter as for example the P1_DATE element.

    What do you mean by "I can't pass any parameter"? That you cannot change the signatures of the procedure and function?

    Passage of a parameter is the recommended approach. Including a default value will ensure that programs are backward compatible with existing code that does not it:

    create or replace PROCEDURE AFFICHAGE_PLUVIO_VEILLE (p_rainfall_date in date default null) AS
      CURSOR curs1 is
        select site, nom, clef_var from site_pluviometre
                  where EN_SERVICE = 'OUI';
      stmt number;
    BEGIN
      DELETE FROM PLUVIO_DATA;
      for m in curs1 loop
        stmt := calc_pluvio (m.clef_var, p_rainfall_date);
        INSERT INTO pluvio_data values (m.clef_var, stmt);
      end loop;
        commit;
    END AFFICHAGE_PLUVIO_VEILLE;
    
    create or replace function "CALC_PLUVIO" (station in NUMBER, p_rainfall_date in date default null)
    return number is
      cumul number default 0;
      rainfall_date date;
    BEGIN
      rainfall_date := trunc(coalesce(p_rainfall_date, sysdate-1));
    WITH RAINFALL AS
    (SELECT DATE1 RAINFALLDATE, VALEUR VALUE
    FROM    EVV_STPL
    WHERE  CLEF_VAR = station
    AND        TRUNC (DATE1) = calc_pluvio.rainfall_date)
    SELECT SUM (TOTO) INTO CUMUL
    FROM (
    SELECT TRUNC (RAINFALLDATE) AS datte,
    VALUE,
    LEAD (VALUE) OVER ( PARTITION BY TRUNC (RAINFALLDATE)
    ORDER BY RAINFALLDATE
    ) - VALUE AS TOTO
    FROM RAINFALL
    )
    WHERE TOTO >= 0
    GROUP BY datte;
    RETURN CUMUL;
    EXCEPTION
        WHEN NO_DATA_FOUND THEN
            CUMUL := 0;
        RETURN CUMUL;
    END;
    

    This code can be called APEX by:

    AFFICHAGE_PLUVIO_VEILLE(p_rainfall_date => to_date(:p1_date, 'DD-MON-YYYY')); -- change format mask to that used in the P1_DATE item
    

    Moreover, if the P1_DATE element is the only possible source of another value on the date of the rain, then the value can be referenced directly in the function:

    create or replace function "CALC_PLUVIO" (station in NUMBER)
    return number is
      cumul number default 0;
      rainfall_date date;
    BEGIN
      rainfall_date := trunc(coalesce(v('P1_DATE'), sysdate-1));
    WITH RAINFALL AS
    (SELECT DATE1 RAINFALLDATE, VALEUR VALUE
    FROM    EVV_STPL
    WHERE  CLEF_VAR = station
    AND        TRUNC (DATE1) = calc_pluvio.rainfall_date)
    SELECT SUM (TOTO) INTO CUMUL
    FROM (
    SELECT TRUNC (RAINFALLDATE) AS datte,
    VALUE,
    LEAD (VALUE) OVER ( PARTITION BY TRUNC (RAINFALLDATE)
    ORDER BY RAINFALLDATE
    ) - VALUE AS TOTO
    FROM RAINFALL
    )
    WHERE TOTO >= 0
    GROUP BY datte;
    RETURN CUMUL;
    EXCEPTION
        WHEN NO_DATA_FOUND THEN
            CUMUL := 0;
        RETURN CUMUL;
    END;
    
  • How to display the value of a javascript variable in a region of html?

    Hello

    I need to show my title of the page or in a region of html.
    I added a script in the < title > section header of style...:
    (Thanks to Andy: page attributes Get page name? )
    <script type="text/javascript">
    var pageTitle = '#TITLE#';
    </script>
    ... so I can use it in a javascript variable.

    But now I don't know how to view in html syntax...

    Thank you!
    Fanny

    ... so I can use it in a javascript variable.

    See no reason to change the templates to introduce a needless global JS variable when the document property is already there. Display using an appropriate HTML element, for example h1 if it's the overall page header.

  • How to display the values of the component of the shuttle by defaul in shuttle from left

    Hi, I have created part of shuttle through JDeveloper
    and I put all the properties
    It displays on the page

    There are two boxes or shuttle displayed
    one is for the other for selected values containing all of the values

    but in my case bydefault all values are displayed to the right of the box
    I mean, by default all values are selected

    How can I solve this

    HA,

    First remove the entire list of choices associated with definitions of the bean of the shuttle. The same check if it always throws an error.

    View me lookup definition, attribute, definition drop-down list Attriubute view drop-down list.

    Kind regards
    GYAN

  • How to change the value of an element with another element?

    Hello guys,.

    I now have two or three elements in my form page, according to an order of the day, I want to change (from disable to activate or vice versa), the values of all the other elements in this form...

    I thnk for this javascript is needed... but I'm new Bee so if anyone can help me with these...

    How do I? is - that someone has good example or any link...

    Please help me with this question... enjoyed

    thxs


    Kind regards
    GK

    Hello GA,.

    Try this:
    OnChange = "$f_DisableOnValue (this, 'Y', 'P1_DETAILS_YN');"

    BTW: You are missing a hook closing in your function. You must use FireFox and with the FireBug extension and you would have noticed it...

    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this response in marking it as useful or Correct ;-)

  • How to display the value of sys_context in SQL Developer?

    Hello
    I can see the results via sqlplus with the following statements:
    SYS_CONTEXT ('empno_ctx', 'empno_attrib') SELECT Empno_attrib FROM DUAL;
    SELECT * FROM SESSION_CONTEXT;
    the two retrieve correct values;
    now, since I mainly work with SQL Developer I wanted to display the results in here too;
    I ran the procedure in SQL Developer via a right click on the procedure-> run;
    He looked like he ran ok.
    However, when I do the queries above nothing is retrieved;
    any suggestions?
    Thank you
    Rgds

    It may be that the two things are running in different sessions.

    What happens if you run them in a spreadsheet?

    Start
    procedure_call;
    end;
    /
    Select sys_context...

  • How to display the value of parameter of current session

    Hello

    How can a db user know the value of a parameter of the session, if he doen't have the privilege to access the parameters of v$?
    SQL> conn hr/hr
    Connected.
    
    SQL> show parameter QUERY_REWRITE_ENABLED
    ORA-00942: table or view does not exist
    
    SQL> alter session set QUERY_REWRITE_ENABLED=true ;
    Session altered.
    
    ...
    
    -- how can the user HR know the value of QUERY_REWRITE_ENABLED

    ahmedbaraka wrote:
    Hello

    How can a db user know the value of a parameter of the session, if he doen't have the privilege to access the parameters of v$?

    Like this:

    oracle@g5 ~]$ sqlplus scott/scott
    
    SQL*Plus: Release 11.1.0.6.0 - Production on Fri Nov 6 15:38:11 2009
    
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    
    SQL>
    SQL>
    SQL>
    SQL> show parameter query_rewrite_enabled
    ORA-00942: table or view does not exist
    
    SQL> set serveroutput on
    SQL> DECLARE
      2    parnam VARCHAR2(256);
      3    intval BINARY_INTEGER;
      4    strval VARCHAR2(256);
      5    partyp BINARY_INTEGER;
      6  BEGIN
      7    partyp := dbms_utility.get_parameter_value('query_rewrite_enabled',
      8                                                intval, strval);
      9    dbms_output.put('parameter value is: ');
     10    IF partyp = 1 THEN
     11      dbms_output.put_line(strval);
     12    ELSE
     13      dbms_output.put_line(intval);
     14    END IF;
     15    IF partyp = 1 THEN
     16      dbms_output.put('parameter value length is: ');
     17      dbms_output.put_line(intval);
     18    END IF;
     19    dbms_output.put('parameter type is: ');
     20    IF partyp = 1 THEN
     21      dbms_output.put_line('string');
     22    ELSE
     23      dbms_output.put_line('integer');
     24    END IF;
     25  END;
     26  /
    parameter value is: TRUE
    parameter value length is: 4
    parameter type is: string
    
    PL/SQL procedure successfully completed.
    

    So read the [Function GET_PARAMETER_VALUE | http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_util.htm#sthref7801]

  • How to access the value of form element in Database Trigger

    Hello
    Is it possible to access value of form element in triggering the database?
    I have the form that at the table base another element called P14_Insert_to_waiting_list, I want to check the value of this question in the trigger Before Insert deletion of update of TABLE1 and take measures to insert, update, delete record in TABLE2.

    Thanks in advance
    Aali

    Hello

    You can do it with the v function.

    v('P14_Insert_to_waiting_list')
    

    I think the name of the element is case sensitive, in order to verify that

    Edit
    You can also use APEX_UTIL. GET_SESSION_STATE
    http://download.Oracle.com/docs/CD/E14373_01/apirefs.32/e13369/apex_util.htm#CHDEJEJE
    V is just smaller

    You can also use the shortcut function V, instead of APEX_UTIL. GET_SESSION_STATE.

    BR, Jari

    Published by: jarola on October 27, 2009 11:03

  • How to extract the values of column aliases based on different column values?

    Hello gurus,

    I have a table with the following struture-
    "drop table T;
    create table T(Name, Symbol, Amount,dep) as select
    'Anderia', 'AA', 1050000,'HR' from dual union all select
    'Michael', 'ML',150000,'Sales' from DUAL union all select
    'Bill', 'BL', 1050000,'Finance' from dual union all select
    'Nancy', 'NY', 4000,'HR' from DUAL union all select
    'Anderia', 'AA',3000,'HR' from dual union all select
    'Michael', 'ML',1050000,'Sales' from DUAL union all select
    'Bill', 'BL', 1200000,'Finance' from DUAL union all select
    'Anderia', 'AA', 1200000,'HR' from DUAL union all select
    'Vish', 'VH', 1200000,'Marketing' from DUAL;"
    And try to find the values of the column as
    Name, symbol, dep, amount, % Total, Total $Cumm, rank but some additional as-columns

    Amount HR, % HRTotal, $HR Cumm Total,
    Finance amount, FinanceTotal %, $Finance Cumm Total
    Sales amount, a percentage of Total sales, $Sales Cumm Total.
    Amount marketing, MarketingTotal %, $Marketing Cumm Total

    then I use the following query to retrieve the name, the symbol, the dep, amount, % Total, Total $Cumm, rank columns.
    select name
         , decode(grouping(symbol), 0, symbol, 'Total') symbol
         , dep
         , sum(amount) amount
         , sum(per_total) "% Total"
         , decode(grouping(symbol), 0, max(Cum_per_total), null) "% Cumm Total"
         , decode(grouping(symbol), 0, max(rank), null) rank
      from (
              select name
                   , symbol
                , dep
                   , amount
                   , per_total 
                   , sum(per_total) over(order by rk) cum_per_total
                   , rank
                   , rk
                from (     
                        select name
                             , symbol
                    , dep
                             , sum(amount) amount
                             , round((sum(amount)/max(total_amount)) * 100,2) per_total
                             , dense_rank () over (order by sum(amount) desc) as rank
                             , row_number() over(order by sum(amount) desc) as rk
                          from (
                                 select name
                                      , symbol
                                      , amount
                          , dep
                                      , sum(amount) over() total_amount 
                                      , sum(amount) over () 
                                   from t
                               )
                         group 
                            by name, symbol, dep
                    )
            )
      group         
         by grouping sets((name, symbol, dep), ())
      order by rank, max(rk) nulls last
    But I want to extract the following columns so... How can I do?

    Amount HR, % HRTotal, $HR Cumm Total,
    Finance amount, FinanceTotal %, $Finance Cumm Total
    Sales amount, a percentage of Total sales, $Sales Cumm Total.
    Amount marketing, MarketingTotal %, $Marketing Cumm Total


    as I want that all records, then will the dep..do-specific I need to use the case here?
    Thanks for all your time and effort in advance

    If I understand your needs, you need pivot: SQL and PL/SQL FAQ

  • How to avoid conditionally display the values of particular element

    Hello friends,
    My requirement is like I have a groupname xml element that I'm bundling by as well as another element.
    Now, I do not want to display all the special items associated with GroupName = 'BOTTLE '. How to specify it in the model?
    any help would be appreciated

    Thanks in advance

    You can use

    Please note that only TOTAL_COST and GroupName must be in the same group. Otherwise, you may need to use XPATH.

    Concerning
    Charlotte

Maybe you are looking for

  • Qosmio F10 other software broken DVD

    Hi allI was wondering if anyone kind enough to help me. I had to format my computer recently and reinstall everything. However, I managed to sit on one of the disks that was lying on my bed in time and it has broken. His Addition (PMR400262EU0) softw

  • How to identify which Satellite A60 I have?

    Help! Can someone tell me what model I have? I know as an A60 - en, but there is no model like that, it s is this series this series A60-220 or or any combination of different numbers.Help!

  • Windows 7 system crashes so that the installation of updates, not shut down

    I've upgraded to Windows 7 using a disc of Microsoft; Windows Update started downloading the updates.  Now it will not shut without doing it manually.  If there are 5 updates, it may hang on the update 4.  Then, after much cleaning in safe mode, etc,

  • Insert Image in SQLite as ablob

    I have the database sqlite and work very well and I want to insert an Image in SQLite as ablob but I do not know how to insert and select anyone have any expline example or link this Thanks to advansed

  • Get VPN client to connect, but request timed out when ping

    Hi, I use the router Cisco 837 as my VPN server. I am connected using Cisco VPN Client Version 5. But when I ping the ip of the router, I have request timed out. Here is my configuration: Building configuration... Current configuration : 3704 bytes !