Conditional branch to submit during the loading of the page?

Hi all

I have a page (REPORT PAGE) which serves as a setting for the reports and is called from several places in the application.  The calling page sets various parameters on the REPORT PAGE.   The REPORT PAGE displays all parameters and has a button "run report".

The user presses a button (submit page) to run the report and after that the report is displayed to the user is returned to the calling page.

I want to change the behavior so that the calling page has the possibility of a parameter causes the report to run immediately - effectively by pressing the button and automatically submit the page.

The concept would be 'submit a conditional on load '.   Anyone see a workaround to achieve?

Eben Walker

ebenwalker wrote:

I have a page (REPORT PAGE) which serves as a setting for the reports and is called from several places in the application.  The calling page sets various parameters on the REPORT PAGE.   The REPORT PAGE displays all parameters and has a button "run report".

The user presses a button (submit page) to run the report and after that the report is displayed to the user is returned to the calling page.

I want to change the behavior so that the calling page has the possibility of a parameter causes the report to run immediately - effectively by pressing the button and automatically submit the page.

The concept would be 'submit a conditional on load '.   Anyone see a workaround to achieve?

Depends on what is meant by "report". When you use the word, always explicitly if you are referring to a standard report of the region, an interactive report, a shared component of report query or a custom build you just happens to describe themselves as a "report". Please explain the nature of the "report" in detail, using the standard terminology of APEX.

It sounds like something that would be managed by setting the REQUEST in the target URL or the branch on behalf of the "run report" button If the 'report' depends on the page accept the processes after a click on the button "run report", use the special form BRANCH_TO_PAGE_ACCEPT in conjunction with the value of request button causes the page to be submitted in the first place, for exampleBRANCH_TO_PAGE_ACCEPT|RUN_REPORT

Tags: Database

