Retrieve selected the value of LOV

Hi friends,

I have a query on the value selected LOV.

I have two fields in my form called Dimension and indicator. We have the table associated with these two fields, DIMENSION_TABLE and INDICATOR_TABLE.

The field two Dimension and indicator are filling the table DIMENSION_TABLE and INDICATOR_TABLE lov. Assume that the user has selected 'ABC' as a value

dimension field LOV and 'XYZ' indicator field lov. Before submitting this user page is by clicking the search button in the page of the form. Then click on the button Search

a pop up window should open that list down the records of database on the basis of LOV of Dimension selected and indicator which is submitted allread. ex: id-1 indicator of Dimension-ABC-XYZ, id-2 size-ABC indicator-XYZ, id-3 Dimension-ABC indicator-XYZ. Like this.

Need help on this. Thanks in advance

Concerning

You want the whole 9 yards after all.

Your Page 8 application should look like

select dimension_table.dimension, dimension_table.indicator
from dimension_table
where dimension like nvl(:P8_DIMENSION,'%')
and indicator like nvl(:P8_INDICATOR,'%')

In the calling Page (say 1) that has the lists to select, on the second lists (supposed P1_INDICATOR) add the following line to the attribute of the element

onchange="setVal();"

In the call header pages updated HTML code below


Now, create an OnDemand application process and insert the following code into it

declare
  p_x01  varchar2(1000) := apex_application.g_x01;
  p_x02  varchar2(1000) := apex_application.g_x02;
begin
  :P8_DIMENSION := p_x01;
  :P8_INDICATOR := p_x02;
  htp.prn('');
end;

You may experience problems of closure of the modal popup. For soolution search this forum.

Kind regards

Tags: Database

