Dynamic action - fire on Page Load problem

Greeeting,

I created the report with dynamic action event = page loading and action = submit. Scope of the event = Bind,
But he is permanently on the page, and I want to submit once...

How I manage... created example, please click the link

http://Apex.Oracle.com/pls/Apex/f?p=20294:3:1276651806269601:

Hello
>
Earlier you said:
Sales page 1

Page 2 sales detail

sales page items are rate and identity of product name.

Name of the product on page 1 is related to retail sales page 2.
>
How? This relationship is not obvious to your query.
>
Now, you say:
Parameters:
1 - the date
2 - date
3 - choose the area

>

You logic is rather mixed up. That is what you want to achieve? What are the default values for the 3 parameters, if any? What value to Page 2 is used when browsing Page 1?

Two wrongs don't make a right. Then first give up to the DA who Sumbit Page when loading the Page and focus on the fundamental question related to your logic.

The amended motion proposed below is NOT WHAT YOU NEED for YOUR CONDITION, but I'm posting it so that you can at least get the running report and then work to correct your logic.

SELECT SS.OUTLET_ID,
  SS.CAT_ID,
  SS.ITEM_CDE,
  SS.ITEM_NME,
  SUM(DECODE(RETURN_IND,'N',ITEM_QTY,'Y',ITEM_QTY*-1)) QTY,
  SUM(DECODE(RETURN_IND,'N',ITEM_QTY,'Y',ITEM_QTY*-1)*ITEM_RTE) AMT,
  O.OUTLET_NME
FROM
  (SELECT OSM.OUTLET_ID,
    PI.CAT_ID,
    PI.ITEM_CDE,
    PI.ITEM_NME ITEM_NME,
    OSM.RETURN_IND,
    OSD.ITEM_QTY,
    OSD.ITEM_RTE
  FROM OUTLET_PRICE OP,
    OUTLET_SALES_MASTER OSM,
    OUTLET_SALES_DETAIL OSD,
    POS_ITEM PI
  WHERE OSM.OUTLET_SALES_MASTER_ID = OSD.OUTLET_SALES_MASTER_ID
  AND OSM.OUTLET_ID                = OSD.OUTLET_ID
  AND OSD.OUTLET_PRICE_ID          = OP.OUTLET_PRICE_ID
  AND PI.ITEM_ID                   = OP.ITEM_ID
  /* AND OSM.OUTLET_ID                = :P2_SELECT_OUTLET
  AND OSM.CONSIDERED_DTE BETWEEN :P2_FROM AND :P2_TO */
  AND OSM.OUTLET_ID                LIKE NVL( :P2_SELECT_OUTLET,'%')
  AND OSM.CONSIDERED_DTE BETWEEN NVL(:P2_FROM,TRUNC(SYSDATE)-1) AND NVL(:P2_TO,TRUNC(SYSDATE))
  UNION ALL
  SELECT OSM.OUTLET_ID,
    PI.CAT_ID,
    PI.ITEM_CDE,
    PI.ITEM_NME ITEM_NME,
    OSM.RETURN_IND,
    OSD.ITEM_QTY,
    OSD.ITEM_RTE
  FROM OUTLET_PRICE OP,
    OUTLET_SALES_MASTER OSM,
    OUTLET_SALES_DETAIL OSD,
    ITEM I,
    ITEM_CATEGORY IC,
    POS_ITEM PI
  WHERE OSM.OUTLET_SALES_MASTER_ID = OSD.OUTLET_SALES_MASTER_ID
  AND OSM.OUTLET_ID                = OSD.OUTLET_ID
  --AND OSM.OUTLET_ID                = :P2_SELECT_OUTLET
  AND OSM.OUTLET_ID                LIKE NVL(:P2_SELECT_OUTLET,'%')
  AND OSD.OUTLET_PRICE_ID          = OP.OUTLET_PRICE_ID
  AND OP.ITEM_ID                   = I.ITEM_ID
  AND I.CAT_ID                     = IC.CAT_ID
  AND IC.TEMP_ITEM_ID              = PI.ITEM_ID
  /* AND OSM.CONSIDERED_DTE BETWEEN :P2_FROM AND :P2_TO */
  AND OSM.CONSIDERED_DTE BETWEEN NVL(:P2_FROM,TRUNC(SYSDATE)-1) AND NVL(:P2_TO,TRUNC(SYSDATE))
  )SS ,
  OUTLET O
