How to bind values to a query of VO poplist

Hello

This is the query for the VO that I use for a poplist for a field in a custom zone.

Get the value of the tag running (it's actually the de FACTO forces for the party framework) and I want to display only certain search values in the poplist, depending on the context of de FACTO a part.

I have the party_id with me and I use it to get the context of de FACTO in its regard.


How (and where) can I pass a value for the tag parameter in that query (used for my VO poplist)?


Select lookup_code attribute_code,
CASE
WHEN trunc (sysdate) between
NVL (trunc (start_date_active), trunc (sysdate))
and nvl (trunc (end_date_active), trunc (sysdate))
SO what does mean
ELSE ' ZZ inactive-do not use: ' | sense
END attribute_meaning
tag attribute_tag
of fnd_lookup_values_vl
where lookup_type = 'XXG_AR_ADDN_ATTRIBUTES. '
and enabled_flag = 'Y '.
and the tag =: 1


Thank you.

Published by: sseth29 on March 12, 2009 15:27

Please check if you have set the Pick List View Definition or Instance to view of list of choices. Note that in this case you should have Pick List View instance and not pick up the definition of the list view.

Concerning
Sumit

Tags: Oracle Applications

Similar Questions

  • The use of bind variables in dynamic query created for Ref Cursor

    Hello

    I'm in a situation where there is a Ref cursor to which the query is built execution based on a loop. This is why the number of links would be known until the program runs.
    The application is currently using literals instead of bind variables.

    code snippet of the above is
    strSql: = "select * from emp where 1 = 1 and ().

    loop cursor1
    If cond is true then
    strSql = strSql | "ename = ' |" Cursor1.ColumnName;
    end loop;

    Open cursor2 for strSql;

    How to use links in the example above.

    sb92075 wrote:

    user13019948 wrote:
    Hello

    Here is the code I have my trying to change literal-based link to the base.

    What do you mean by "based bind?

    who, what, how determines the values to be 'bound '?

    He's referring to the coding style. He is currently using concatenated literal, and the goal is to change it to use the bindings.

    If I understand this it is known as method 4 dynamic SQL and requires DBMS_SQL. There are examples autour but they vary according to the type of statement being generated - SELECT statements require column lists to be parsed, unlike the INSERT/UPDATE/DELETE.

    This came up recently on my current project and I hit a demo. Here a table of names and values accepted procedure and had to build these in a single WHERE clause along the lines of

    AND t_names(i) = t_values(i)
    

    for an undetermined number of elements in the array. For this demonstration, I used a table that we called "attribute" (don't ask) which has columns including 'attribute_id' and 'name', and I need to build a query along the lines of

    select description from attribute where attribute_id = :b1 and name = :b2
    

    by the way '1012' and 'ISIN' respectively. (I use a table better and after a CREATE statement for her but I have to rush right now, sorry).

    declare
       k_sql_base        constant varchar2(500) := 'select description from attribute';
    
       t_names           constant varchar2_t := varchar2_t('attribute_id',  'name');
       t_values          constant varchar2_t := varchar2_t('1012',          'ISIN');
    
       l_sql             varchar2(500) := k_sql_base;
       l_rows_fetched    integer := 0;
       l_value           varchar2(4000);
    
       l_cursor_handle   integer;
    
    begin
       -- Construct the SQL statement with column names and bind variables e.g.
       -- 'select description from mars.attribute where attribute_id = :b1 and name = :b2'
       for i in t_names.first .. t_names.last loop
          l_sql := l_sql ||
             case i
                when t_names.first then ' where ' else ' and '
             end ||
             t_names(i) || ' = :b' || i;
       end loop;
    
       dbms_output.put_line('SQL statment = ' || l_sql); 
    
       -- Parse the statement we built above (the remaining steps require a parsed cursor):
       l_cursor_handle := dbms_sql.open_cursor;
       dbms_sql.parse(l_cursor_handle, l_sql, dbms_sql.native);
    
       -- Associate the 1st column of output with variable l_value - required for SELECT statements:
       -- (actually the 3rd param here 'column' seems to be only used to get a datatype, in this case we want a string -
       -- dbms_sql.column_value actually extracts the value into a specified variable, which can be different.
       -- All examples in the documentation pass a local variable without further comment, so not entirely clear what this does other than set the output datatype.)
       dbms_sql.define_column(l_cursor_handle, 1, l_value, 4000);
    
       -- Now go through values array binding actual values to :bn variables in the cursor (similar to USING clause of EXECUTE IMMEDIATE)
       for i in t_values.first .. t_values.last loop
          dbms_sql.bind_variable(l_cursor_handle, ':b'||i, t_values(i));
          dbms_output.put_line('Bound :b'||i || ' as ' || t_values(i));
       end loop;
    
       -- Open the cursor and fetch the result (no loop here because we are expecting a single-row result):
       l_rows_fetched := dbms_sql.execute_and_fetch(l_cursor_handle);
    
       -- 'Returns value of the cursor element for a given position in a cursor'
       -- Copy the value of column 1 to variable l_value (has to match
       -- dbms_sql.column_value(l_cursor_handle, 1, l_value);
       dbms_sql.column_value(l_cursor_handle, 1, l_value);
    
       dbms_output.put_line('Result = ''' || l_value || '''');
    
       dbms_sql.close_cursor(l_cursor_handle);
    end;
    

    Hope that helps...

  • Look up values in the query are retained when a query Panel is used in popup

    We used a panel of popup for the search request. When popup is opened again, the search criteria previous values are preserved. They may not get deleted if pop up attribute of content delivery is lazy not cached. Is it possible to clear these values or is this a bug of frame work?

    This is normal and expected behavior. The query pattern keeps the criteria values, otherwise the query Panel would be empty if you refresh the it by PPR. Depending on the configuration of the ViewCriteria and research underlying link, values can be retained even if you leave the page, and then open the page again.

    If you want to clear the query criteria when you open the context menu, you can implement a PopupFetchListener for the popup. PopupFetchListener runs every time when the popup is open. Here, you can get and to reset the component query programmatically. Check out this blogpost for more details how to reset:

    Binary: Reset and table of search results programmatically

    Dimitar

  • How to bind selectBooleanCheckbox in DB table

    I have selectBooleanCheckbox in table ADF that comes with the base data type of the column NUMBERtable.

    The JSF Page Code:
    <af:selectBooleanCheckbox value="#{row.bindings.PercentFlag.inputValue}"
                             label="#{row.bindings.PercentFlag.label}"
                             id="it7">                                        
    </af:selectBooleanCheckbox>
    Pagedef file code:
     <button IterBinding="MeasureConditionalFormatVOIterator" id="PercentFlag"
                DTSupportsMRU="false" StaticList="true">
          <AttrNames>
            <Item Value="PercentFlag"/>
          </AttrNames>
          <ValueList>
            <Item Value="1"/>
            <Item Value="0"/>
          </ValueList>
        </button>
    When I try to save this value in the database it throws the error:
    Error: PercentFlag: 'false' must be a signed decimal number.

    Could someone let me know how to bind the value 1/0 with db table.

    Thank you...

    Published by: broke on 9 February 2012 06:10

    The entity attribute 'PercentFlag', just change the type BigDecimal (or whatever it is at the moment) to Boolean. JDeveloper will automatically change the column type of database in BITS, which allows that the values 0 (false) and 1 (true).
    From there, once you drag the PercentFlag (or the entire table) in the data source to a page, JDeveloper will automatically add the column as a SelectBooleanCheckBox.
    I also recommend to set the default value for the attribute of the entity to 0 or 1. If the value is null and that the record is loaded on a page and validated, the record is marked as dirty since the SelectBooleanCheckBox knows only 2 values, true (1) or false (0).

  • How spacify display value in LOV

    Dear friends,

    I want to create of LOV, but the problem is how can I spacify a column display value and return value that SQL query.
    select executable_name, object_id, object_type
    from object_mas
    where nvl(object_type,'X') = 'F'
    union
    select
    rep_name executable_name, to_char(rep_num) object_id, 'R' object_type
    from rep
    order by 3,1
    I want to here executable_name column must be return value and the display value.

    How can I do this?


    Thank you

    Hello

    Try to change your query to:

    Select executable_name d, executable_name r
    Of
    (
    Select executable_name, object_id, object_type
    of object_mas
    where nvl (object_type, 'X') = 'F'
    Union
    Select
    rep_name executable_name, to_char (rep_num) object_id, 'R' object_type
    the rep
    3.1 order
    )

    See you soon,.
    JAS

  • binding values in Multiselect guest-urgent

    Hi guys,.
    I have a problem. I need to constrain the values in a guest of multiple selection based on the values of an another command prompt.
    Now the problem is, the multiple selection prompt is binding values, but when I search another value (which must have been limited) it appears.

    I tried using variable presentation in the SQL for the guest. But also, it does not work.

    Any help please...

    Kind regards
    Ronnie

    Do you use two different guests or a prompt with two selections of column inside. If it's a prompt then you cannot use pre. variable in the sql query. given that the variable will be set only after you press 'go '. create two guests. one with pre. variable. then use this variable in the second line. in your dashboard you must select a value from the first fast b4 using your multiple selection prompt.

  • Anyone know how to enter values containing / by the numbers?

    Anyone know how to enter values containing / numbers?  I am trying to enter values of blood pressure requiring this symbol.  Thank you

    You can force numbers does not interpret the value as a number by typing the single quote... like this:

    120/72

    the column text format or

    or enter systolic diastolic and columns in then next:

    Systolic

    Diastolic

    120

    72

    124

    80

  • How the Boolean value off the coast in the system bell auto College after 5 seconds?

    How the Boolean value off the coast in the system bell auto College after 5 seconds?... and also the Bell has to ring only the days... Please help me

    basically take the time, times of beginning and end, including the days of the weeks...

  • How to bind a subvi (worksheet) with another VI

    Hello

    I want to know how to bind the data in the spreadsheet with the block diagram of the VI one another? IE I want to use 3 data collected in the worksheet block diagram has changed into a Subvi and this Subvi should be linked to another diagram of block that accepts these 3 entries to give a warning.

    Please help me how to link these two...:...

    Sorry, but I'm confused by most of your statements. There is a worksheet in Excel and a LabVIEW block diagram, but there is no such thing as a 'worksheet block diagram.

  • How to assign values to the application points to leave on a table

    Hello

    I have a FORM on a table with two or three elements. How to assign values to the elements of the application with the values in the elements of form, every time the value of the element is entry, change or page is sent?

    I created a dynamic action to the region level with Event - change to run the suite of PL/SQL, I tried with 3 different ways in PL/SQL, as shown below, but it didn't work.

    BEGIN

    : APP_FY: =: P1_FY;

    END;

    BEGIN

    APEX_UTIL. SET_SESSION_STATE ('APP_FY', v ('P1_FY'));

    : APP_FY: =: P1_FY;

    END;

    BEGIN

    APEX_UTIL. SET_SESSION_STATE ('APP_FY', v: P1_FY);

    END;

    Then I created an action dynamic at the ITEM level with change event to run the suite of PL/SQL and tried with PL/SQL, as shown below, but it didn't work.

    I need to assign values to the elements of the request form as these elements of the application will be used in many other pages in the application. How to I get there?

    Thank you.

    If a dynamic action of PL/SQL execution, you must send your list of page elements in the parameter "Elements of Page to submit.

    See the section 'run pl/sql' for this post.

    If the page is submitted, the elements of the page will be automatically set to session state, and you can have a page process make the code you have.

  • How to store values of TextField in table

    Hello

    I am trying to write a code to store values of TextField in a table. I know how to convert entire TextField. But after that, we have different integer variables. I can't understand how to store values of these whole different variables in a table by using a loop.

    public class ArrAvg {}

    Public Shared Sub main (String [] args) {}

    int arr [10] = new int [10];

    inputNumbers (arr);

    }

    void int inputNumbers (int arr [10]) {}

    int i;

    TextField field1 = new JTextField();

    TextField Field2 = new JTextField();

    Field3 TextField = new JTextField();

    String value1 = field1.getText ();

    String value2 = field2.getText ();

    String value3 = field3.getText ();

    val1 = Integer.parseInt (value1);

    val2 = Integer.parseInt (value2);

    val3 = Integer.parseInt (value3);

    for (i = 0; i < 10; ++ I) {}

    arr [i] = val1 (this should be replaced by val2 and after that by val3? I don't know how to do this)

    }

    }

    Some body please guide me.

    Zulfi.

    I have stored text field in ArrayList so i should traverse the ArrayList. But when i am converting the contents of Arraylist into integer, i am getting type mismatch despite the fact that my ArrayList is of String type.
    
    
    

    Yes - the ArrayList to string but you create an iterator for object

    Iterator itr = al.iterator (); getting iterator of arraylist to iterate through the items

    This method of "al.iterator" () returns the iterator; for your use case E-online String. See the API

    https://docs.Oracle.com/javase/8/docs/API/Java/util/ArrayList.html

    You set it to 'Iterator' which is NOT a generic, so only objects are returned.

    So get back to string.

    Create your instance of the iterator Iterator.

    Is it possible to avoid "iterator"?

    Why avoid it? Just use the appropriate iterator.

    The class has a 'size' and a method 'get (int index) '. So you can use a loop from zero to the 'size', but simply use the iterator.

  • How to transfer values to the popup while the bean in application scope?

    Hi all

    I use JDeveloper 11.1.1.4

    My scenario is that I have a < af:popup > with a component of < af:outputText >.

    I need pass values of output text dynamically according to the scenarios.

    My grain of support is application scope . So I'm not able to pass values using get and methods.

    My Design as,

    < af:popup id = "p1" contentDelivery = "lazyUncached" >

    < af:outputText value = "#{managedBean.getDynamicText}" id = "ot1" / > "

    < / af:popup >

    Now I run the application I'm not get all values in text during debugging output, I am able to set the value, but it didn't reflect on the page.

    How to transfer values to the popup while the bean in application scope?

    Thank you...

    At the bean, why don't you set the value to a variable pageflowscope and point the outputtext popup to the pageflowscope variable?

    () .getpageflowscope, set AdfFacesContext.getCurrentInstance ("nomvar", value);


    Thank you

    Alisson

  • EA4: enter the bind values dialog box

    For some of my reports, I bind values and the user is prompted to accept the incoming. Everything works well, but is this normal when you enter (say 4) in the box and press on enter, accept the dialog that CR? I would normally expect the button apply be hurry to hit the Enter key. This is expected behavior?

    REDA

    Yes, this is normal behavior even in versions of pre SqlDev4EA1.  It allows you to enter as a bind value multiline text.  All links are treated as data of type varchar, so if you use it as part of a numeric or date, you must explicitly convert the appropriate data type.

  • How to filter values using variable presentation if it uses a multiselec

    Hi gurus,

    Could you pls suggest me here.
    I have a requirement like my version 10G OBIEE isn't filtering report values when we choose a value any in dash prompt.
    I tried to create a variable presentation in the prompt for filtering, but invites under control, he is given a MULTI SELECT.
    I need to filter the values today if select us any value from the command prompt, it does not choose any value.
    How to filter values using MULTI SELECT Here.Please suggest me here.

    Kind regards
    SK

    Functions applied on the columns must be the two places (in report and guest) and must affect is fast after the function applied in the report.

    In your case is prompt value before cast, it seems that it is the reason why it does not work.

    Mark correct/good so pls help.

  • How to assign values to the nested table and passes as a parameter for the procedure?

    How to assign values to the nested table and passes as a parameter for the procedure?

    Here are the object and its type

    create or replace type test_object1 as an object
    (
    val1 varchar2 (50).
    val2 varchar2 (50).
    VARCHAR2 (50) val3
    );


    create or replace type test_type1 is table of the test_object1;


    create or replace type test_object2 as an object
    (
    val1 varchar2 (50).
    val2 varchar2 (50).
    VARCHAR2 (50) val3
    );


    create or replace type test_type2 is table of the test_object2;


    GRANT ALL ON test_object1 to PUBLIC;


    GRANT ALL ON test_type1 to PUBLIC;


    GRANT ALL ON test_object2 to PUBLIC;


    GRANT ALL ON test_type2 to PUBLIC;

    Here is the table object type:

    create the table test_object_tpe
    (
    sl_num NUMBER,
    Description VARCHAR2 (100),
    main_val1 test_type1,
    main_val2 test_type2
    )


    NESTED TABLE main_val1 STORE AS tot1
    NESTED TABLE main_val2 STORE AS earlier2;


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

    Here is the procedure that inserts values into the nested table:

    PROCEDURE INSERT_TEST_DATA (sl_num in NUMBER,
    Description in VARCHAR2,
    p_main_val1 IN test_type1,
    p_main_val2 IN test_type2
    )
    IS
    BEGIN

    FOR rec in p_main_val1.first... p_main_val1. Last
    LOOP

    INSERT INTO xxdl.test_object_tpe
    (
    sl_num,
    Description,
    main_val1,
    main_val2
    )
    VALUES
    (
    sl_num
    description
    test_type1 (test_object1)
    p_main_val1 .val1 (CRE),
    p_main_val1 .val2 (CRE),
    p_main_val1 .val3 (rec)
    )
    )
    test_type2 (test_object2 (p_main_val2 .val1 (CRE),
    p_main_val2 .val2 (CRE),
    p_main_val2 .val3 (rec)
    )
    )

    );

    END LOOP;

    commit;

    END INSERT_TEST_DATA;

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

    Here are the block anonymoys what values attributed to the object type and pass values in the procedure:

    Set serveroutput on;

    declare

    p_sl_num NUMBER: = 1001;
    p_description VARCHAR2 (50): = 'Test Val1;

    inval1 test_type1: = test_type1();
    inval2 test_type2: = test_type2();

    Start


    inval1 (1) .val1: = "testx1";
    inval1 (1) .val2: = "testx2";
    inval1 (1) .val3: = "testx3";

    inval2 (1) .val1: = "testy1";
    inval2 (1) .val2: = "testy2";
    inval2 (1) .val3: = "testy3";

    CSI_PKG. INSERT_TEST_DATA (sl_num = > p_sl_num,)
    Description = > p_description,
    p_main_val1 = > inval1,
    p_main_val2 = > inval2
    );

    end;
    /
    Someone can correct me.

    Thank you
    Lavan

    Thanks for posting the DOF and the sample code but whenever you post provide your Oracle version 4-digit (result of SELECT * FROM V$ VERSION).
    >
    How to assign values to the nested table and passes as a parameter for the procedure?
    >
    Well you do almost everything bad that could be hurt.

    Here is the code that works to insert data into your table (the procedure is not even necessary).

    declare
    p_sl_num NUMBER := 1001;
    p_description VARCHAR2(50) := 'Testing Val1';
    inval1 test_type1 := test_type1();
    inval2 test_type2 := test_type2();
    begin
    inval1.extend();
    inval1(1) := test_object1('testx1', 'testx2', 'testx3');
    inval2.extend();
    inval2(1) := test_object2('testy1', 'testy2', 'testy3');
    
    INSERT INTO test_object_tpe
    (
    sl_num,
    description,
    main_val1,
    main_val2
    )
    VALUES
    (p_sl_num, p_description, inval1, inval2);
    commit;
    end;
    /
    

    See example 5-15 making reference to an element of nested Table Chapter 5 using PL/SQL collections and records in the PL/SQL doc
    http://docs.Oracle.com/CD/B28359_01/AppDev.111/b28370/Collections.htm#CJABEBEA

    1. you don't even have the procedure because it is a simple INSERTION in the table you can do directly (see my above code)

    inval1(1).val1 := 'testx1';
    

    Since you have not yet created all the elements, there is no element 1 "inval1". You need EXTEND the collection to add an element

    inval1.extend();
    

    And then, there is an empty element, but "inval1" is a container for objects of type 'test_object1' not for scalars as "val1", "val2", and "val3".
    If you can not do

    inval1(1).val1 := 'testx1';
    

    You must create an instance of 'test_object1 '.

    inval1(1) := test_object1('testx1', 'testx2', 'testx3');
    

    And so on for the other collection

    You don't need the procedure (as my code example shows), but once you fill in the variables correctly it will work.

Maybe you are looking for