Similar Questions

  • Popup LOV selected the value not in session state

    I have a pop LOV element on a page in my application.  Once the item has been selected in the list presented, I would like to use as part of a select statement.  Select statement failed.  It turns out that the value I want the popup THAT LOV is not being saved in session state, so of course the select statement fails.  I determine this by clicking on the session menu item in the developer bar - the item itself presents itself, but the value is empty.

    What would cause a popup LOV value choice not finish by in session state, and how do I make sure he gets there?

    Thank you!

    If you need the value in a SQL report, you can just set "Elements of Page to submit" in your report to your LOV element definition. Otherwise, create a dynamic fire action when your LOV is changed with a set of pl/sql null process action; then set Page elements to send to your LOV element.

    Alternatively you could do it manually with your own function/Manager javascript using the '$s' Apex API by creating a dynamic action that JavaScript is triggered then the loading of the page:

    $("#PXX_YOUR_LOV").on('change',function(){
      var getValue=$(this).val();
      $s('PXX_YOUR_LOV', getValue);
      });
    

    Changing the value in LOV only updates the HTML code, the element must be submitted to the server so that the value that will be put in session state. The gurus can explain more, but the above methods are what I use depending on the situation.

    see you soon,

    John

  • Trigger to run the query when the value of LOV is selected

    HI guys,.

    I have a form in which I have 2 fields in Master and 4 fields in detail, showing all on the same canvas.
    I put a "execute_query" in when_new_form_instance trigger so that when I open the form it is pre - filled.
    The fields get the values LOVs. I want to run the master block query when the user selects a value in LOV, then in what trigger should I put it.
    I tried in 'when_validate_item' and 'when_list_changed' triggers, but it showed an error.
    So, what should I do?

    Concerning

    Ranjan

    user8664136 wrote:
    I want to run the master block query when the user selects a value of LOV

    If master block (header) is based on the table, using LOV without pressing enter_query firstly, update existing record.
    Here's my version (Andreas, sorry, I used your code :))

    TO KEY-LISTVAL:

    DECLARE
         tm TIMER:=FIND_TIMER('TM_QUERY');
    BEGIN
      IF ID_NULL(tm) THEN
        tm:=CREATE_TIMER('TM_QUERY', 1, NO_REPEAT);
      END IF;
      ENTER_QUERY;
    END;
    

    In WHEN-TIMER-EXPIRED:

    IF SHOW_LOV('LOV') THEN
     EXECUTE_QUERY;
    END IF;
    
  • change should only be updated only when the value of lov

    Hi experts Adf.

    JDeveloper 11.1.1.4.0

    I have a usecase where a lov and a field date is in a table. Each time, I have a lov selects for the first time, and then save the button. Then change date is get inserted with null. (it's fine).

    Now when I change the existing value of the lov and then clicking on save, then the modified date is updated. (it is also very good).

    Scenario question: suppose that in the first row, WE show dropdown because it is saved in the database and change date as null.

    However when I try to change the value to lov ' sales and do not click Save. Now, once I select IT and clicking record. In this case, change date is updated.

    Idle screenplay: Change Date must be updated if there is no modification.

    Untitled.jpg

    If (operation == DML_UPDATE) {}

    setModifyDate (newTimestamp (System.currentMillis));

    }

    You can check the value of publication and skip this step if postedValue is newValue.

    See this example: http://adfcodebits.blogspot.com/2010/07/bit-22-using-getpostedattribute-to.html

    Dario

  • Impossible to select the value from the search screen (quick select, then) on OFA

    Hello

    We have a problem with a user who are not able to select any value from the LOV on any page of the Oracle.

    1. click the button of LOV

    2. search + go

    3. Select or quick selection nothing happens (error on the Page appears in the left corner of the homepage)

    4. only cancel works.

    Any suggestion would be appreciated.

    I saw a similar question posted Impossible to select the value from the search screen (quick select, then) on OFA

    But unfortunately this is not the answer.

    Thank you

    Sam

    Display of the solution to help others. I tried to connect a SR and suddenly a pop Note ups that helped.

    The problem is related to the profile "Self Service Accessibility Features" customer has defined for the user concerned.

    Follow these steps:

    1 change the value of 'None' profile at the user level.

    2 disconnect / connect to the application and testing.

    See you soon.

  • How can I retrieve all the values in a single query in the oracle XML

    Hi all

    I have xml format below, how do I retrieve all the values in a single query.

    < files >

    < job > MANAGER < / job >

    < details >

    < ename > JONES < / ename >

    < sal > 2975 < / sal >

    < ename > BLAKE < / ename >

    < sal > 2850 < / sal >

    < ename > CLARK < / ename >

    < sal > 2450 < / sal >

    < / details >

    < / documents >

    Thank you

    I prefer desgin a little more sophisticated xml and wrap the details in a separate label.

    Then you could something like that

    1 with testdata until)
    2. Select xmltype)
    3'
    4 MANAGER
    5


    6
    7 JONES
    8 2975
    9

    10
    11 BLAKE
    12 2850
    13

    14
    15 CLARK
    16 2450
    17

    18

    19
    20 ') in the form x
    21 double
    22)
    23 select
    24 j.job
    25, d.ename
    26, d.sal
    27 of testdata
    28 join
    29 xmltable ("Scriptures" in passing testdata.x)
    30 columns
    31 job varchar2 (30) path "job."
    32, details xmltype path «details»
    (33) j
    34 (1 = 1)
    left outer join 35
    36 xmltable (' details/emp' in passing j.details)
    37 columns
    path of varchar2 (30) 38 'ename' ename
    39, path of varchar2 (30) sal "sal".
    (40) d
    41 * (1 = 1)
    >/

    JOB                            ENAME                          SAL
    ------------------------------ ------------------------------ ----------
    JONES MANAGER 2975
    BLAKE MANAGER 2850
    MANAGER CLARK 2450

  • How to call a method defined in AM when I select a value in LOV

    Lets say there is a LOV. The scenario is as soon as I select a value in LOV, a method should be called I wrote in the AM. And the output of the method in an output text area.

    I am not able to understand how to call a method when the user selects a value from the LOV.


    This is wht I did. I had created the connection for the method. One replaced the property autosubmit to the LOV for real and in the properties of the output area, in partial submission trigger property, the ID of the LOV. But I don't have any place where I need to call the method. I'm also not able to remove a listener for action on the LOV
  • Programmatically fill the values in LOV

    Hello
    I use JDeveloper 11.1.2.2

    I need to fill in the values in LOV programmatically taking values in a result set.
    The LOV is related to support bean and the LOV is updated as the value in the parent THAT LOV is selected.

    Thank you
    Nigel.

    Nigel,

    You can browse the game to build a list of tables of results. Use the ArrayList instance to populate the list.

    See the example (even if the blog is about different usecase, the example here shows how to generate a SOC programmatically).

    http://Redstack.WordPress.com/2012/06/19/method-run/

    Arun-

  • fill in the selected field of text based on the value of lov

    Hello
    Depending on the value selected in lov, I want to fill another text field. Here is the code I wrote

    Of the PFR:

    If (PageContext.isLovEvent ())
    {
    String lovInputSourceId = pageContext.getParameter (SOURCE_PARAM);
    If ("lovCategory".equals (lovInputSourceId))
    {
    java.util.Hashtable lovResults = pageContext.getLovResultsFromSession (lovInputSourceId);
    if(lovResults!=null)
    {
    = (String) lovResults.get ("lovCategory"); value string
    amobj.categorycode (value);

    }
    }
    }

    Code AMImpl:


    {} public void categorycode (string code)
    sundryCodeVOImpl vobj = getsundryCodeVO1();
    vobj.setWhereClause ("lookup_code =" + "'" + code + "'" ' ");
    vobj. Reset();
    vobj.executeQuery ();

    String desc = vobj.first ().getAttribute("Description").toString ();
    String attr = vobj.first ().getAttribute("Attribute1").toString ();

    testEOViewImpl vobj1 = gettestEOView1();
    vobj1. GetCurrentRow () .setAttribute ("CodeDescription", DESC);
    vobj1. GetCurrentRow () .setAttribute ("PurchasingCategoryCd", attr);
    vobj1. ExecuteQuery();
    }

    With this code, updates to the code attributes, PurchasingCategoryCd values get inserted in the database table, but they now appear in the text fields when a value is selected in lov.

    Please tell me what is the error that I do.


    Thank you
    Sunny

    Hi sunny

    Going through the thread, it seems that the application of LOV VO has three columns viz A, B and C. You want to put the value of the B column to a text field, if this is the case. Simply create a LOV mapping for column B.

    Also I suggest you take a messagestyledtext for the B field as value comes form LOV himself.

    Thank you
    AJ

  • Submit after selecting the value of Popup LOV

    Anyone know if it is possible to make the Popup LOV behave as the list select and resubmit the page after selecting a value?

    The Select list has an additional attribute in properties named "Page Action times changed value". One of the options for this attribute is "submit Page". This attribute is not available for Popup LOV, but I would like to be able to create the same behavior. The number of values that might be returned for this article is too many to use a Select list...

    I think I might be able to add a bit of Javascript somewhere and do a "onChange.submit ()" or something like that, but I'm not sure of the syntax, or where to put it.

    Any help gratefully received...

    TIA,
    Eric

    Hello Eric,

    Create a "dynamic Action" that fires when the value of Popup LOV is changed and set the Action to "submit Page".

    Thank you
    Machaan

  • How to read the value of LOV...

    Hello.
    I'm new to OFA. I have a following problem
    In Jdevloper I created the OFA project. In what I messageLOVInput a field id is PONumber. When the user clicks on torch a LOV page is open and user search on this subject. When the user clicks a line any number LOV then PO is added to the PONumber field. I want to read this value when the user clicks on the button "submit" a stored procedure is called and the number of PO is closed.


    Concerning
    Ajay Sharma

    Hi Ajay,

    You can get the selected value of LOV in many ways, this is one of the most simple ways:

    -----
    msgLOVInputId is the Id of your LOV value bean ID.
    String strLovValue = pageContext.getParameter ("msgLOVInputId");
    -----

    You can write in the method ProcessFormRequest and look for the value.

    Kind regards
    Swati

  • Select the values from the list

    All,
    I need help for this task.
    I have a Select list element with display value (names emp) real values(emp ID) /LOV now I want to complete the following text items (Dept, location, wages etc.) based "names of emp" I took from the list select... any help? Thanks in advance.

    Hello

    The simple way is:

    1. change select list property settings: action, highlighted Page changed: "Send Page".
    2. write a process on submit, type pl/sql, then fill the (Dept, location, salary, etc) with the select query where condition check for emp_id =: Select_list name.
    set the condition for the process while it is called when a user selects the name of the employee.

    THX
    MK

  • Select the value of list view

    Hi all
    Does anyone know how to make a ReadOnly list select and display the display value not the return value when you change the data? I made the list select a text field, text box, etc... but the return value is displayed and not the display value. I don't want my end users to edit the article, but I don't want to show them the value of display. Ideas and help is appreciated, thanks.

    Hello

    As you do not want your users to change the item, could you not use one of these 'View text (based on LOV)' instead?

    Andy

  • Select the value inside the digital

    For more convenience, I would that the behavior of my digital controls for automatic selection the entire value when I click on the control.  So when it gets the focus, the value should be selected.

    I don't see a way to do this.  Any ideas?  The increment on a digital buttons will select, but these data types that I put to float.  Then increment does not much sense.  In my case, I the user perforation in values with the keyboard.  It would be nice to not have to select the 0.000 already present before data entry.

    Thoughts?

    @gdargaud: with a small modification of your idea can work!

    Just to simulate a House + shift - end event to select text:

    	If (event == EVENT_GOT_FOCUS) {}
    FakeKeystroke (VAL_HOME_VKEY);
    FakeKeystroke (VAL_SHIFT_MODIFIER |) VAL_END_VKEY);
    }

    This is valid for text and digital controls.

  • Element of change based on the value in LOV

    I'm trying to disable the item (text box), based on the value of the LOV. And it doesn't seem to work.

    Is it possible to see what is happening in the level of the events? The LOV is perhaps not "changing" ing?

    Dynamically change the item values

    Patrick Wolf-Oracle responded to the question - get the firebug.

    Looking at the console I discovered that the returned of LOV value includes spaces. Resolved issues.

Maybe you are looking for