Can a pop list cause a dynamic value assigned to him?

Can a pop list cause a dynamic value assigned to him?
as Select actualValue, fullname of the category;
and put fullname in the list of values in the list of POPs and actualValue each of the returned values.

The following code will help you and set the trigger a times-new-form-instance.

DECLARE
rg_name VARCHAR2(40) := 'EMP';
rg_id RecordGroup;
errcode NUMBER;
BEGIN

 rg_id := Find_Group( rg_name );

 IF not Id_Null(rg_id) THEN
   delete_group(rg_id);
 END IF;

 rg_id := Create_Group_from_query(RG_NAME, 'SELECT ename, TO_cHAR(empno) FROM emp');

errcode := Populate_Group( rg_id );
-- Error occured while populating the record group
if errcode != 0 then
message(' Error occured while populating the record group');
raise form_trigger_failure;
end if;

-- Clearing the list before populating it.
clear_list('here you define block column name');

populate_list('here you define block column name',RG_ID);

exception
when no_data_found then
null;
when others then
null;
END;   

Tags: Oracle Development

Similar Questions

  • Can a selection list cause two lists of parent of Cascade?

    4.2.1

    THM:2

    Hello world

    I have two regions

    Region 1 has a selection list and a text called order box and category of the order. There could be several orders in a category. When I choose a selection list order, he fills the text box with the corresponding category by using dynamic "SetValue".

    Now, I also want the second region that has an another LOV orders, fills only order_ids not selected in region 1 LOV however, it should show only other orders in the same category.

    So something like select commands from P4_ORDERS1 where category and <>P4_ORDERS order_id = P4CATEGORY

    But seems to not work. I created this on Apex

    https://Apex.Oracle.com/pls/Apex/f?p=64292:4

    workspace: ryansun

    user: [email protected]

    PWD: ryansun123

    Ideally, when I select the No. 1 of the order of P4_orders, P4_ORDERS1 should show 4 for the other order_ids, that p4_orders1 will be null.

    Thank you

    Take at look at page 5 and 6.

    Page 5 the query for the LOV P5_ORDERS1 was modified to use the value of P5_ORDERS.  Not really necessary to include the value of P5_CATEGORY

    Page 6 the parent element is P6_CATEGORY for the LOV is updated when the value of P6_CATEGORY is modifed by the dynamic Action.  Dynamic Action will present the P6_ORDERS value in session state to be used by the LOV P6_ORDERS1.

    As for the original question in the title, a list of selection may have two lists of parent of cascade? The answer is Yes.  You can include 2 (separate control) in the area of the waterfall LOV article Parent (s).

    -Jeff

  • A workflow that lists all the possible values for VirtualMachineGuestOsIdentifier

    I want to set up a workflow that will present you with a list of values VirtualMachineGuestOsIdentifier and their long name equivalents. My goal is to create a service that other people can use to select the operating system they run on a new virtual machine. It is in favour of a 'portal' that develops where users will be "order" new virtual machines and manage their existing virtual machines.

    I know I can get the list of the VirtualMachineGuestOsIdentifier of the vim file - types.xsd our vCenter server but it is a huge file and it does not list the long names for possible values of the BONES. I want to somewhat make life easier for our web developers about it.

    I know how to get a guest operating system object, if I already have the value corresponding to the call to VcVirtualMachineGuestOsIdentifier.fromString (). But if I can get a list of all possible values?

    Please and thank you.

    Colin j.

    If you want to get the values of interactively simply use the input type.

    If you want to list these programmatically, use:

    var array = Server.findAllForType("VC:VirtualMachineGuestOsIdentifier");
    
    for each (var element in array) {
        System.log(element.value);
    }
    
  • Select the list with the list of dynamic values with more than 4000 tank of query

    Hello

    I have no application where users can store SQL queries in a CLOB column. This query is then used to populate the list, select a dynamic element through LOV. Following the code returns the query for dynamic LOV used to populate the select list. It works fine except when the length of the lv_sqlStatement becomes more than 4000 characters. Then application crashes with "ORA-06502: PL/SQL: digital or value error: character string buffer too small" when Select the list item rendering.

    Any ideas how to get around this problem? Any help is appreciated. Do not say to them to write shorter than 4000 queries because I can't (it's operational requirements).

    DECLARE
    lv_sqlStatement end_user_set.sql_statement%type;
    BEGIN
    lv_sqlStatement: =: P2_SQL_STATEMENT;
    return ' select the label, value of (' | lv_sql_statement | t ')
    To_char (t.value) if not in (select value from end_user_set_member eusm)
    where eusm. EUSRSET_ID = ' | : P2_EUSRSET_ID | ')';
    END;

    I just blogged about this problem and posted a solution. See this announcement:

    http://www.deneskubicek.blogspot.de/2013/03/select-list-with-dynamic-lov-and-Ora.html

    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
    -------------------------------------------------------------------

  • dynamically create a pop list at run time.

    Hi, I create a new form.where that I added a control block. (the name is fictitious) .in this block I added an item in the list that appears as a pop list.
    in this article, I want to show the value at run time (similar eg.i want to show all the empno from EMP)
    How can I do this?
    could you please help me? form contain only control item.not any table from the database

    Just to follow on HamidHelal,

    You must to_char all numeric fields by selecting them from a list of value, where the to_char (empno) in the select statement, otherwise you will get an error.

    Rgds
    BryanB

  • The drop-down list schema lists (with the name/value pairs)

    Hello

    I'm looking for more information on creating a schema type definition that LiveCycle Designer ES will fill (fill in the name and value) of drop-down lists. For example, I have something like:

    < xsd:simpleType name = "RoleTypeCodeType" >
    < xsd:restriction base = "xsd:token" >
    < value xsd: Enumeration = 'ABC' >
    < xsd: annotation >
    < xsd: documentation >
    Aboriginal community
    < / xsd: documentation >
    < / xsd: annotation >
    < / xsd: Enumeration >
    < value xsd: Enumeration = "ADJ" >
    < xsd: annotation >
    < xsd: documentation > referee < / xsd: documentation >
    < / xsd: annotation >
    < / xsd: Enumeration >
    ...

    < xsd:minLength value = "1" > < / xsd:minLength >
    < xsd:maxLength value = "3" > < / xsd:maxLength >
    < / xsd:restriction >
    < / xsd:simpleType >

    This creates a list. I can bind this to a list field. However, of course, when I saw the pdf, my drop down list items in this area are just the three-letter code. I would get the descriptions associated with these articles (as shown on the connection tab) to be filled. The end result is that my list see 'Indigenous community', 'referee', etc. and when selected, return 'ABC', 'ADJ' in the XML during export.

    If list under the connection tab items are filled manually then this export works correctly. However, the list is generated during execution and dynamic. So nobody knows what the schema definition must be for the field in the list on the LiveCycle form to create the name-value pairs?

    Thank you

    John

    Hi John,.

    You will need to incorporate the schema, but you can reference the imported schema as they get integrated as well (there a bug in the designer when they were not integrated, but I think it crept in 8.0).

    In any case to refer to the imported schema you will need to loop though all schemas

    var

    schemas = xfa.resolveNodes('schema[*]');

    Will give it refers to all schemas, the fine loop them;

    for

    (var schemaIndex = 0; schemaIndex< schemas.length;="">

    So if these patterns have an id attribute (I don't think that you can refer to namespace attributes) test the value of the id;

    If

    (schema.@id is "whateveryourschemaidis")

    If there is no attribute ID and you cannot add a you might have to search for the type in each scheme, something like;

    var roleTypeCodeType is schema.xsd::simpleType. (@name is "roleTypeCodeType");

    If (roleTypeCodeType! == undefined)

    {

    ... load the values of the annotation.

    }

    Hope that helps but if you if you can post your schema (and it's imports), I could understand exactly the problem.

    Bruce

  • Dynamic values for quick columns

    Hi all

    I met a requirement, have about the several columns in a line of dashboard. But the values of Column2 that appear in the drop-down list depends on the value that I had selected in the Column1.

    Searching on the internet I stumbled on the article that the values how changes between the guests and the link is:
    http://oraclebizint.WordPress.com/2008/01/21/Oracle-BI-EE-101332-dynamically-varying-colums-in-sub-prompts-passing-presentation-variables-to-dashboard-prompts/

    Can anybody have an idea how to do the same between columns in a command prompt of unique dashboard (with multiple columns).


    Thank you
    S

    Hello Sivausin-

    If I understand correctly, you try to find a way to have a dashboard invites with two columns in it. When you select the value of the first column, the second column shows only the values that meet the criteria of the first. Is this correct?

    If this assumption is correct, all you have to do is to force the columns together. When you build your prompt, check the box "limit", as shown below:

    ! http://i48.Tinypic.com/2qk6vb8.jpg!

    Let's say you have two columns:

    COL1 COL2
    2B
    2B
    2 c

    When you select the option of constraint, columns become so dependent on the other. For example, if you select '2' for your prompt COL1, then you won't have the choice to select 'B' or 'C' when you go to the guest in the second column.

    I hope this helps!

    Kind regards
    Jason

  • Retrieve the list of available control values IOName/IVILogicalName

    Is it possible to programmatically retrieve a list of all values of an IOName control (or more precisely IVILogicalName in this case)? I refer to the list of values that appears when you click the arrow on the menu drop-down control. For example, if I set the control to NO-SCOPE (IVI select class-> IviScope-> niScope) from the drop-down list shows only the names of the bodies that are present (for example, "PXI2Slot6"), including the sessions 'duplicate' (e.g. ' PXI2Slot6 (1) ").


    I can get the value currently selected control quite easily, but I would like to get a list of all available values. Is this possible? Values are just there in the control as surely there must be a way to access.

    My goal here is to find a way to recover all sessions IVI and then close them. If there is another way to do this, I'd be happy to hear it.

    Some related posts, I found:
    https://forums.NI.com/T5/instrument-control-GPIB-serial/close-all-open-IVI-sessions/TD-p/1752560
    https://forums.NI.com/T5/Digital-Multimeters-DMMs-and/what-is-the-proper-way-to-close-all-open-Sessi...

    DropDownList (with VI active scripting)

    I use it to find niDMM you can modify it to work with niSCOPE by changing the

    IVI of the results matrix class

    I use this for VISA

  • Open script...  Dynamic values

    I recorded a script to create an invoice, I'm trying to repeat the script for n number of times, I want to set the number of the invoice to dynamic value like "ABCD_1", "ABCD_2", "ABCD_3"...

    How can I dynamically set the value...

    for example:

    Forms
    .textField (42,
    "//forms:textField [(@name = 'INV_SUM_FOLDER_INVOICE_NUM_0')]") "."
    *.setText("{{ABCD_1}}"); *
    {
    Think (0.666);
    }


    Thank you!

    Hello

    // Deriving unique number
    
              long l_timestamp;
              Calendar now = Calendar.getInstance();
              l_timestamp = now.getTimeInMillis();
              String s_uniquenum = new String();
              s_uniquenum = Long.toString(l_timestamp, 0);
              s_uniquenum = s_uniquenum.substring(8);
                    getVariables().set("ABCD_1", s_uniquenum);    //if you want to add a string with dynamic number then use "your_string"+s_uniquenum instead of s_uniquenum
    

    If variable ABCD_1 contains a unique number that is dynamic. You can use it as follows:

    forms
    .textField(42,
    "//forms:textField[(@name='INV_SUM_FOLDER_INVOICE_NUM_0')]")
    .setText("{{ABCD_1}}");
    

    Solution based on the code found in Starter Kit

    Kind regards
    Dembélé M

  • Pop-up alert if the value is not equal to the other element.

    Hello

    I need a pop-up alert if the value of P1_ITEM_A is not equal to with P1_ITEM_F


    I HAVE 6 point

    P1_ITEM_A
    
    P1_ITEM_B
    P1_ITEM_C
    P1_ITEM_D
    P1_ITEM_E
    P1_ITEM_F
    
    mY FORMULA IS
    
    P1_ITEM_A =13
    
    P1_ITEM_F =1*:P1_ITEM_B+2*:P1_ITEM_C:+3*:P1_ITEM_D+4*:P1_ITEM_E
    
    Ex : P1_ITEM_A =13
    
    1*2+2*2+3*1+4*1
    
    After Calculation value Comes into P1_ITEM_F =13
    I need a pop-up warning when, after calculation of value of P1_ITEM_A! = P1_ITEM_F like 13 = 15

    then see the me a pop up window with massage please enter cotrrect not.



    How can I do that.

    Published by: 805629 on March 9, 2011 04:15

    Add an onblur = "calcItems()"; at one point then or modify the 'onchange' to "onblur" event hook

  • can a sql statement cause different sql_id?

    can a sql statement cause different sql_id? reason why I ask... in my AWR report by looking at the sql section I found even with different sql_id sql query... .i was thinking of a sql can have only a single sql_id... .i double checked 5 or 6 times the sql text... they are the exact same, but different sql_id... .is it possible?

    No, it is not possible.

    However if you compare:

    select * from emp.scott 
    

    with

    select * FROM emp.scott
    

    These two will have different hash values, because the hash value is case-sensitive.

    I know, Oracle uses the portion of the MD5 to generate the SQL_ID and the HASH_VALUE of a sql statement.

    Bearing in mind the last, it would be possible that two different sql queries have same hash values.

    I recommend Tanel Poder's article on the relationship between the SQL_ID and HASH_VALUE (it's a very good article)

    http://blog.tanelpoder.com/2009/02/22/sql_id-is-just-a-fancy-representation-of-hash-value/

  • As a dynamic values column names

    I have a WEEK_TAB table

    Week_num Bkg1 Bkg2
    1 10 20
    2 40 10
    3 30 20
    2 20 60
    1-10-50
    1-20-80
    3 10 30

    When I run this package, I get the below output...

    CREATE OR REPLACE
    PACKAGE GET_TOTAL AS

    TYPE ref_cursor IS REF CURSOR;

    PROCEDURE get_week_total (p_refCursor to ref_cursor);

    PROCEDURE get_total_val;

    END GET_TOTAL;
    /

    CREATE OR REPLACE
    PACKAGE BODY GET_TOTAL AS

    PROCEDURE get_week_total (p_refCursor to ref_cursor) AS
    BEGIN
    OPEN FOR P_refcursor
    SELECT SUM (bkg1), week_num
    OF week_tab
    GROUP BY week_num
    ORDER BY week_num;
    END get_week_total;

    PROCEDURE get_total_val AS
    v_refCursor ref_cursor;
    v_sum NUMBER;
    v_week NUMBER;
    v_total NUMBER: = 0;

    BEGIN

    get_week_total (v_refcursor);

    LOOP
    EXTRACTION v_refCursor
    IN v_sum, v_week;
    EXIT WHEN v_refcursor % NOTFOUND;
    v_total: = v_total + v_sum;
    DBMS_OUTPUT. Put_line (' week ' | v_week |': ' | v_sum);
    END LOOP;
    DBMS_OUTPUT. Put_line (' total sales reservations :'|| v_total);
    END get_total_val;

    END GET_TOTAL;
    /

    O/P
    Week 01:40
    Week
    Week 03:40
    Total sales reservations: 140

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

    Here, I'm moving the column name as dynamic value.
    I modified the package as below...

    CREATE OR REPLACE
    PACKAGE BODY GET_TOTAL AS

    CREATE OR REPLACE
    PACKAGE GET_TOTAL AS

    TYPE ref_cursor IS REF CURSOR;

    Strarray ARRAY TYPE IS VARCHAR2 (100);

    PROCEDURE get_week_total)
    p_colName VARCHAR2,
    p_refCursor to ref_cursor);

    PROCEDURE get_total_val;

    END GET_TOTAL;
    /

    CREATE OR REPLACE
    PACKAGE BODY GET_TOTAL AS

    PROCEDURE get_week_total)
    p_colName IN VARCHAR2,
    p_refCursor OUT ref_cursor) AS

    v_query VARCHAR2 (4000);
    BEGIN
    v_query: = ' SELECT SUM (: p), week_num FROM week_tab GROUP BY week_num ORDER BY week_num';

    P_refcursor OPEN FOR v_query
    Using p_colName;

    END get_week_total;

    PROCEDURE get_total_val AS
    v_refCursor ref_cursor;
    v_sum NUMBER;
    v_week NUMBER;
    v_total NUMBER: = 0;
    STRARRAY v_colName: = STRARRAY ('BKG1', 'BKG2');

    BEGIN

    I'm IN v_colName.FIRST... v_colName.Last LOOP
    get_week_total (v_colName (i), v_refcursor);

    LOOP
    EXTRACTION v_refCursor
    IN v_sum, v_week;
    EXIT WHEN v_refcursor % NOTFOUND;
    v_total: = v_total + v_sum;
    DBMS_OUTPUT. Put_line (' week ' | v_week |': ' | v_sum);
    END LOOP;
    DBMS_OUTPUT. Put_line (' total sales reservations :'|| v_total);

    END LOOP;
    END get_total_val;

    END GET_TOTAL; GET_TOTAL;
    /


    But I get this error message
    ORA-01722: invalid number
    ORA-06512: at "SCOTT. GET_TOTAL', line 29
    ORA-06512: at line 2


    Please let me know how this can be resolved... I'm trying to get the result as below

    Week 01:40
    Week
    Week 03:40
    Total sales reservations: 140

    Week 1:150
    Week 2:70
    Week 03:50
    Total sales reservations: 270

    Variable bind bind values of the object, not the object names. You cannot use bind variable as column name. Change:

    v_query := 'SELECT SUM (:p), week_num FROM week_tab GROUP BY week_num ORDER BY week_num'; 
    

    TO

    v_query := 'SELECT SUM (' || p_colName || '), week_num FROM week_tab GROUP BY week_num ORDER BY week_num'; 
    

    and

    OPEN p_refcursor FOR v_query
    USING p_colName; 
    

    TO

    OPEN p_refcursor FOR v_query; 
    

    SY.

  • Y at - it somewhere I can find a list of items that is supposed to be running in activity monitor and those that should raise red flags?  I know the list varies depending on the applications and installed process but a base line would be nice

    Y at - it somewhere that I can find a list of explanations or definitions of applications that are running in the monitor of activity as well as a list of items that should raise red flags?  I realize account from the list will vary depending on the applications and programs installed and running, but it would be nice to have a base line of what should be expected and considered safe or normal.  There are too many items to research and one at a time.

    No, not so much.

    You have a problem you're trying to solve?

  • In the Finder, how can I search/list of the files in the folder of final characters in filenames, i.e. 'to end-with' alphabetical rather than by default "starting by" alphabetical?

    In the Finder, how can I search/list of the files in the folder of final characters in filenames, i.e. 'to end-with' alphabetical rather than by default "starting by" alphabetical?

    As far as I know, you can't.

  • the iphone 4S has the function - it can remove the list of phone every 24 hours

    The iphone 4S has the function - it can remove the list of phone every 24 hours?

    Manutd65 wrote:

    The iphone 4S has the function - it can remove the list of phone every 24 hours?

    None of the iphone has this feature.

    You need to remove manually after 24 hours.

Maybe you are looking for