WHERE SS.OUTLET_ID = O.OUTLET_ID
GROUP BY SS.OUTLET_ID,
  SS.CAT_ID,
  SS.ITEM_CDE,
  SS.ITEM_NME,
  O.OUTLET_NME
ORDER BY ITEM_NME

See you soon,.

Tags: Database

Similar Questions

  • Can not set a value by the executed dynamic action on the page element "selection list."

    I created an agenda of the page 'list of selection' and I want to when I change a value in another element of the page set only 'screen '.

    I created a dynamic action on the page element "selection list" for this.

    These are the dynamic action attribute:

    When:

    ======

    Event: change

    Selection type: point

    Article: P29_PURCHASE_ORDER

    Condition: No strings attached

    Advanced:

    ========

    Scope of the event: static

    Identification:

    ==========

    Action: Set

    The ' Action Page when the changed value "attribute of the element of 'list of selection' = 'None', and when I run form the dynamic action run and set the value for once and do not update the value according to the change in the article"list of selection. "

    Note: when I change the previous attribute of 'Redirect and set', dynamic action run and properly value, but the value was hidden soon

    I want to value when the value of change of select list according to this change successfully.

    Please, advice me,

    Best regards

    Mustafa Ezzat

    Hello

    you set the value of the 'Page elements to submit' to P29_PURCHASE_ORDER?

    Then, the SQL statement would use the current selected value.

    This is the help text says: "specify a list separated by commas of the elements of the page that will be submitted to the server and therefore available for use in your"SQL statement"," PL/SQL Expression"or"Body of the PL/SQL function".»

    Kind regards

    Erik-jan

  • APEX 4.0.1: restriction on the maximum number of dynamic actions on a page?

    Hello

    I would like to know if there is a restriction on the number of dynamic actions on a page.
    I have a page with 29 dynamic actions. Everything works fine on the page.
    If I create another dynamic action that display only an alert or nothing else, I have the HTTP 404 error message when I try to view the page.
    If I delete the old dynamic action and create a new one so that the page works fine.
    After several tests, it seems that there is a maximum number of DA on a page, but if someone can confirm that?

    Environment:
    APEX 4.0.1
    Embedded PL/SQL gateway

    Kind regards
    SDDC

    Hi sddc.

    There is no limit on the number of dynamic action that you have on a page, but it is very likely that you hit a size limit of a variable we use during the generation of the JavaScript code for the dynamic actions. You can activate a log more detailed error further details on your 404 error - see http://www.inside-oracle-apex.com/oracle-apex-got-404-not-found-2/ EPG instructions are in the comments.

    BTW, you might be able to reduce the number of you dynamic actions by specifying page several items in the attribute 'Product (s)' from the 'when' the article if all run the same code. Just separate them with a comma (no spaces). Such as: P1_MGR, P1_DEPTNO

    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

  • Bug report - copy dynamic action to another page

    Hello

    In the wizard to copy a DA to another page, in my case, I have the type of selection "jQuery Selector", and the value of the attribute "jQuery Selector" does not get pre-remplis.

    Is - is this expected or just something missing in the wizard?
    I think I saw so, regardless of the type of selection.

    See you soon,.

    Scott

    Hi Scott,.

    I don't think that it is a bug by itself, even though I agree that this should be improved. We hope to improve the process of copying the dynamic Actions (as requested in the application Feature Requests) in a future version of the APEX, and we already have an enhancement request registered to do so, in which I've now also added a note and a link to this topic.

    Thanks for putting in place.

    Kind regards
    Anthony.

  • message returns server timed out: own yellow page loading problem happens

    as above, am not able to access the search engine, unless I use an old, comes with expired if I try to access it via an email that this time also out.seems have a problem with the security - baffled

    You can access a single search engine but not another? Is one that you can access a regular site as https://www.google.com/ or https://www.yahoo.com/ or is this something custom that may have been installed by an add-on?

    Which security errors receive you:

    • The secure connection failed
    • This connection is Untrusted

    If you get a load of the partial page with orange "!" triangle in the address bar, remember that you have to make exceptions of security for the site?

  • Gmail keeps giving me page loading problem

    The page is not redirecting properly

    Firefox has detected that the server redirects the request for this address in a way that will never end.

       This problem can sometimes be caused by disabling or refusing to accept cookies.
    

    Delete the history fixed thank you and have a nice day

  • Dynamic action Refresh

    Hi all

    I use 4.1.1 linux chrome 11 g r2

    I have this dynamic action
    Identification
     
    Page:     216. OFFENDER DETAIL
    Name      xyz
    Sequence 200     
     
     
    Event CLICK     
    Selection Type     jQuery 
    jQuery Selector     a.abc
    Condition     --
    True Actions
     
    The following actions will be fired when the 'When' condition is met, or when it is 'No Condition'.
    
    Edit     Sequence     Action     Fire On Page Load     Selection Type     Affected Elements
         8     Set Value     No     Item(s)     P216_H_APPROVE_TABLE_NAME
         9     Set Value     No     Item(s)     P216_H_APPROVE_KEY_VALUE
         10     Execute PL/SQL Code     No     --which run update statement      
         15     Confirm     No           ---just to display
         18     Refresh     No     Event Source     -- to hide the column link through which it is initiated.
         19     Refresh     No     Region     ABCr --- region to refresh
              
    
    Event Scope     BIND
    Question - does not update the region. Region has several area children but no action is taken on them.

    I tried with the updating of all given the region of parent and child, but it did not work.


    Is it possible that I can submit page or refresh real region successful action.


    Thank you
    NS

    Denes Kubicek wrote:
    As far as I know, you can only refresh a report from the region. Other types of regions will be not updated even though you can select them from a dynamic action.

    As indicated in the documentation, interactive reports, standard reports, charts and lists can be updated using dynamic measurements. Region of plug-ins can also have support for the actions of refreshment DA.

    Hunk09 wrote:
    Region has several area children but no action is taken on them.

    Updating of the region not cascade. Refresh action is required for each region or subregion. For regions classic report and tabular forms enable partial Page Refresh , property report must be enabled.

  • APEX: Dynamic Action with tabular column

    I'm trying to 'turn off' couple of tabular columns using Javascript and dynamic Action.

    Some fields are text, although some are LOVs type

    I have no boy of Java, so a lot of my scripts are copied and modified based on examples I see, Plse forgive me.

    If the field is a text type

    With the help of Dynamic Type of Action such as disable, use the JScript

    $('_input[name="f20"]').attr ('disable', true);

    I managed to get the disabled column...

    But I don't seem to be able to apply to the Type "select list".

    Please notify

    Hi JAS-Oracle,

    But I don't seem to be able to apply to the Type "select list".

    Step 1:

    Go to report attributes-> edit your selection list column

    under column attributes - > add class attributes of the element, i.e.

    Attributes of the element: class = "select_list.

    Step 2: Create a dynamic Action

    Event: Page load

    Action: disable

    Selection type: Jquery selector

    JQuery Selector: //dont .select_list forget to put the point before the name of the class

    Hope this helps you,

    Kind regards

    Jitendra

  • How to trigger a conditional display based on a dynamic Action without submitting the Page

    Hello

    Using Oracle APEX v4.2 on 11g, I have the following scenario and wanted to take other people on how to accomplish what I'm trying to do, i.e.:

    In region 1, I have a select item list page called P1_SELECTION, which contains selections from drop down to the user to choose from the following three: A1, B2 and C3

    In region 2, I have two checkbox elements:

    P1_CBOX1 I gave a conditional display of ' point value / Expression 1 column! = 2 expression, where Expression 1 = P1_SELECTION and Expression 2 = B2, so P1_SELECTION! = B2

    P1_CBOX2 I gave a conditional display of ' value of the point / column Expression 1 = Expression 2 where Expression 1 = P1_SELECTION and Expression 2 = B2, then P1_SELECTION = B2 .

    Use of dynamic Action on the evolution of the P1_SELECTION in region 1, how can I trigger the correct display of the checkbox in region 2, with the default view of the region 2 checkbox being P1_CBOX1, without submitting the entire page, just refreshing each of the elements checkbox to trigger the conditional display correct?

    For example, on the changes of P1_SELECTION = B2 then entire submission without page, only P1_CBOX2 is presented to the user in other P1_CBOX1 is displayed.

    Is this possible?

    Thank you.

    Tony.

    Hi Tony,.

    condition your dynamic action on P1_SELECTION with the following condition of javascript: this.triggeringElement.value = "B2".

    Add real actions that will show P1_CBOX2 and hide P1_CBOX1

    Add false actions and going hide P1_CBOX2 show P1_CBOX1

    Set the dynamic actions to fire on Page load

    Kind regards

    Erik-jan

  • Dynamic action, not shooting after having sailed on the next page of report

    I have a report and I want to show some additional details about a record when the mouse over a specific area.
    It works but only on the first page of the report to. After accessing the second report page dynamic action does not occur.
    After a page réactualisiez on the dynamic action fires.

    Here is an example on apex.oracle.com.

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

    When you hover the mouse over the image a 'test' alert (i) is displayed. Go to page 2 of the report, and nothing happens.

    What I did:

    Create a public page with a classic report with the request:
    select 
     "CUSTOMER_ID",
     "CUST_FIRST_NAME",
     "CUST_LAST_NAME",
    '<img class="abstract" src="/i/menu/blue_info_16x16.gif"/>' as "ID"
    from #OWNER#.DEMO_CUSTOMERS
    Create a dynamic action.
    Sign up for the mouse
    jQuery selector: .abstract
    Action: alert ('Test')

    Is this a bug or is there a different approach to this?

    Hi René,.

    Change DA dynamic extended event.

    Additional help is available here:
    http://docs.Oracle.com/CD/E37097_01/doc/doc.42/e35125/advnc_dynamic_actions.htm#CIHGAFFI

    BR,
    Marko Goricki
    --------------------
    http://apexbyg.blogspot.com/

  • Navigation of the page with the dynamic action button.

    Hi all

    I use apex 4.2.6 on windows 8.1

    I create a button with the dynamic action.

    When the end user, click on the button, I want to access a page.

    How to do this?

    I created a branch of this button to access the page 10 on SUBMIT AFTER TREATMENT CALCULATION VALIDATION.

    but no navigation happens.

    they code plsql works well that is put into the dynamic action, but the page is not navigate.

    kindly guide me.

    Kind regards.

    Maahjoor wrote:

    I create a button with the dynamic action.

    When the end user, click on the button, I want to access a page.

    How to do this?

    I created a branch of this button to access the page 10 on SUBMIT AFTER TREATMENT CALCULATION VALIDATION.

    but no navigation happens.

    they code plsql works well that is put into the dynamic action, but the page is not navigate.

    If you want to run the PL/SQL code and creates a branch to another page, why do you use a dynamic action? The easiest way to do this is the button send page, the PL/SQL to run as a process after submit (potentially conditional, click on the button) and the page navigation to achieve using a plug (once again, perhaps conditional on the button that is clicked).

  • Dynamic action and report column

    Apex 4.2

    Theme 21

    IE8

    At the moment I have a report and a column displays a button

    "< input type ="button"name ="recreate"class ="buttongreen"value ="Synonyms to recreate"onclick =" recrea ("recreate", "' |)" owner | " (')' > ' action

    Then in my page header, I have little javascript

    function recrea (Request, user name) {}

    $x('P90_USERNAME').value = username;

    doSubmit (Request);

    }

    All of this works and sends the page and affects demand.

    Ideally, I would like to change this to a dynamic action, so I can display the gif to submit and overlay

    Can someone give me some advice please

    Gus

    Gus C wrote:

    Apex 4.2

    Theme 21

    IE8

    At the moment I have a report and a column displays a button

    '' action

    Change the HTML button for:

    
    

    (I recommend generating the HTML button in the attributes report using the HTML Expression to a derived column rather than in the report query).

    Then in my page header, I have little javascript

    function recrea (Request, user name) {}

    $x('P90_USERNAME').value = username;

    doSubmit (Request);

    }

    All of this works and sends the page and affects demand.

    Ideally, I would like to change this to a dynamic action, so I can display the gif to submit and overlay

    Create a dynamic action of executing JavaScript Code:

    Event: Click

    Selection: jQuery Selector

    jQuery Selector: [headers = 'ACTION'] entry

    Scope of the event: Dynamics

    Real Action


    Fire on Page load: NO.

    Code:


    apex.submit({
      request: "RECREATE",
      set: { "P90_USERNAME": $(this.triggeringElement).attr("data-owner") },
      showWait: true
    });
    
  • Dynamic action on IR regio

    I'm on APEX 4.2 and have created a dynamic Action on the IR area. I have the same 'Page Load' game and have also checked 'Fire on page Load' on the part of the exception. It works fine when the IR page is initially displayed, but the dynamic Action is not fired when the user presses the line selector previous IR on the bottom of the page. How can I get it works on this action as well?

    bobmagan wrote:

    I'm on APEX 4.2 and have created a dynamic Action on the IR area. I have the same 'Page Load' game and have also checked 'Fire on page Load' on the part of the exception. It works fine when the IR page is initially displayed, but the dynamic Action is not fired when the user presses the line selector previous IR on the bottom of the page. How can I get it works on this action as well?

    Edit the event DA to cool after (depending on when you want to run), the Type of selection to the regionand the region of your IR region.

  • Dynamic action on the region

    Hello

    Request Express 4.1.0.00.32

    I have a report region on a page that is conditionaly displayed depending on the value of an element of page Pn_ITEM = "HIDE".

    I have dynamic stock running on the page that fill a collection and update the report without the need to submit the page. However, I need to show the report somehow when the collection contains at least one of the members present.

    I tried the following:

    1st real action running pl/sql that adds a record / member of a collection, then a 2nd action sets the value to a page Pn_ITEM = true 'SHOW' action item and a 3rd that should show the region based on the value of the real action 2.

    My collection has an added member. The value 'SHOW' is applied to my article on Pn_ITEM page by the dynamic action but the region of report I want now displayed is not displayed. Obviously if the page is submitted, the report will now be shown however I can't send the page at this stage that's why I need to do this dynamicaly or through javascript and on the application process.

    Any ideas how to get my region report to display once the collection has at least one member without submitting the page?

    Thanks in advance.

    Remove the requirement for the view from the region. You don't want this here since it completely stops rendering region if the condition is not fullfilled to the render time. You want that he made, but not displayed.

    Add css to the region (inline, class):

    style="display: none;"
    

    Add real action that will do a refresh on your area (component - refresh, select your report as an affected item region).

    Now, either:
    Add a real action of type run javascript. Since you can not put conditions on the real actions, we will test the condition in javascript.
    Choose one:

    if($v("Pn_ITEM")=='SHOW'){
    //if you want to target the region to be shown by an ID (static id?)
    $("#region_id").show();
    };
    
    if($v("Pn_ITEM")=='SHOW'){
    //if the triggering element would be the region to be shown
    $(this.triggeringElement).show();
    };
    
    if($v("Pn_ITEM")=='SHOW'){
    //if you'd want multiple affected elements to be shown at once drop the [0]
    $(this.affectedElements[0]).show();
    };
    

    Create a new dynamic action that has the same conditions of release as your other dynamic action.
    Specify a when condition:

    $v("Pn_ITEM")=='SHOW'
    

    Create a real "Show" type action to show the region.

    Final result should be your dynamic action creating an item in the collection, an update of the report based on the item (but still not represented) and finally a show in the region.

    Remember that stocks will also fire on page load (so don't forget to check the box on the actions of true), otherwise the region does not appear initially.
    I would say that the item is probably not necessary, but depends on any other logic, you might have on your page and possibly interacts with it.

  • 4.2: disorders plugin dynamic action

    I'm running into some problems with some plugins for dynamic action, I have created and are on apex.oracle.com and has stopped working since the 4.2 update.

    Here a small example configuration for a very simple example:
    < ul >
    < li > create new plugin, give it a name. Type: dynamic action < /li >
    < li > sources > PL/SQL Code
    FUNCTION test_render(
        p_dynamic_action IN apex_plugin.t_dynamic_action,
        p_plugin         IN apex_plugin.t_plugin )
    RETURN apex_plugin.t_dynamic_action_render_result
    IS
       l_retval APEX_PLUGIN.T_DYNAMIC_ACTION_RENDER_RESULT;
       l_crlf        CHAR(2)      := CHR(13)||CHR(10);
       l_fetch_delay INTEGER      := p_dynamic_action.attribute_02;
       l_char_amount INTEGER      := p_dynamic_action.attribute_03;
    BEGIN
       IF apex_application.g_debug
       THEN
          apex_plugin_util.debug_dynamic_action(
             p_plugin         => p_plugin,
             p_dynamic_action => p_dynamic_action 
          );
       END IF;
       
       apex_javascript.add_library(
          p_name      => 'init_test_script',
          p_directory => p_plugin.file_prefix,
          p_version   => NULL
       );
    
       l_retval.javascript_function := 'function(){init_test();}';
       
       RETURN l_retval;
    END;
    < /li >
    < Li > reminders > make the name of the function
    test_render
    < /li >
    < li > no attributes Standard only checked < /li >
    < li > no custom attribute defined < /li >
    < li > a file, "init_test_script.js".
    function init_test(){
       //creating of the date filter fields
       var l_table = 
       $('<table id="testtable">' +
         '   <tr>' +
         '      <td align="right"><label for="test_item_1">Test Item 1</label></td>' +
         '      <td align="left"><input type="text" id="test_item_1" /></td>' +
         '   </tr>' +
         '   <tr>' +
         '      <td align="right"><label for="test_item_2">Test Item 2</label></td>' +
         '      <td align="left"><input type="text" id="test_item_2" /></td>' +
         '   </tr>' +
         '</table>'     
         );     
         $("div#appendsomethinghere").html(l_table);
    };
    (Not the material code much.)
    < /li >
    < /ul >

    < ul >
    < li > now create a new blank page. < /li >
    < li > creates a region HTML, source:
    <div id="appendsomethinghere"></div>
    < /li >
    < li > create a new dynamic action, event: the Page's Load
    Real Action: the test plugin < /li >
    < /ul >

    Now, I expect to have the html code inserted into the dom when loading the page. However, I'm getting errors (surprise), and on the line that includes my action dynamic javascript_function.
    Line: 96
    Error: Object expected
    opening in the console
    object expected f? p = 4000:RUN_PAGE:10169672371307:BRANCH_TO_PAGE_ACCEPT:NO:FB_FLOW_ID, FB_FLOW_PAGE_ID, F4000_P1_FLOW:54687, 55, 54687, character of the 96 142 line
    is here:
    93   <script type="text/javascript">
    94   apex.da.initDaEventList = function(){
    95   apex.da.gEventList = [
    96   {"bindEventType":"ready",actionList:[{"eventResult":true,"executeOnPageInit":false,"stopExecutionOnError":true,javascriptFunction:function(){init_test();},"action":"PLUGIN_TESTPLUGIN"}]}];
    97   }
    98   </script>
    It seems as if the javascript file isn't there, even though I see the inclusion in the html code:
    <script type="text/javascript" src="wwv_flow_file_mgr.get_file?p_plugin_id=940791031207478253&p_security_group_id=27000294100083787867&p_file_name=init_test_script.js"></script>
    Even when I try to call
    init_test();
    from the console, I get the same error.

    When the same configuration is created in 4.1.0 it all works as I'd expect.

    Anyone with any ideas or light on this?

    Hi Tom,

    It was actually the error of interest

    Uncaught SyntaxError: Unexpected token ( /pls/apex/wwv_flow_file_mgr.get_file?p_plugin_id=940791031207478253&p_security_group_id=27000294100083787867&p_file_name=init_test_script.js:1
    

    that was displayed in the Chrome developer tools.

    The reason was the function declaration

    function() init_test{
    
    -> Uncaught SyntaxError: Unexpected token (
    

    It should be

    function init_test() {
    

    I have fixed your plugin init_test_script.js JavaScript file and now everything works fine. Are you sure who has worked at the APEX 4.1? Because it is a JavaScript error and has nothing to do with the APEX.

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

Maybe you are looking for