Variable setting wrong with dynamic action for the region of report

Hello

I can't setting a variable. Here are the details of connection:

Connection information:

TCARMY workspace

User Apex_dev

Password dev_apex

Application 88542

Page 11

If you run the page 11 and just click on submit, there will be two rows. If you click on one, the modal region won't say no data found. If you click on the button submit once again, the value is passed if you click on it now, the results arrive. If you click on the second row, it still shows the value of the first row. If you click on submit again after clicking on the second line, then it is displayed correctly. It seems that the value is set to submit it. I want this to work when clicked, and then for the sql to run with the value that is in this variable when clicks on the element. There is a bit of javascript page level and dynamic action. Something is not right to the installation.

The modal window should popup and run the sql at that time with the variable data and view the two columns. And if the user clicks on the second row, it would display the data in the row.


Thank you

Tim

TC-army wrote:

If you run the page 11 and just click on submit, there will be two rows. If you click on one, the modal region won't say no data found. If you click on the button submit once again, the value is passed if you click on it now, the results arrive. If you click on the second row, it still shows the value of the first row. If you click on submit again after clicking on the second line, then it is displayed correctly. It seems that the value is set to submit it. I want this to work when clicked, and then for the sql to run with the value that is in this variable when clicks on the element. There is a bit of javascript page level and dynamic action. Something is not right to the installation.

What has not been set up right, it's that the element of P11_NAICNUMD parameter was not specified in the source attribute of Page to go to the region, modal Discount. The current value in the browser page, therefore, was not defined in session state when the report has been updated by the dynamic action. When

Tags: Database

