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.

Tags: Database

Similar Questions

  • actions dynamic apex 5.0

    I have upgraded an apex 5.0 application and have some bugs related to the dynamics of the actions.

    It seems that even when the field 'referred to submit page' was filled in the value / elements of session state is not updated and therefore cannot be used in the dyamic action.  (its possible I had set this manually via js in html attributes but if so then it was lost due to the possible conversion, but it seems less likely).

    Anyone had the same experience or know a way to solve this problem?

    Hello

    as already pointed out above code isn't really a JavaScript Expression, because it returns nothing. APEX 4.2 and earlier versions where more forgiving, because they were using eval to run this dynamic JavaScript code. EVAL is very tolerant and also accepts code that does not return anything. Due to security best practices, APEX 5.0 is not making more use of eval and expects that the JavaScript expression is really an expression and not a block of JavaScript code. Please see the documented change in behavior ' 4.24 dynamic Action Set Value Action Set Type JavaScript more strict Expression "in our Notes to the https://docs.oracle.com/cd/E59726_01/doc.50/e39143/toc.htm#HTMRN310

    In my opinion the dynamic action above should actually be of type 'Execute JavaScript Code' instead of 'set '. It's what he's doing.

    You can execute the statement following SQL in the SQL commands to get an idea of what dynamic actions could be affected by this change in behavior. He's looking for multi line JavaScript Expressions.

    select page_id,
           page_name,
           dynamic_action_name,
           action_name,
           attribute_05
      from apex_application_page_da_acts
    where application_id = 96695
       and action_code  = 'NATIVE_SET_VALUE'
       and attribute_01 = 'JAVASCRIPT_EXPRESSION'
       and instr( attribute_05, chr(10) ) > 0
    order by page_id, dynamic_action_name;
    

    Sorry for the inconvenience, this change of security has caused for you.

    Concerning

    Patrick

    Member of the APEX development team

  • APEX 4.2 font size popup LOV page elements is different

    Hello

    I have a page of form one of the elements Pop Up LOV. But I could see it's font size is different from the other page elements.

    No idea how to fix?
    I use APEX 4.1 on 11g with OHS.

    Thank you
    Mehabub

    Sheikh Mehabub wrote:
    Hi, AEC,.

    I created an example in apex.oracle.com
    Workspace: MEHABUB
    user: APEX
    PWD: apex

    Application: 22540
    Page: 2
    One is to select the list and the other is popup LOV. If you select from the list of selection and Pop up LOV you will see the font size LOV is different from the list of selection or other page elements.

    This seems to be intentional. The CSS theme explicitly sets the font size of LOV pop - up is greater:

    /* Select list etc */
    table.formlayout td input.text_field, table.formlayout td select.selectlist, table.formlayout td input.password,
    table.formlayout td input[type="text"], table.formlayout td input[type="password"], table.formlayout td textarea {
      ...
      font: normal 12px/16px "Helvetica Neue",Helvetica,Arial,sans-serif;
      ...
    }
    
    /* Pop-Up LOV */
    table.formlayout td.lov input.popup_lov {
      ...
      font: normal 14px/16px "Helvetica Neue",Helvetica,Arial,sans-serif;
      ...
    }
    

    If you really want to do the same, then you need to replace the theme CSS with:

    /* Pop-Up LOV same font size as other controls */
    table.formlayout td.lov input.popup_lov {
      font-size: 12px;
    }
    
  • disable the Popup LOV and its icon in a tabular form

    Hello

    My requirement is

    I want to disable Popup LOV and tabular icon.

    If I select the first value in column selection list 'A' then second column Empname disable window popup lov

    and if I select 'B' and then select empname popup lov.

    Kind regards

    Arianne.

    Hi ujwala1234,

    ujwala1234 wrote:

    I want to disable Popup LOV and tabular icon.

    If I select the first value in column selection list 'A' then second column Empname disable window popup lov

    and if I select 'B' and then select empname popup lov.

    You can do it by using dynamic action.

    Use the javascript code in the next thread to turn lov popup tabular icon.

    Reference: How to disable the popup LOV (query based LOV) in the form

    and related to put on over ReadOnly rank tabular thread

    NOTE: instead of setting custom "row_item_disabled" CSS class use the integrated class APEX "apex_disabled."

    If it is still impossible to solve, re - produce the question on apex.oracle.com and share the credentials from the workspace.

    Kind regards

    Kiran

  • 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

  • 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

  • Enable/disable popup LOV image anchors in table form

    Hi all

    I'm trying to find the solution how to toggle anchor image popup LOV. When I disable the popup element, then only the text field is disabled but the image is still active and opens the LOV. I tried to implement the solutions but to no avail.

    I created DA (triggered after updating the necessary region) with the code below which disables the necessary field.
    $('td[headers="DEPTNO"] input').each(function(i)
        {
                $('td[headers="DEPTNO"] input:text').disabled="disabled";
    $($('td[headers="DEPTNO"] input:text')[i]).addClass('apex_disabled');
    }
    )
    Could anyone help me with a code which will also disable the image?
    
    Thanks in advance!
    
    My testing appl:
    
    www.apex.oracle.com
    
    *WS:* kurintest
    *username:* [email protected]
    *passwd:* kurintest
    
    *appl. name:* disable_popup_icon
    
    -Jiri                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

    Hello Jiri,

    Please see your page:

    I changed the dynamic action:

    $('td[headers="DEPTNO"] input').each(function(i)
        {
                $('td[headers="DEPTNO"] input:text').disabled="disabled";$($('td[headers="DEPTNO"] input:text')[i]).addClass('apex_disabled');     $($('td[headers="DEPTNO"] a')[i]).click(function(e) { e.preventDefault(); });$($('td[headers="DEPTNO"] img')[i]).addClass('apex_disabled');});
    
    
    Hope it helps!
    Regards,
    Kiran                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
    
  • Popup LOVs... where's the search value?

    Someone had a bit of luck to dig into the background of the popup LOVs?  Here's a question I'll try to find the answer to.  I have half of the answer, but not all.

    We have an external system that provides real-time data via webservices.  Our goal (and we did that day no problem) is to consume the XML response from webservice with PL/SQL and then turn us these data into pipeline of what looks/walks/talks like a table or view using functions.  The point here is to make these data available to Apex for various things, including the popup LOVs built on the pipeline functions.

    The challenge is that some Web services provide a large amount of data (for example, a list of parties, who at this moment in our dev environment is only about 16 K records, but as we move forward, we know that these data grow to be a good lines 118K or more).  Already at just 16K records, it takes a good 30 seconds for questioning.

    Popup LOVs of apex seem to be based on the model that they perform an implicit request by all reviews and then apply the filter on the value of research (if there is a value entered).  It is very good for LOVs against standard tables and views, but on larger volumes of data to a function in the pipeline against a data source that is out of our control... not very good.

    We made a functional decision on some LOVs (such as a list of 118 K coins) that any user in their right mind really never would come into such LOV and simply browse through the records.  They would already have an idea of a reference number or description of the part they would search by.  Our strategy was so to the LOV follow these steps:

    1 return at any line if the user did enter no search criteria.

    2 manipulate the LOV dynamically if the user did enter search criteria such as the result is * pre set * filtered first through the webservice (it accepts input parameters).  This greatly improves performance and so far we have work * for Apex regular page elements * but not for tabular forms (which is where my question arises.

    Here is an example of such a definition LOV:

    RETURN ext_parts_util.get_parts_lov_sql (p_search_val = > apex_application.g_x02);

    By trial and error, we have found that when the user is in the popup LOV and enters data in the search field and click the "Search for", the value they use to search land behind the scenes on the server in apex_application.g_x02.

    Thus, within this service, we return a SQL string that looks like one of two things:

    1. If apex_application.g_x02 is null, we return to this (a dummy SQL statement that returns no rows):

    Select "," Ruy where double 1 = 2.

    2. else (there is a search value), we call our webservice in pipeline function and pass it apex_application.g_x02:

    Select part_number d, part_number table r (my_package.my_function (p_part = > '%' | apex_application.g_x02 |)) '%'))

    The pipeline works calls the Web service and passes the value of searching with wildcard characters of apex_application.g_x02 and the Web service itself filters the data down, ahead.  This improves performance greatly for us.

    Now, here's the problem and the real question... above fantastic work for Apex points page.  But for a popup LOV in tabular form, it's a no-go.  In a tabular presentation, the popup LOV apparently differs significantly.  The search does not value land in apex_application.g_x02 in this case, and we not were able to know where it ends.  Popup LOVs in tabular forms also lack other declarative features (Don't they always with tabular forms, which appear to be three releases behind the common page elements?)  GRRRR...) popup LOVs such as what makes them not get the first set of rows, etc then we can even use it to help discourage a wide open query.

    Has anyone found where the search for value in a popup LOV in a sub form of table for the back-end that happens? Bottom line, this is what we are looking for so we can define these SQL LOV to refer to everything that is instead of apex_application.g_x02.

    He got after all.  I got to work with a DBA who could clear the SQL area and then watch as I performed a search in the LOV.  Example:

    SQLT AND EXECUTIONS

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

    Select 1 37.371843 / * generated * / D, R) (select

    PART_NUMBER | ' -- ' || part_description d,

    PART_NUMBER fofes_ext_parts_v r)

    wwvlovinlineviewname where upper (D) as

    '%'|| Upper(:WWV_LOV_RETURN_KEY_UTIL_1111) | » %'

    It seems that the value in the search LOV popup on a tabular presentation of the land into a link called "WWV_LOV_RETURN_KEY_UTIL_1111" variable

  • From popup LOV filling of the other LOV

    How to dynamically fill the LOV based on the value selected previously.

    ex:

    P1_ITEM:

    Type: POPUP LOV

    List of values definition: select deptno, deptno retired from the Department.

    P2_ITEM:

    Type: POPUP LOV

    List of values definition: select empno, empno ret from emp where deptno =: NVL(:P1_ITEM,deptno)

    Version: 4.2.2

    Hi PT,.

    Make sure first that your second item LOVs query contains your P1_ITEM somewhere in the where clause is dependend.
    Then add an onchange dynamic action when P1_ITEM changes your first action is to PL/SQL:

    Code: NULL;

    Items to submit P1_ITEM

    Then add another action that refreshes your 2nd article.

    Kind regards

    Joni

  • Issues Popup LOV

    4.1.1 forms

    Oracle 10g

    Windows

    20 of Firefox

    I have a form region that has a Popup LOV. Since this region is used by different pages, that it is set up on the Page 0 and the item source type is static. The value is assigned through process. Because I don't want the user to enter data, I put the Settings entry field as entrable not, see the display value and store Return Value. If I select in the popup LOV, it shows the display value. But if it is assigned, or used a value by default, it is not displayed. For a new line, I want the default name of the employee current user (based on the number of employee registered in a part of the application); I tried a dynamic action and a process, and none of them worked. If it is an existing line, I does not display the name of the employee according to the number of employees registered in the database (which assigned its thanks to a process) correctly. Why the value is not currently running for a new line?

    Can someone please?

    Robert

    http://apexjscss.blogspot.com

    I fixed the problem (I think!). I have to do a few tests more. It is in the logic of the process. I had to put a block begin around the SELECT statement so that the flow after the exception will go to the next statement.

    Then... Never mind.

    Robert

    http://apexjscss.blogspot.com

  • 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

  • Apex 4 Cascading LOV s how to define a child LOV back to the null return value

    Hello

    My problem is that I use the new dynamic action to implement features of LOV cascading to the Apex 4 which means not having to submit the page to update child LOVs after parent LOV changes.

    What I find, is that when you change the value LOV parent, then the child LOV (which has a return value of zero) is not or by default in the return value zero (in my case no selection should return-1) if the list is filtered to a different set of values, which is not a selection valid. The LOV child is left without a choice when I need its default value to the return value zero (-1, which represents all values).

    Also, I expected to do before the page is sent and filtering to the bottom of the hierarchy of LOVs can work when the child is zero (-1, which means that all values) and in turn her child LOV (s) will also the child null filter.

    Any help would be appreciated.

    Thank you

    Hi 804641,

    I don't know if I get your problem and I tried to reproduce.

    http://Apex.Oracle.com/pls/Apex/f?p=2672:6 is my example with a LOV cascading where I also defined a dynamic action that is triggered when P6_EMPNO changes and it shows the current selection.

    Maybe it helps if install you an example on apex.oracle.com and provide space to work/user/pwd, so that I can have a look. I'm not sure about your sentence "help for a new dynamic to implement cascading LOV feature", because dynamic actions are not necessary for LOVs cascading. It is a characteristic of the types of items themselves where you just set the attribute "Cascading LOV Parent éléments".

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Choose the option to popup LOV does not change evet

    Hello

    Version 4.2.6 apex

    I have a popup LOV.

    I also change listener

    $('#P2_ID').on('change', function() { ... });
    

    It turns out that when I select the popup option that does not fire my change. I have the reason is cause there is a kind of function that changes the value of my item.

    Has anyone had these problems and how to solve?

    It's very illuminating. Your versions of jQuery are not really "contradictory", it's just that by introducing another version of the library that this version has used the references $ and jQuery.

    Apex has kept against that by saving a reference to the jQuery apex version used in the namespace of the apex, where apex.jQuery.

    In short: always use apex.jQuery in respect to the apex. Use only $ (in this case, the most recent version) when you need the features of this latest version.

    Also, as you can see, it is important what version allows you to manage events. You cannot trigger an event handler associated with $ using apex.jQuery. Apex triggers, manage upcoming events of the apex.jQuery - always! He may be confused, surely. Please consider well before including another version of jQuery! More: you may consider not to overwrite the reference $ existing and rather keep the new namespaced version as well, or using noConflict after he did what he should. I also have an application where both versions are used, and it can really cause the longer spurts of confusion...

  • Presentation tabular popup lov display value erased during validation

    Hello Infantraj and Jitendra

    I have exactly the same problem as in your discussion here

    Presentation tabular popup lov display value erased during validation

    Could you please share what was the solution?

    Hi Mark,

    Just follow the steps described in the blog (Cluttermeleon: Oracle APEX - descriptions of disappearing Popup LOV key) which is given in the thread. Instead of Java script that is at the page level using

    function get_LOV_value (pLOV, pId) {}

    If (pId! = ") {}

    get var = new htmldb_Get (null, $v ('pFlowId'), 'APPLICATION_PROCESS is get_LOV_value', 0);

    get.addParam('x01',pLOV);

    get.addParam('x01',pId);

    Return get.get ();

    }

    }

    Thank you

    Infant Raj

  • 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

Maybe you are looking for