create popup LOV values depends on the return values of select tabular list

Hello

My requirement is

In a table, first column is selection list and second column is LOV Popup.

I want to create if select user from the selection list value 'A' then displays the popup LOV values.

If the user selects 'B' values in the select list and then display nulls within the popup LOV.

Kind regards

Arianne.

Hi ujwala1234,

ujwala1234 wrote:

In a table, first column is selection list and second column is LOV Popup.

I want to create if select user from the selection list value 'A' then displays the popup LOV values.

If the user selects 'B' values in the select list and then display nulls within the popup LOV.

Use the Popup LOV cascading given by Jari wool in this blog: Blog APEX of Jari: pop-up list of the 'waterfall' Article on slot form of

Write your Popup LOV query such as if, 'A' is selected it returns other values it will return null value.

Kind regards

Kiran

Tags: Database

Similar Questions

  • Question of value Popup Lov key (description of the poster, returns the key value) by default

    Hello

    I have a Popup Lov key (description of the poster, returns the key value) and I want a default value. It is based on a list (user name, id).
    I tried to put the id of the user logged on as default, but what I see on the screen in the field is the value of the id, not the username.
    How can I pass the user id and see the user name?

    Thank you.

    Oh! My bad, I thought you are talking about regualt lOVs not popups.

    OK, so that's what you need to do, I tried it and it worked for me:

    your popup LOV > default > type: body of the PLSQL function > and enter a query like:

    declare
    UID number.
    Start
    Select user_id from the uid of the user
    where UPPER (username) = UPPER(:APP_USER);

    This should show username and retune userid.

    Hope this helps,

    Sam
    Please give good answers by marking correct or useful.

  • Popup LOV button 'search' in the Versions of IE - CSS Bug?

    Hello

    I just want to know if anyone has the same problem - it's only a small (but there is always a user who wants to fix!).

    When you display the Popup LOV window in Internet Explorer (IE9 and IE8) buttons are hard to read:

    https://plus.Google.com/photos/104459804528712563956/albums/5847964722134039761?AuthKey=CPGhjNi7rNf0Jw



    Kind regards
    Amanda.

    Published by: Amanda Walsh on 23 February 2013 13:13

    Amanda Walsh wrote:

    I just want to know if anyone has the same problem - it's only a small (but there is always a user who wants to fix!).

    I guess from what I see it is theme 25 (or one of his relatives there)? Can certainly duplicate this theme 25.

    When you display the Popup LOV window in Internet Explorer (IE9 and IE8) buttons are hard to read:

    https://plus.Google.com/photos/104459804528712563956/albums/5847964722134039761?AuthKey=CPGhjNi7rNf0Jw

    Confirmed on IE8 and 9. OK work on IE10 and any other recent, I tested on Windows, OS X and iOS.

    The involved CSS rule is:

    input.lovButton.hotButton {
      ...
      background-image: url('data:image/svg+xml; base64, D94bWwgdmVyc2...'); /* Encoded SVG truncated for forum legibility */
      ...
    }
    

    Which explains the IE8 problem because it does not support SVG background images. Cannot identify what is the problem with IE9 as it should support it. (Likely to be a browser bug: in the way it handles the complex cascade of the rules in question, or by the combination of the properties involved.)

    APEX point of view, I would say that the user that this problem is just. It is certainly a problem of accessibility because that made the contrast ratio of the button text in the background is 1.1:1; well below the WCAG guidelines. In addition to the rule for the SVG gradient background image, the CSS theme should include a rule of background color of help for browsers that do not support SVG backgrounds (or mysterious problems their display). It is common when you use advanced CSS backgrounds.

    So there is an easy solution to add the rule of rescue definition of Page HTML Head Popup list of values of the model, after the substitution string #THEME_CSS # :

    
    
  • Ability to create a Message in response to the end user by selecting 'Cancel' or 'block' after clicking on a link to a URL?

    Hi all:

    When a user clicks on a link/button to connect to a URL, the Security dialog box appears automatically giving them options 'Allow', 'Block' or 'Cancel '.  Should they choose 'Block' or 'Cancel', can trigger us a message box informing them that they blocked or cancelled the connection?

    With traditional message boxes, we are making them, that is to say

    var rtnFromBox = xfa.host.messageBox ("Information is missing.\n\n are you sure you want to continue?", "Missing Information", 1, 2);

    If (rtnFromBox == 4) {}

    xfa.host.messageBox ("Let's keep DC.","", 1, 0);

    }

    But with the security of URL dialogue, we are not calling it a variable - it happens.

    I suppose a similar question could be applied to a Save"" button.  Where if the end user selects 'Cancel' in the dialog box "save under", a warning may pop up to remind them to register quickly.

    Thoughts?  Thank you!

    Brian

    I don't see a way to do what the Security dialog boxes are not executed by the JavaScript API and does not return all the values that you can use.

  • How to control the length of field, select items list to 4.2 page

    I apologize in advance if I ask what is obvious, but simply, I couldn't get a response yet:

    I would like to know how to control the length of the elements of the type selection list page 4.2
    (as for a normal textfield: in the case where the content is longer than simply not all appears on the screen)

    help much appreciated
    see you soon
    Wim

    WimDeGroot wrote:
    I apologize in advance if I ask what is obvious, but simply, I couldn't get a response yet:

    I would like to know how to control the length of the elements of the type selection list page 4.2
    (as for a normal textfield: in the case where the content is longer than simply not all appears on the screen)

    Normally the browser automatically resizes the selection list based on the content.

    What version of the browser / do you use?

    What theme?

    What model page/region?

    What form/article layout?

    What content does not match?

    (Basically the best way to get help with problems of this type is to reproduce on apex.oracle.com and see us actually...)

  • Two unique LOV values update

    I have set up a form in the APEX that allows the user to select a city using a popup LOV. This is done in order to restrict the user in the selection of the city in a drop-down list itself is generated based on the field COUNTRY / STATE that the user has already filled (i.e., waterfall LOVs). It works fine using the following SQL code:

    Select town_name as display_name, town_name as city return_value

    TOWN_NAME is the column varchar2 with the list of the cities in the table of the CITY. The result is put in a CITY varchar2 column in the CONTACT table.

    CITY table

    TOWN_ID

    TOWN_NAME

    CONTACT table

    CONTACT_ID

    COUNTRY

    STATE

    CITY

    TOWN_ID (hidden)

    As you can see in the table of the CITY, each city also has a unique TOWN_ID which I also want to store in a hidden column in the CONTACT table. Can I change my SQL statement so that the return value is in the place of the TOWN_ID and joins the table of the CITY, but I really need store both (so that any user can easily export city in a CSV file names but the table also stores the TOWN_ID because it gives me access to other information about the city. Just store the name of the city is not enough it is not unique, because initially the cities are chosen depending on the COUNTRY and STATE in cascade LOVs).

    I guess I need to set up some kind of trigger so that when the user selects a popup LOV city name then the return value is placed in the column of the CITY, but the CITY. TOWN_ID is also in the CONTACT. TOWN_ID without the user even knowing. I don't know how to get there so I hope someone can help?

    Thank you

    Put the following in the header HTML of your items:

    
    

    Here is the link http://apex.oracle.com/pls/apex/f?p=31517:106:108980692579304:NO example check this

  • 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

  • The display "Display value" in a popup LOV

    Hi all

    I wonder if you could help me with this question. I have a LOV similar to this:

    Select the name display_val, id return_val
    < Table >;

    I want the LOV and form to display the display value "" and not the code. If I use LOV field type, it works, it displays the significant value to the field at a time, shape the LOV.

    The LOV having too many values, I need to go to a popup LOV. If I use the popup LOV the LOV will work ok, however, the form displays the ID

    How can I make the form to display the value of the end user and not the ID?

    Thank you

    You must set the element type ' Popup LOV key (description of the poster, returns the key value).

  • Can we make Popup LOV (views, return) key point as EDITABLE field

    Hello

    Can I do Popup LOV key (description of the poster, returns the key value) point as editable... by default, we cannot get anything... Select in the list... it does allow the user to enter the text in the field.

    Thank you
    Deepak

    Hello

    It does not work because it is not supposed to work this way = not)
    You must write the code to make it work.

    How it should work if your display value is not unique?
    How do you determine the value of the key that is inserted to the table if you write just something in the text field?

    This should make any editable element

    $x('Px_YOUR_ITEM').disabled = false;
    

    Of course, there may be exceptions

    BR, Jari

    Published by: jarola on November 22, 2009 20:41

  • How to disable the popup LOV

    I have a few items I have disable according to another article with the code in the footer 'region' below.

    The item is grayed and you can not enter anydata inside, but the Popup LOV is always enabled.
    So you can call it upward, select a value, and it will enter in the item.

    How can I disable also Popup LOV icon next to the field of entry points?
    Thank you.


    Code region Footer of the four elements with the Popup LOV
    < script >
    $f_DisableOnValue ('P8_REC_COUNT', '1', 'P8_OFFSET_FUND_CODE');
    $f_DisableOnValue ('P8_REC_COUNT', '1', 'P8_OFFSET_ACCT_CODE');
    $f_DisableOnValue ('P8_REC_COUNT', '1', 'P8_OFFSET_PROG_CODE');
    $f_DisableOnValue ('P8_REC_COUNT', '1', 'P8_OFFSET_LOC_CODE');
    < /script >

    Published by: SPoulos on April 8, 2010 10:12

    Use the event of js on Exchange. Expand the code js with the names of your items.
    Or, use ajax for displays of apex of queries and to know what elements are popup and disable
    those who use the ajax response.

    Dene

  • OnChange doesn't work on lov popup for a field in the collection

    I've defined a collection and used a multi-record entry
    I'm trying to assign values in the various fields of the record collection based on a popup lov value in the same folder of the collection

    For this I used an onchange in field properties in the State

    but not work

    When I try to use the same thing for the different field of a popup lov works well (list, textfield, etc.)

    Why?

    When I use a popuplov in the page as a field not in a multi-record factory too...

    Can you help me?

    Thank you
    Daniel

    Hello

    It's because of the way that the element is built by Apex - it doesn't have a 'Attributes of the HTML Form element' setting as it is on a normal form element.

    In your area, add something like the following in the foot of the region:

    <script type="text/javascript">
    var f03 = document.getElementsByName("f03");
    if (f03.length > 0)
    {
     for (var x = 0; x < f03.length; x++)
     {
      f03[x].onchange = new Function("alert('Here');")
     }
    }
    </script>
    

    replace f03 whose attribute name of fnn for your items (you can check this by doing a View Source on the page).

    Replace "alert ('Here')"; with the script you want to run.

    Andy

  • Action dynamic apex on popup lov

    Hello

    I have a popup lov in apex 4.1.1.00.23, I want to put some values after the selection of an item from the LOV. That is, select a certain customer and set variables based on customer ie customer...

    I created a dynamic value on the evolution of the popup lov, but we note the change on the selection of a different value.

    If I save the form and then come back shows the correct data, not just directly after changing the value after the value in the LOV POP.

    Dynamic value is triggered on the evolution of the LOV POP to set some values, but it does not work!

    Any help appreciated.

    Thank you

    David

    Thank you

    I managed to get this working:

    Solution for anyone interested:

    Create a dynamic action advanced popup lov

    Event: change

    Select a Type: element

    Element was the popup lov

    No condition

    Now to update the items, I used the set value

    Action: value

    Parameters: Sql statement

    SQL code

    In page items to submit (popup lov name), it's the part that I had not before!

    Item is updated.

  • Skillbuilders Save on exit and form Plugin tabular popup LOVs in IE

    Hello

    I currently use the Skillbuilders Save on exit for a tabular presentation plugin and have a problem that only happens in Internet Explorer (tried 8 and 9) - it does not occur in Chrome or Firefox. I created the dynamic Action for the plugin to execute when the Page is loaded according to instructions.

    My present tabular presentation of the fields that are popup LOVs. If in IE, I change the value of a field in the form of tables and then click on the LOV Save output warning goes off and I have to click OK on warning before my LOV popup window appears. For existing records I have overcome this problem by changing the switch to disable the warning :
    :button, .lov a
    The question I have now is when I add a new line to the tabular form using the button "Add a line" standard. If I change the value of a field on the new line, and then click the LOV I get the Save on the output warning message. I suppose that it is not deleted in the same way that it was for existing records, because the new line does not exist at the time wherever the dynamic Action then ran the lov (link) has not been added to the disabled items.

    I would like to know the following, please? :
    * Is there a known difference in behavior a popup LOV in IE form (which seems to act as if you leave the page) compared to say Firefox?
    * Is it possible to add the link LOV popup on the new line of tabular form it also disables the warning?

    I have created an example of my question here:

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

    Concerning

    Karl

    Hi Karl,

    The difference is that IE (wrongly) raises the onbeforeunload event whenever you click an anchor point, even if the anchor does not take the user to another page - as is the case with the Popup LOV.

    Unfortunately, the plug-in must ensure that its code is executed before any other thing which is the reason why he's working onload. The only thing I can think is that you manually add the same functionality yourself using the public methods. For example, when a new row is added through the form of tables, you must add a click handler to anchor LOV. The call, click on:

    $(document).apex_save_before_exit('disableWarning');
    

    Then use setTimeout to solve the warning after a short period of time:

    setTimeout(function(){$(document).apex_save_before_exit('enableWarning');}, 250);
    

    Let me know how it works for you.

    Kind regards
    Dan

    blog: http://DanielMcghan.us/
    work: http://SkillBuilders.com/APEX/
    Twitter: https://twitter.com/dmcghan

  • Toggle the textbox under the option from the list, the list is dependent on the Radio

    Hello

    I'm trying to turn text_box which depends on option select_list, select_list depends on radio_button.

    I am able to toggle select_list using radio_button options, but I am unable to manage the text box depending on once again this point SELECT_LIST.

    to the title of the header html page: -.

    ---------------------------------------
    < script type = "text/javascript" >

    function disableOnValue (o)
    {

    If (o.value == 'Y')

    {

    document.getElementById('P86_Select_list_item').disabled = false;

    }

    on the other

    {

    document.getElementById('P86_Select_list_item').disabled = true;

    document.getElementById('P86_text_box_item').disabled = true;

    }

    }

    < /script >



    < script type = "text/javascript" >

    $(document) .ready (function)

    {

    $('#P86_Select_list_item').change (function)

    {

    If ($(this).) Val() is 'Other')

    {

    $('#P86_text_box_item').attr ("disabled", false);

    }

    on the other

    {

    $('#P86_text_box_item').attr ("disabled", true);

    }

    });

    });

    < /script >
    -----------------------



    under the terms of the Region_Source of the region, including view point: - < b > before < /b > foot
    -------------------
    < script type = "text/javascript" >

    If (document.getElementById('P86_radio_button_0').checked is true)

    {disableOnValue (document.getElementById('P86_radio_button_0')) ;}

    on the other

    {disableOnValue (document.getElementById('P86_radio_button_1')) ;}

    < /script >

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


    and to the title of point Radio_button, HTML Form element attributes: - < b > onchange = "javascript:disableOnValue (this); "< /b >

    also similar to the title of the text_box, HTML Form attributes element point: - < b > disabled < /b >


    any help


    Deep

    Hi deep

    You need to call a javascript function to create an event onchange on the selection list depends on the return value of 'other' (pThat) to allow your text field.

    You try to do a little too much at once.

    You need...

    Radio button - onchange - javascript funtion1 (to activate the selection list)
    Select list - function2 javascript onchange (to activate the text field)

    I hope this helps. Holla back if you get stuck.

    Don't forget to mark the answers useful or correct ;)

    See you soon

    Ben

  • POPUP LOV

    Hi all:

    I have a simple question about POPUP LOV. Any way to limit the entry of an item so that POPUP LOV values? In other words, the computer scientist must select a value from the list only and do not have the right to type in any value for this data field.

    I appreciate any help with this issue.

    OK, hold the jokes for now :), but I use the Application Express 2.1.0.00.39.

    Hello

    If the option suggested by drama9346 is not available in the Apex 2.1, you can try the following in the 'form element HTML attributes' of the LOV page element:

    readonly="readonly" ;
    

    Thank you
    Rohit

Maybe you are looking for