Similar Questions

  • Tip to avoid the keys during the page load?

    APEX: Request Express 4.2.6.00.03

    I have two or three "intentionally" pages slow and heavy and end-users fortunately repeatedly press buttons and harmless error messages.

    I would avoid the situation of "remail" and have the "error messages" in trying to repost.

    Good tips to do just that, I hope that Oracle Apex those compatible upwards?

    1.) page attribute, indicates 'small wheel' until this that totally made?

    I would avoid the 3331 error when the page is defined as "NO page to prevent it being published" or avoid the message concerning the violation of page protection then repost is allowed.

    For example show "spinning wheel" or "progress bar" which blocks of keys user?

    2.) or have this 'small wheel' specific to the region, as well as the region's "spinner" up to full charge.

    3.) or how to display the buttons placed on the page after the 'big jobs are done?

    4.) or some other method?

    rgrds Paavo

    Paavo wrote:

    Actually, it's the question - if we leave the decision of development which approach to take:

    -make all the shares of dynamics of buttons and everything for example plsql anonymous to be driven by the dynamic action procedures of instead of making procedures plsql after send this page

    - or do the submission page process (pre era dyn-action method apex) and no dynamic action with plsql code button

    The apex is basically PL/SQL.

    So in order to generate a page of Apex, PL/SQL code should be run. To update a report region, code PL/SQL must be executed. To deal with the elements on a web page to the update/insert/delete of data in the database, PL/SQL code must be executed. Etc.

    This code can be executed in 2 ways.

    Submit the entire page, the flow of the Apex engine. He built a whole new page. This page is sent to the browser to replace the content of the existing window and make any new content in this browser window.

    Use Ajax (Javascript calls) to call the flow of the Apex (aka action/process dynamics) engine. It creates a response (XML, HTML, JSON, etc.). This response is returned, and Javascript is used to treat this response and update objects (e.g. add/update / refresh in the DOM) of the page.

    The two ways are necessary as

    (a) we want to send a new page to the web browser sometimes

    (b) you want to update an existing web page in the web browser by moments

    So it is not a matter of choice in one direction. The two are concerned. Both are needed to create Web 2.0 with rich and interactive interfaces type applications.

    I'm just afraid after accidentally 2 similar submit deals plsql firing - dynamic action and one in present it after Treaty.

    It's a question of developer and development life cycle.

    It comes down to knowledge. Find out what are the differences between the page layouts and dynamic actions. And when to use one that to achieve the goal at hand.

    Lets say that we have to report slow query and report region which takes time to load. But this report is not required for the end user and it could continue by pressing the buttons during the loading of that specific region is always.

    Press the buttons to do what? And why the user would click the buttons when the report data are not yet ready for display?

    The Javascript engine doesn't have a thread model Posix/Windows type.  By default, its calls are non-blocking and use events. See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/EventLoop for more details.

    This isn't exactly a walk in the Park to treatment systems simultaneous good design. And it's true in Javascript too.

  • Button Delete does not seem to use branch to return to the page

    I've implemented a form of single update with several pages of report pointing to it. I did it using the base report / form option, the button create is therefore on the report link to the form with a button change to the form of update and delete. There is also a button cancel on the form.

    After having read the Forum, I put an article on the form to accept the page past the various pages of report number and redefine the unconditional branch on the value of button. This works well for create, update, and cancel. They all return to the original page beautifully.

    However, the button Delete a popup javascript standard asking for verification to delete. Appears, the record is deleted and I get treated action message, but I'm not at the original page - instead, I get an error "error ERR-1016 request '122' Page '0' not found (requested language =" en - us ")") which seems to say that it is not referencing the element of the back page. I know that the item has the correct value because it is currently not hidden to test.

    The branch point is on submit after treatment and pointing to a page of the application with the value of & P3_BRANCH_TO.

    If I replace the URL for the javascript popup in the button of deletion with the link to the article, I don't get the deletion at all. It just goes back to the original page. If the javascript code gives more than a popup.

    How can I work around this situation?

    TIA

    Gillian

    PS - this forum is great - it has been very useful for the beginner.

    Hi Gillian,

    The process of "reset page" is there to remove from the session, the values of all elements on the page. In most cases, it's ok because that's what you want to do. In some cases, however, this can cause problems. In your case, since your article P3_BRANCH_TO is on the same page, then it was also being allowed to go out with the rest of the data, so when management tried to read, the value was in fact null instead of a real page number.

    There are two things you could try, to make sure that you clear the values in session that you don't need, but keep those you do.

    1 - Place the items you wish to keep on another page, if possible or to create elements of the Application (via the shared components) and set these values instead. I'm doing this for my G_RETURN_PAGE point (which I think is similar to what you do with your P3_BRANCH_TO article) - I put this value on my basic pages (the pages that the user must come back after you perform an action) and then use & G_RETURN_PAGE. in the branch. As "reset page" don't erase data pages, any part of the application is not affected, will always be available.

    2. in your branch, you can set the value to itself. Thus, the parameter "Defining these elements" would be P3_BRANCH_TO and the 'with these values"would be & P3_BRANCH_TO.

    Andy

  • Error #1009 during the Page move or page elements

    When I try to move a page or any object on a page, I get an error and then Muse shut. I restarted. I uninstalled and reinstalled Muse twice, and both times I have this problem. I ran repair permissions. Nothing has solved the problem that I am running Mac OS 10.10.1 Yosemite.

    Here is the error message:

    Adobe Muse CC has encountered an error and will now close. Please report the last actions bit that you have taken to this error to the Adobe Muse CC team.

    [NDMI/nativeDragEventHandler] TypeError: Error #1009: cannot access a property or method of a null object reference.

    Screen Shot 2014-11-25 at 10.34.38 AM.png

    Restart your Mac. Drag Mac OS x Manager is in poor condition. This will result in accidents or other misbehaving in Muse and a few other applications when you attempt to drag objects with the mouse. The only way to fix it is to restart your computer.

    Apple seems to be addressed to this bug in OSX 10.11.3. In addition, the next major upgrade of Muse, 2015.1, has been revised to use a different approach using the Manager of Drag of OSX to avoid this bug in older OSX versions.

  • Dynamic action does not not on the first attempt to load page. Work after refreshing the page

    4.2.1

    Hello

    I have a page with a list of selection Order_id and a display _item Product_name.  There is action dynamic PL/SQL that fills the element displayed when the order_id is changed. The problem is that when I opened the page for the first time, if I change the select order_id list, nothing happens. But if I refresh the page once, and then it starts work and the display_item is filled.

    No idea what could be the problem?

    Thank you

    Ryan

    ryansun wrote:

    On a more serious note,.

    1 when you load the page for the first time and try selecting the order_id, nothing don't be past, try refreshing the page once and you will see the option to display with the null value. What I do is. I have two tables

    Orders

    1

    2

    3

    Products

    1A

    2B

    2 Z

    3 C

    When I select the command 1, then since there is only one line of products, the displayed item will indicate A populous. If I select 2, since there are two product lines, I should see the list box.

    Doesn't seem to work and I'm sure, I'm doing something wrong.

    Difficult to be certain that as it appears that someone has been editing the page before you start watching (rather than copy the page experience their own copy). Your article P1_PRODUCT_NAME_DISPLAY he a point value / Expression 1 column = Expression 2 condition P1_HIDE_SHOW = 1 condition on that? Or any other condition of rendering?

    These conditions do not match the dynamic actions. They are applied only during the page see the transformation when the page is displayed first; When it is linked to another page; or after a branch to him. They are not applied dynamically during the activity of the user on the page. In this case, that the status is set to false when the page is rendered first, the same element does not exist in the page sent to the browser. If you want these items to appear conditionally because of the interaction with another user control, then you must initially return the elements and control their visibility using hide/show the dynamic actions.

  • JavaScript: box always invalid after the page

    Hello

    In a region, I have a check box that must be disabled by default. After clicking on a button that applies a MRU/present (and verification of certain conditions) the box should switch to on.

    What I did:
    -The Javascript of the enableCheckbox() and disableCheckbox() functions are defined in the HTML page header (they work).
    -In the foot of the region with the box I call the function disableCheckbox ('myCheckbox'); to get the default value.
    -The optional URL redirection of the button says:
    JavaScript:doSubmit('SUBMIT'); to submit
    JavaScript:enableCheckbox('myCheckbox'); to activate the checkbox

    The problem is that the box will switch on, because submit/reload the page to disable the checkbox through the foot of the region. Think of other solutions, I realized that each top up will set the default again...

    How can that be resolved?
    Thanks in advance,

    Roger

    Hi Roger,

    You must have somewhere a logic that determines if the checkbox should be disabled/enabled.

    Generally speaking, it would be the value of one or more fields and the box should be checked whenever the field related (s) is / are updated using the onchange event.

    There are several ways to check for this, but the principles would be the same. For example:

    function check()
    {
     var x = document.getElementById("P1_PAGEITEM");
     var c = document.getElementById("P1_CHECKBOX");
     if (x.value == 'XXX')
     {
      c.disabled = false;
     }
     else
     {
      c.disabled = true;
     }
    }
    

    This function can be used on the page loading - by adding a call to it in Footer region region - and the attributes of the P1_PAGEITEM using:

    onchange="javascript:check();"
    

    Andy

  • Next page... the page processing

    I'm trying to change the treatment of page... my goal is "after page5 goto page8.

    I created a new branch in 'Treatment of the Page "->" after treatment '->' Branches'-> 'go to Page 8'
    after Edit-> Action-> page - 8

    Point branch-> on submit after treatment (after calculation, validation and treatment)

    Help, please.

    Thank you
    HESH.

    Hi Hesh,

    Your finish button has been configured to redirect to page 2, rather than submit the page that would run then you reset_pagination process and branch to page 8.

    (Edit button and see Action when the button clicked)

    Just give a try.

    Published by: Bob37 on April 23, 2012 10:53

  • Session-> display-> State of Session-> displays the elements of the page

    Hello!

    I'm currently running Application Express 4.2.5.00.08 on Debian.

    If click on Session-> display-> there is no Session State page element.

    If I connect to the database as sys and I run the following command:

    Select nom_element, component_comment

    apex_util.get_session_state (item_name) session_value

    of apex_application_page_items

    where application_id = 500;

    all my Articles page are displayed but not their values.

    What do I need to configure something in the APEX?

    Thanks for any help!

    Gerhard

    gerhard2001 wrote:

    I'm currently running Application Express 4.2.5.00.08 on Debian.

    If click on Session-> view-> Session State contains no items of the current page.

    Page elements have any value in session state to the point that do you? Note that the time with null values are not displayed, and point values defined by using properties of the Source item or by default during the page see the transformation come not in session state until the page is sent.

  • After sending the page, the cursor is moved :(

    Hi developers out there!

    Probleb:

    I have a textfiled who always submits by pressing "Enter". (Redirects to the same page)
    But the problem is that when I press on ' Enter "(ou le bouton"SUBMIT") and the page is shown, and redirected to the same page, my cursor (focus) goes to the next textfield.". " I want him to stay on the first textfield. In other languages and programming environments, there are "TAB sequences. 'Sequence' in the APEX
    is only for display or process the order.
    Is it possible to order by their SUMMIT.

    Best regards
    Ruslan.

    Open page properties.

    Cursor focus: don't worry

    Header HTML:

    lines. select() and .value are optional - I love to be selected for example. you don't customize too much the name of the element.

    Page attribute HTML Body:

    onLoad = "focusSearch () '"

  • Is it possible to ignore some accounts during the loading of data

    Hi, I have a rules file that I use to load the data.

    I want to ignore some accounts (only for now 112123, 123453, 546567) during my loading of data.

    is there a way to do... ?

    Thanks in advance

    Check by using a rules file to perform operations on documents, fields, and data

    Rejecting Records

    You can specify which fields Essbase ignores defining criteria of rejection. Rejection criteria are string and number conditions, when met by one or more fields of a record, causes Essbase refuse registration. You can set one or more criteria of rejection. If any field in the record meets the criteria of rejection, Essbase loads the record. For example, to dismiss the actual data from a data source and load only the budget data, create a rejection criterion for rejecting the records where the first field is real.

    Concerning

    Celvin Kattookaran

  • ADF Table retrieves all lines during the loading of the page

    Hello

    We have a requirement where we need run the query programmatically by giving the query column and its value.

    I used the code below in the AMimpl.java and calling this method during the click on the button Search my Search Page.

    I am able to get the features you want on the search page by clicking the search button.

    The question now is when the page initially loads, the table fetches all rows of the VO by default.

    Can you please let me know where I need to change so that the table will get no line on the initial load of the page?

    ' public void setVoParams (String columnName, String columnValue) {}

    ViewObject mapVO = this.getFusionSapMapping1 ();

    String whereClause = "MappingEO." + columnName + "" as: colValue ";"

    mapVO.setWhereClause (whereClause);

    mapVO.defineNamedWhereClauseParam ("colValue", null, null);

    mapVO.setNamedWhereClauseParam ("colValue", columnValue);

    mapVO.executeQuery ();

    }

    Hello

    You don't tell us your version of JDeveloper.

    An easier approach to implement your condition is to use the property refreshCondition of your iterator. Here is an example of how do: https://blogs.oracle.com/shay/entry/delay_method_execution_when_us

    Antonis

  • Conditional branch after the page

    Hi all

    I have a page where I have to present and process elements and page (insert and update the database) then branch to a specific page that the button has been pressed. I have 4 buttons and each button has to go to another page, each button must also submit page and process data (thanks to a process of Apex DML and passing 'SAVE' demand to each button). the problem I have is no matter what button I press the "app to the first domestic branches. I have 4 branches set to run after the process. Each branch should go to a different page depending on the button. In each branch I made the conditional branch based on the key.

    APEX seems to ignore the condition (in Debug) button it says unconditional, even if the button is definitely conditional.

    I'm under Apex 4.2.2

    It seems that when passing to a request to 'SAVE' Apex all the buttons to this request in the same way? Whatever the button has been activated?

    Any ideas or alternatives?

    Thank you

    Andrew

    Hi Andy,.

    I didn't know all of your buttons send the same request, so it is normal that your different branches spoil, because your process and your branches looks like demand that sends your button and not the label of your button. You will need to make sure that each gives a different request.

    Kind regards

    Joni

  • Error opening the page of modal (plugin skillbuilder) during the loading of the page

    Hi all

    I use 4.2.1. (on 11 GR 2), theme 25.
    SkillBuilder Modal plugin v2 page

    Modal pages are working on all sorts of events, great, but if I try to open the other via a D.A. on loading the page, it fails with ' Eception TypeError: loading of the object has no method 'stopImmediatePropagation""error (in the browser console). "
    < edit >
    just found out that this error is caused by the "cancel event' DA action that should be fired after the modal dialog box open. If I omit this event Cancel modal page is not loaded, but also no error appears.
    < / Change >

    Any ideas on how to solve this problem? In the end, I just want to open a modal window after loading the page depending on the value of an item set when loading the page (the branch sets an element value to indicate that the modal window must be open).


    Concerning
    Bottom

    Published by: bottom of Klerk on 2013-apr-11 07:43

    Bottom,

    The modal shows do not charge is actually quite simple. Look at the generated code for the dynamic action and note in particular the code "javascriptFunction":

    {"name":"modal on load","bindEventType":"ready",actionList:[{"eventResult":true,"executeOnPageInit":false,"stopExecutionOnError":true,javascriptFunction:function(){
       if (this.browserEvent !== 'load'){
          apex.jQuery(document).apex_modal_page('openPageFromApexThis', this);
       }
    },"attribute02":"STATIC","attribute03":"f?p=54687:38:115741808752478:::38:::","attribute05":"data-url","attribute06":"div#success-message","attribute07":"AUTO","action":"PLUGIN_COM_SKILLBUILDERS_MODAL_PAGE"}]}];
    

    You can see that there is an explicit for the browserEvent criterion, and it must be different from "load."

    Of course, when you create a dynamic action with type "Page load", the browserevent will be "load", so no popup and no errors. Running a page in debug and research in the javascript console, you can also click through events fired, for example, I have this in the console:

    Dynamic Action Fired: modal on load (PLUGIN_COM_SKILLBUILDERS_MODAL_PAGE) Object { triggeringElement=document, affectedElements=[1], action={...}, more...}
    

    Firebug allows me to click on the object and display its properties. One of them is the "browserEvent" and set to "load".
    This prevents also the modal open when you actually set the real action of pull on the loading of the page.

    I tested a bit after commenting on prevention onload, and while I'm sure there are reasons why it was built in like that, I have immediate problems. The modal open during loading and anything funky happens, not even when you navigate around in the iframe.
    This does not however only if you want the modal to react on the loading of the page that your only option is to change the the plugin plsql code. I would say: test it enough!

    Go to the plugin, change it. Under Source > Code PLSQL find this:

       l_result.javascript_function :=
          'function(){' || l_crlf ||
          '   if (this.browserEvent !== ''load''){' || l_crlf ||
          '      apex.jQuery(document).apex_modal_page(''openPageFromApexThis'', this);' || l_crlf ||
          '   }' || l_crlf ||
          '}';
    

    and change it to this:

       l_result.javascript_function :=
          'function(){' || l_crlf ||
          --'   if (this.browserEvent !== ''load''){' || l_crlf ||
          '      apex.jQuery(document).apex_modal_page(''openPageFromApexThis'', this);' || l_crlf ||
          --'   }' || l_crlf ||
          '}';
    

    As you can see, I only commented those 2 lines, but it should allow the modal to open the loading of the page. I hope this helps you forward a bit.

  • Satellite M60-164 - BSOD during the windows loading screen

    On startup, I get the blue screen of death during the windows loading screen.

    I don't have a recovery cd, only a cd of OS (windows xp SP1a), which shows the option to repair but prompts then insert the recovery cd, how and where can I get one of these!

    No matter what help get a restore for Toshiba Satellite M60-164 Pro cd would be much appreciated!

    I think I know why you get a BSOD.
    You said that you have installed the Win XP SP1a.

    You must Win XP SP2!

    If you wish, you can create a CD Win XP SP2 clean! How? It's very easy. You need the tool freeware nLite (google for it and how to use it).

    Using the nLite application you could create a new XP CD and could include SP2 in this CD. You can then use this disk to start!

    By the way; The Toshiba recovery disc can be ordered from the ASP

  • flight simulator 2004 will not load or run during hours of daylight Simulator, will ONLY during the hours of darkness.

    I've been using fs9 since 2005 and did not have any problem of an uninstall and the recharge could not or would not fix so far. I am running Windows XP Professional on a card, Gigabyte, AMD triple core cpu, NVIDIA 9400GT and 2 gig of ram graphics card. Last week so that on a flight simulated Auora Oregon in Livermore, California the program during the final approach simply broke back to high office as if the program had never been launched. The flight was at night and since then, the program will not allow a flight during the day (simulator time) it will allow selection of aircraft, flight planning and will start the loading of the field but will break back into high office again as if the program had not been launched. I rebooted fs9 several times as well as several other pieces of software (ultimate field real extreme weather events, mega city) but the problem persists. NO error messages are given or shown. Other than this problem embarrassing and extremely embarrassing performance of the software is superior. ANY THOUGHTS ON THE ISSUE?

    Hello randams,

    I suggest you do a system restore on your computer, choose a restore point when the Flight Simulator was working fine.

    a. Click Start, type system restore in the search box and then in the list click on the system restore program.

    b. If you are prompted for an administrator password or a confirmation, type your password or click on continue.

    (c) in the System Restore dialog box, click on choose a different restore point and then click Next (choose are the restore time when it was working fine).

    d. in the list of restore points, click a restore point created before you started having the problem, and then click Next.

    e. click Finish.

    If you still have the same problem, I suggest you post your question in the Forum of Flight Simulator, which is a forum dedicated to Flight Simulator:

    http://www.Microsoft.com/products/games/FSInsider/community/pages/default.aspx

    Thank you
    Irfan H, Engineer Support Microsoft Answers. Visit our Microsoft answers feedback Forum and let us know what you think.

Maybe you are looking for

  • collection of samples of first N and the last of waveform

    Hello I am trying to acquire the circuit voltages. I had a waveform that I have attached to this message. I want just the signals of temps.002 a.007 in this graph. To select a particular sample, what will I do? I don't have enough knowledge in labvie

  • DeskJet 2549: try to install Deskjet 2549

    Hello tried to install our Deskjet 2549 today. The latest driver downloaded from the HP website (v12.34.0.dmg). When you try to add the printer, I get notification: "software is not manufacturer of printers available, contact for the most recent vers

  • Error message saying "mail does not move to MSN" when people try to send me an email.

    Original title: I'm havingproblemswithmymsnemail. A have always had verizon but changed to comcast for a month - then changed from comcast to verizon - have ALWAYS had my other msn address that month I got a comcast .net address - I changed back to m

  • Horrible noise popping up on two rockets

    I bought a rocket August 1 and had it for a week and a half of problem-free operation.  Then, out of the blue, I started having these horrible cracking when I listened to music.  Thinking I just had a bad flare, I returned it and exchanged it for a n

  • Close a process or an application running

    Hi, is there any command that I can perform to close a running application or process? Perhaps by the process id? Or send a close notification on demand? Thank you!