Similar Questions

  • Apex 4: Feature missing dynamic action for the region of calendar

    Hello

    If I create calendar view region Type 'Partial Page Refresh' it do not support fully dynamic actions.

    For me, for example event "discount for after ' are not triggered



    Kind regards
    Jari

    Published by: jarola on October 20, 2010 15:53

    Hi Jari,

    that is not yet supported, but it will be something that we seek to add to the 4.1

    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

  • onSelect dynamic Action for the region selector display

    Hi all

    Have a problem and need your help.

    I have a page with 6 regions, I show them based on the view of region selector.

    I need some how know what tab is selected, something like an event "onSelect".

    The user then click on the 3rd tab, I need to know and perform javascript code.

    Please help and thank you very much!

    Andrei

    Then click on the event is appropriate.  Your selection in the DA is the problem.

    I was able to do the following:

    Event: click on

    Selection type: jQuery Selector

    jQuery Selector: .apex-rds

    (don't forget the point).

    True "to execute JavaScript Code.

    alert($(this.triggeringElement).find("span").text());
    

    This DA will appear the name of the selected region is within span tags.   The triggeringElement is the anchor tag (a) start clicking. Your code can look at $(this.triggeringElement).find("span").text () and do an if statement to decide what to do on what region.

    Thank you

    -Jorge

  • 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.

  • Help with dynamic action and the selection list item

    G ' Day Apex gurus.

    I have problems trying to achieve to trigger the Help window from an element automatically select. A Help window is triggered when it is clicked on the label of an item, but my customer wants to be triguered automatically as soon as the user clicks to view the options in the select list.

    I think I should be able to do with dynamic actions but I can't function.

    I know when someone clicks on the label of the item selection list trigger this JavaScript

    JavaScript:popupFieldHelp('277938589795252851','1545903379570909')

    So I want to trigger the javascript also when the user click on the item selection list and pull down the options and for that I think that the dynamic action is the way to go, but I can't do things.

    That's what I have to do:

    I created a dynamic option as follows:

    Name: test
    Sequence: 30
    Even: click
    Selection type: product (s)
    Article (s): P1_RATING <-a selection list item
    Condtion: - no requirement.

    Real Actions
    Sequence: 10
    Action: Run the JavaScript Code
    Fires when the result of the event is: true
    Fire on loading the page: checked
    Code: javascript:popupFieldHelp('277938589795252851','1545903379570909')

    Thank you anyone who can tell me what I'm doing wrong here or bring a solution to my problem to trigger the Help window from an element automatically select.

    Kind regards
    Carlos

    Hi Carlos,

    I've set up a test case of exactly in the same way and it worked fine for me. I've created a page element called P1_DA_DEMO and added some values of the static selection list, then added a help text. I used the settings are lower, I suggest you try again, but also make sure that you have no other Javascript errors on the page. Use a tool like firebug to check.

    Name: Action Dynamics demo
    Sequence: 10
    Even: click
    Selection type: product (s)
    Product (s): P1_DA_DEMO<- a="" selection="" list="">
    Condtion: - no requirement.

    Real Actions
    Sequence: 10
    Action: Run the JavaScript Code
    Fires when the result of the event is: true
    Fire on loading the page: unchecked
    Code: javascript:popupFieldHelp('277938589795252851','1545903379570909')

    Scope of the event set a Bind s.

    Thank you

    Paul

  • Popup error when using the AJAX or update Action for the region or a State

    Hello

    I had a problem with an application that I developed and I was banging my head against the wall with this for some time without success. Several pages in my application rely on the use of AJAX to refresh a region on the page with the updated data, running every 5 seconds. I have the following code in the foot in my region:

    var refresh_region = function (region_in) {
        try {
            jQuery(region_in).trigger('apexrefresh');
        } catch (e) {
            //Suppress error messages
        } finally {
            setTimeout(function() {refresh_region(region_in)}, 5000);
        }
    }
    refresh_region('##REGION_STATIC_ID#');
    
    
    

    What is happening is that I often have a popup with the title "Message from Web page:" and one of the descriptions following error (with the last being the most common):

    • : Error - HTTP Version not supported
    • Error: error - unknown

    The problem is that this page is used on the kiosks without keyboard, and once the error popup is displayed, the page continues to answer and user interaction to click on the Ok"" button. Another question, which is even more frustrating, is that these windows will accumulate above the other nearly one hundred sometimes profoundly, to the point where, sometimes, I need to force, exit the browser or restart the kiosk. There are also cases where the entire application stops responding and none of the pages will load. The only way to solve this problem is to have my DBA restart Glassfish. He went through some of the papers, but he sees nothing specific that helps him understand why he keeps to himself, but he believes that all these popups eat connections until the server runs.

    This has been a recurring topic since the app went live and I had hoped that with the help of a block try {} catch {} would prevent these popups errors but no luck. I also made a copy of the page today and refresh moved dynamic Action using the timer plugin but the popup always appears. I am following up to see if it happens more often than the AJAX approach.

    In the end, there are two issues here:

    1. What causes the error in the first place?
    2. How can I prevent the error popup windows until I can find #1

    I have tried everything I can find online to disable popups, all of this without a bit of luck:

    • Using try {} catch {}
    • Disable script debugging in Internet Explorer
    • Uncheck 'display a notification of every script error '.
    • Catch the window.onerror event

    Does anyone have any suggestions on how I can avoid these popups?

    I have a copy of the application on apex.oracle.com:

    • Workspace: SCCC_TEST
    • User/Pass: TEST/test
    • Page: 5

    Thank you!

    Once I started to think the ajax Manager that I started, I was wondering if ajax would actually raise an error at all, and it is not just the success of shooting when but throwing an error because it cannot handle the return (error page html for example). I'm not sure.

    You can try to use this code, which will replace the current call and will call _Appel with your own parameters. _Appel is a private member is not accessible so it's probably the best alternative. Not really a hack in my book. The structure is in place, then why not.

    //preserve original function
    var asw_orig = apex.server.widget;
    //override existing function
    apex.server.widget = function(pName, pData, pOptions){
      var lOpts = pOptions;
      //set the error handler function
      lOpts.error = function(){alert("this is my error handler function");};
      //pass along the variables to the original call
      asw_orig(pName, pData, lOpts);
    };
    

    I wondered if maybe the session may have expired at a certain time and therefor, you found these errors, because the update is not aware of this and therefore makes invalid calls. Just throw something out there.

  • Hide/show dynamic Action on the region, not hiding title area

    I use APEX 4.0.1 with topic 13.
    I created a dynamic Action to show/hide a region on my page, but that content hiding as expected, the region remains title. Any idea on how to hide title area as well?

    To identify the area to the DA, I use the following method:
    Region Header
    <div id=XYZ>
    
    Region Footer
    </div>
     
    In the DA dom object is now XYZ

    Thanks in advance
    PaulP

    PaulP says:
    I use APEX 4.0.1 with topic 13.
    I created a dynamic Action to show/hide a region on my page, but that content hiding as expected, the region remains title. Any idea on how to hide title area as well?

    To identify the area to the DA, I use the following method:

    Region Header
    
    Region Footer

    Lose the header/footer code, it does not act as a container for the whole region. Use a static region ID as selector of DA.

  • Pausing for the region of report

    I have a report that region based on the function of PL/SQL returning the SQL query. In formatting 'pause' section is it possible to have a dynamic break. That is to say. where the user can choose which column to break. I see only options for the choice of the 1st, 1st-2nd, 1st-3rd column etc.

    Hello
    Bob, no I think that you need to handle this in your SQL. This thread should help: -.

    PL/SQL code to manage more than 3 levels of breaks.

    Mike

  • Dynamic action for validation of date with the notification message plugin

    Hi all

    Someone help me please with dynamic action for validation of date with the message notification plugin. I have a form with two elements of the date picker control and message notification plugin.

    The requirement first user selects the exam is finished and then selects the date. So, if the date is greater than the date of the examination is over + 2 years then doesn't trigger the message notification plugin. I tried to create that dynamic action on the date picker date that triggers the scheduled issue notification message but I want to make conditional, I mean displays the message only if date of the selected is greater than the date of the exam is finished more than 2 years.

    In terms simple, notification is displayed only if provided is superior to (date of the exam is completed + 2 years).

    I use oracle apex 4.0 version and oracle 10g r2 database. I tried to reproduce the same requirement in my personal workspace. Here are the details. Please take a look.

    Workspace: raghu_workspace

    username: orton607

    password: orton607

    APP # 72193

    PG # 1

    Any help is appreciated.

    Thanks in advance.

    Orton.

    You can get the value of the date of entry:

    $(ele) .datePicker ('getDate');

    So what to add functions such as:

    function validateNotification (d1, d2) {}

    Date1 var = $(d1) .datepicker ('getDate');

    date2 var = $(d2) .datepicker ('getDate');

    if(date1 && date2) {}

    return ((date2.getTime()-date1.getTime())/(1000*24*60*60))>(365*2);

    } else {}

    Returns false;

    }

    }

    The logic based on setting (I have two years from years of 365 days preceding)

    Then in the D.A. specify a JavaScript expression as:

    validateNotification ('P2_REVIEW_COMPLETED', this.triggeringElement.id)

    Refer to page 2 for example.

  • APEX 5. Dynamic action on the CHANGE event does not work after applying the filter on IR.

    APEX 5.

    Dynamic action for the CHANGE event does not work after applying the filter on IR.

    Event: Change, selection Type: jQuery Selector, jQuery Selector: td [header = 'abc'] entry

    Real action

    Selection type: jQuery Selector, jQuery Selector: td [header = 'abc'] entry, Action: run the Javascript Code

    Is TI WHEREAS behavior?

    I know, I can work around this problem by using the Refresh event and javascript, but I prefer DA and if possible Change event.

    Concerning

    mdyla

    mdyla wrote:

    It is, how to force them reallocate dynamic Action in the event of CHANGE of the input elements after refresh of IR region.

    Set the dynamic scope of the event action to Dynamics.

  • How to view point over the region of report?

    I have a page with several regions and a report region must be to display "Page Template body (2. (Les éléments ci-dessous le contenu de la région) ". but this point of the screen does not allow me to place a selection over this area report list. There is another point of view "Page Template Body (3. Items above content area)"that allows elements to display above region, but this point of display for the region of report changes the layout of the entire page. is it possible to set a different point of view as the "body of Page Template (2.» Items above content area)"which allows the elements to display above the region without changing the position of the region report?. any ideas are appreciated.

    Here is the test page...
    http://Apex.Oracle.com/pls/OTN/f?p=54577:12

    workspace: stone
    username:[email protected]
    password: apex_demo

    Thanks for your help,
    Surya

    Dene/Surya

    I must have missed something here... the page on the link specified
    http://Apex.Oracle.com/pls/OTN/f?p=54577:12
    has only one region.
    If there is only one region, is it important?

    But, Yes, if there is more of a region, and other areas have been set to display in the post "body model 2' only this particular region has been configured to display on the page 'page 3 model body', then Yes, this region would be displayed below the rest. (in descending order)

    Surya,

    Unless you want to have other areas to display items 'below', the fastest and easiest is to change all your other regions to set to display to the "model of the body 3' page and then check the position that you want by using the display sequence."

    In case you really need to have other areas to see the items below (depending on what you have on the page), you could possibly get away with the following:
    have all regions you want dispalyed before you particular region with the point on the top set to display to the position 'body 2' model '.
    have the area you want to display with the above items exposed to the "body 3' model '.
    have the rest of the regions you want dispalyed below this region to 'position of model of region 4' page

    I hope this helps.

    Alex.

  • refresh the report with dynamic action title

    Hi all

    I have a report that is updated with dynamic action. When the update is done, first the value of two hidden variables are defined (P2_ID and P2_NAME) and are subject (using a dynamic action type "pl/sql", with the code "null"; and items to submit page: P2_ID, P2_NAME).

    In the report query, I use: P2_ID in the where clause. Everything works like a charm! The only thing that doen't work, is the title of the region: which is defined as "properties of & P2_NAME.", but the title is not updated when the report is refreshed.

    Is there a solution for this? I hope I am clear enough.

    See Re: dynamic action - update

    If you are right; the native just Refresh action updates the content of the report, it does not perform & POINT. substitutions throughout the region.

    What you could do is use a RANGE named as the title as

    &P2_NAME.
    

    and add a REAL action to your dynamic Action to set the title using Javascript to run code

    $s('my_title',$v('P2_NAME'));
    

    I hope this helps.

  • Set values in a table with dynamic Action?

    Hi, I need help for my Application first, Apex, please. This page is for users of fuel truck who buy several gallons of fuel and use this page to distribute this fuel among the many projects. These users are familiar with filling in the Date of the Transaction, the Site, the Type of fuel from the fuel tank #, etc. on the top of the page and then using the lines below to split the fuel in different projects.

    Example: The user gets 100 gallons delivered, fills the Page elements on top with the details of the purchase and uses then 3 rows of tabular form to distribute among 3 project (Project1 gets 20 gallons, Project2 gets 30 gallons, Project3 gets 50 gallons). Each line in the form of tables inserts a new record in the table of database of fuel with different values for the Gallons and ProjectID, but the same Site, Date, Type of fuel and tank values.

    So there are columns hidden on the tabular presentation for Site, Date, Type of fuel and tank. They need get these values from the top so that the user doesn't have to type repeatedly. This is my problem: How can these hidden columns to get the values in the top text boxes dynamically? It must be dynamic, or changed immediately if the user changes anything in the decoders (as a typo).

    Just going to each as a column and defining the 'attributes of tabular form' by default for an item and then by setting the default value in the name of the element page text box will only work if somehow, the user submits the page and does not make typing errors before you fill out the form in a table. I need to be adjusted immediately. Also, is it something special to set the date picker on the form as a table for the value of the Date on the top picker? For the moment, I am trying to use the Set button to set the values in the boxes at the top of the page with their items and refresh the page, so the default values of the column in a table can be right. Is there a better way to do it? It does not work for the date picker.

    I just started to use Apex, I only know the basics of dynamic Action HMI. If I should use a jQuery or code in the HTML header or a 'Collection' Apex, be very specific. Page elements above have names like P13_TANK and the P13_TRANSACTION_DATE of Date Picker and the shape of the table has column names like TANK and TRANSACTION_DATE. Truckers and I appreciate any help, thanks!

    apex question.png

    ~ Saphira

    I forgot a few quotes:

    $("input[name='f05']").val(this.triggeringElement.value);
    
  • 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

  • More than one Page objects of value with dynamic action parameter

    Hello

    How to set the values of the two elements of the page based on another page, article in dynamic action IE

    -variable value tr_type is set using the function get_type

    -passing the p1_code parameter

    TR_TYPE; = GET_TYPE (P1_CODE);

    If TR_TYPE = "DR" THEN

    P1_DR: = P1_AMT;

    ON THE OTHER

    P1_CR: = P1_AMT;

    END IF;

    -If I write the function get_type with Exp of PL/SQL of TYPE 'SET', it triggers the error on the use of the service.

    -If I put body of the PL/SQL TYPE of function 'SET', the page displays error unhandled expception.

    How can I achieve this using dynamic action.

    Hi, IK,.

    Can you please quote the u of changes/amendments made to the code, I am unable to find it.

    Included missing: for element names.

    --value variable tr_type is set using function get_type
    --passing p1_code parameter
    TR_TYPE:=GET_TYPE(:P1_CODE); 
    
    if TR_TYPE='DR' THEN
    :P1_DR:=:P1_AMT;
    ELSE
    :P1_CR:=:P1_AMT;
    END IF;  
    

    Here is my scenario with code.

    I have a form with 4 elements (account (P1_CODE), quantity (P1_AMT), DR (P1_DR, hidden), CR (P1_CR, hidden), I am writing a dynamic action on P1_AMT (change) of the code)

    DECLARE

    TR_TYPE char (2);

    BEGIN

    -calling a function "GET_TYPE.

    -passing the P1_CODE parameter

    TR_TYPE; = GET_TYPE (P1_CODE);

    If TR_TYPE = "DR" THEN

    P1_DR: = P1_AMT;

    ON THE OTHER

    P1_CR: = P1_AMT;

    end if;

    end;

    Again, we know not not how you want to call a dynamic action,.

    assuming that on the evolution of the account (P1_CODE), the function call GET_TYPE(:P1_CODE) to retrieve the type of transaction,

    on the basis of the transaction that you want to set the amount of specific element.

    on the change of point P1_code

    Action: execute the PL/SQL code

    Parameters

    DECLARE
    TR_TYPE  char(2);
    BEGIN
    --calling a function "GET_TYPE"
    --passing parameter P1_CODE
    TR_TYPE := GET_TYPE(:P1_CODE);
    if TR_TYPE='DR' THEN
    :P1_DR:=:P1_AMT;
    ELSE
    :P1_CR:=:P1_AMT;
    end if;
    end;
    

    page elements to present - P1_CODE, P1_AMT

    page items to return - P1_DR, P1_CR

    Check the screenshot

    There are other ways to set the values using dynamic action, try the above

    Kind regards

    Jitendra

Maybe you are looking for