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.

Tags: Database

Similar Questions

  • Validation of required field only when the page loads (HR test case!) included

    Hi experts,


    Here you have a simple test for Jdev 12.1.3 HR case: https://dl.dropboxusercontent.com/u/18609389/TestHR.zip

    The main.jspx is just a button which CreateInsert a record dept displayed in another page:

    Screen Shot 10-16-14 at 07.04 PM.PNG

    My problem is the following page (test.jspx) has this code to run when the page loads:

    <af:serverListener type="onloadEvent" method="#{backingBeanScope.backinBean.onPageLoad}"/>
                <af:clientListener method="onLoadClient" type="load"/>
                <af:resource type="javascript">
                  function onLoadClient(event) {
                      AdfCustomEvent.queue(event.getSource(), "onloadEvent", 
                      {
                      },
    false);
                      return true;
                  }
                </af:resource>
    

    The code is simply this (now):

        public void onPageLoad(ClientEvent clientEvent) {
            logger.severe("HR TEST.....");
        }
    

    And that's the problem, required validation is performed.

    Screen Shot 10-16-14 at 07.06 PM.PNG

    Can you tell me why?

    Thank you

    Jose.

    Don't know what is my mistake, but the code is of the actionListener button is not called. :-(

    Well, you combined two different ways to do this (from my first answer).

    If you are still reading this, you will notice "or" before the second suggestion

    Thus,.

    1. keep your clientListener under af:document tag

    2. based on javascript, you find key (use: alert ("button");)  to see if you have referenced correctly your button in findComponentById())

    And then:

    approach 1:

    Use AdfActionEvent.queue (button, true);  queue event on your action button and implement your logic in function attached to the properties of your 'actionListener' or 'action' button (if you don't need listener server in this case)

    approach 2:

    Use AdfCustomEvent.queue (button, "onloadEvent", {}, false);  the queue onloadEvent on your button (in this case you need listener server attached to your button)

    Dario

  • How to set default, or set no.: of lines to display on the table on the page loading...

    Hello

    I use JDEV 11.1.2.0.0 and the scenario as follows. I use DeptVO as a read-only table. On the page load needed to display only 5 records and during the click on a navigation button need to display the next set of 5 collection. Please suggest if no default property is available which helps to get the same thing.

    Note:

    1 used autoHeightRows property but the table is reduced in height to 5 and there is a vertical scroll bar that scrolls to see the next set of lines.
    2 rangeSize to 5 no still no change.

    Kind regards
    Olivier G

    Hello
    Check this box
    http://andrejusb.blogspot.in/2011/05/Oracle-ADF-11g-custom-table-pagination.html
    http://smconsultants.in/2011/02/pagination-in-ADF.html

    ~ Abhijit

  • I keep get redirected to google everytime I open facebook. who's who of the charges and allows me to connect, but once the page loads I get redirected to my homepage... can help all

    I keep get redirected to google everytime I open facebook. who's who of the charges and allows me to connect, but once the page loads I get redirected to my homepage... can help all

    Hi TonyHutton,

    1. what browser you use on the computer?

    2. did you of recent changes on the computer?

    3. only happens with the facebook site?

    4. do you have security software installed on the computer?

    Check if the problem persists on all other sites as well.

    See the link below and try them the steps mentioned, check if it helps.

    Difficulty of your web browser hijacked

    http://www.Microsoft.com/security/PC-security/browser-hijacking.aspx

  • How to develop all the rows of the table of the tree when the page loads?

    Hi all

    I have tree than VO mere reference of table... I want to expand all table tree rows when the page loads... I already have initially developed property to true... but it only runs from first line of tree...

    Any help would be great-Jey

    In the backbean and that:

      private RowKeySetTreeImpl ps = new RowKeySetTreeImpl(true);
    
      public void setPs(RowKeySetTreeImpl ps)
      {
        this.ps = ps;
      }
    
      public RowKeySetTreeImpl getPs()
      {
        return ps;
      }
    

    In the jspx set table tree as disclosedRowKeys

    
    
  • Get the values of default table row when the page loads

    Hello

    I am running JDev 11.1.1.7. We have a page that contains two tables in a relationship of the master / detail of nickname. We can do a real master ADF / detail with view items related because the query for the 2nd table is complex and works best when queries with binding settings. The View object for the 2nd table has a request with 2 link params as it can get in the first table. Thus, when a line is selected in the first table we want to execute ExecuteWithParams on the object from view of the table 2. We do it in the Bean managed for the page in a method that is the selection to the first table listener. It works fine except when the page initially loads, the first line is selected by default. When the default value is selected the selection listener is not triggered.

    I've seen the suggestion of not having a line selected by default when the page loads by removing the value selectedRowKeys on the table. However, we do not want that the 1st row of the table secondary master to be selected by default and we as the table of detail to show the correct corresponding lines.

    Steve

    Steve,

    Not really sure when you say that the 2nd table is complex and may not use the master detail. If the settings link in the parent table, you can set the ViewLink accordingly and it should work, right?

    In any case, if you're after the execution of methods on the loading of the page, you will find the links below.

    If it's a working group, you can add a methodCall as activity by default and UTF, you can use phase listener (if listener server does not).

    https://blogs.Oracle.com/aramamoo/entry/an_epic_question_how_to

    Advice from the Oracle Johny: ADF: how to run the ViewObject with a ViewCriteria on the PageLoad in Application Web ADF

    It will be useful.

    See you soon

    AJ

  • record in the query when the page load

    Hi How can I make my block to query the record when the page load I don't have what it takes to press F11 + Ctrl I just what to load the data when the page loads for this field or block

    I did it

    create a LTRC of control block of data with the SERVERNAME element non-base

    Give it a value in the a time-new-form-Forum

    CGFK$ QRY_SERVER_TABLE(:CTRL.) SERVERNAME); and it works

  • Possible to display an icon from loading until the page load completely?

    4.2.1

    THM:2

    Hello world

    I have an application with two expensive queries that takes a while to load (on the page sent). On the page there is a selection list filter. When the user changes, the page is sent and two classic run reports based on this filter. I have a dynamic action (load which) goes off on the amendment of the list and then submits the page. However, the loading icon is visible until the moment where that page is submitted. Once the page is sent, then also the reports takes some time to display all of the records. Is there a way to display some sort of an icon of loading time of the page load completely? OR this is not possible.

    Thank you!

    Ryan

    Hi Ryan,

    Please check the old thread with the same question

    PROGRESS BAR WHILE LOADING A PAGE

    Kind regards

    Jitendra

  • Classic report that spans the page loading

    THM:2

    4.2.1

    Hi all

    I have two classic reports side by side, based on a somewhat expensive query that returns a number of lines (500) also, we have a box of research and other filters to work on this report. However, the problem is that when the page loads, since the reports run sequentially, the first report on the left side, extends all the way to the right for a few seconds before returning to the right size. I guess this happens because then the second report query (right) runs and pushes the left up. Is there a way to fix the two classic reports width such that it does not stretch on page load?

    Thank you!

    Ryan

    Hi Ryan,

    Ryansun-Oracle wrote:

    THM:2

    4.2.1

    Hi all

    I have two classic reports side by side, based on a somewhat expensive query that returns a number of lines (500) also, we have a box of research and other filters to work on this report. However, the problem is that when the page loads, since the reports run sequentially, the first report on the left side, extends all the way to the right for a few seconds before returning to the right size. I guess this happens because then the second report query (right) runs and pushes the left up. Is there a way to fix the two classic reports width such that it does not stretch on page load?

    Thank you!

    Ryan

    Region change and put css in the attributes of the region to set the size of the region

    style="height:300px;width:500px;"
    

    or you want scrolling of fixed size, if your report has no more. columns fit more in the size

    style="height:300px;width:500px;overflow-y:auto;"
    

    Kind regards

    Jitendra

  • Initial request on the Page loading

    Hi all

    I use Jdev 11.1.2.3.  I have a page with a simple table based on a view.  I want that he executed not the query when the page loads.  Now that I've seen many comments on this question and blog of Shay spot on that too, but what I see is the following.  When I have the table on a tab of the Panel with nothing else dressed the steps previously suggested, if the value of itterator #{! adfFacesContext.initialRender} and or affecting the value #{bindings. {LocalDate.inputValue not null}, seem to work splendedly.  But when I put a collection of panels around the table the methods above do not seem to work.  What I lack or y at - it another way I can get cela no query when the page is loaded?

    Thanks in advance for any advice.

    Steve

    #{! adfFacesContext.initialRender} is not very good approach to accomplish your use case, because sometimes is not clear what exactly is 'initial render' (for example, when you have defined a workflow set as region...)

    Instead, you must call YourViewObject.executeEmptyRowSet () before you navigate to the page.

    To learn how to execute the method before loading the page, see this blog: https://blogs.oracle.com/adf/entry/an_epic_question_how_to

    Dario

  • JavaScript in "Run when the page loads", works not when paginating the results grid

    I have some Javascript in a page of the Apex, running in "run when the page loads. There is stuff to a grid of results. It works fine on the loading of the page, but then does not work when I paginate (Browse), or sort the grid. I assume that this is because the grid is sorted / paged using Ajax, which means that the page is not fully loaded.

    Is there anywhere else I can put the code, so it is applied to the grid on the kinds and paging?

    Yes you are right when you paginate it doesn't reload the page (at least in this case).

    You must use the event after Refresh in the dynamic actions and run javascript also, you would probably need the dynamic scope

    17.9 implementation of dynamic Actions

  • Initialization of an element on the page loading

    Hi all -
    I have a LOV cascading on a page with a tabular report. The user connects and selects a value in LOV1 which then pushes the values that appear in LOV2. All right.

    To meet a new requirement, I changed the SQL query behind LOV1 while for some users a single value is set up by default in LOV1 based on: APP_USER. It works fine, except that because these users no longer need to select a value in the list, return value from the element that animates the second LOV is not be filled. The result is that the second LOV now has no value. I've tested this in just trying to show the item which is defined in LOV1 in the page header (& P15_LANGUAGE) and on the page load it returns null, even if LOV1 indicates the correct display value.

    I tried to create dynamic action to the point of loading the page, but it goes right in a loop and continually refreshes the page. I can set up a sample application, but if all goes well, there is a quick solution to this. I searched the Forum but can't find anything that specifically addressed this issue.

    Thanks in advance for your suggestions,
    John

    It's the difference between what is happening in the browser vs. database (session state).

    The calculation updates a value in session state for the item page, which can then be used in queries and pl/sql.

    The SQL in the LOV populates the list of selection rendered on the page. This makes SQL refers to this variable binding, that the value exists in the session state.

    So already when opening the page, the select list had values in (browser), and the browser also displays a selected value because there is no option zero. But before sending the page, there is no need to adjust anything in session state - what is ultimately a table in the base of the APEX.
    Calculating forces a value in session state when the lov child makes, there is therefore a value in that variable binding - so record return.

    CAPICHE?

  • PanelTabbed of the ADF. How to choose the default tab when the page loads

    Hi all
    I have a panelTabbed with three showDetailItem component, and I want the first showDetailItem to the tab by default whenever the page loads.
    Currently, the default tab, that's all that the tab that was last visited.

    I tried to disclosed attribute set to true on the first tab and false for the other, but it does not work.

    Thanks in advance.

    Published by: 947142 on July 18, 2012 11:03

    Have a method in the managed bean that is called when the page is loaded and set the tab disclosed.

    Here is a sample based on your use cases:

    PanelTabbed.jspx:



    xmlns:af = "http://xmlns.oracle.com/adf/faces/rich" >












    PanelTabbedBean.java:

    import java.util.List;

    javax.faces.component.UIComponent import;
    Import javax.faces.event.PhaseEvent;

    Import oracle.adf.view.rich.component.rich.layout.RichPanelTabbed;
    Import oracle.adf.view.rich.component.rich.layout.RichShowDetailItem;
    Import oracle.adf.view.rich.context.AdfFacesContext;

    public class PanelTabbedBean {}
    Private RichPanelTabbed myPanelTab;

    public PanelTabbedBean() {}
    }

    {} public void setMyPanelTab (RichPanelTabbed myPanelTab)
    this.myPanelTab = myPanelTab;
    }

    public RichPanelTabbed getMyPanelTab() {}
    Return myPanelTab;
    }

    {} public void onPageLoad (PhaseEvent phaseEvent)
    If (phaseEvent.getPhaseId () .equals (phaseEvent.getPhaseId (). RENDER_RESPONSE)) {}
    If (!.) {AdfFacesContext.getCurrentInstance () .isPostback ())}
    If (this.myPanelTab! = null) {}
    List childUIComponent = this.myPanelTab.getChildren ();
    If (childUIComponent! = null & childUIComponent.size () > 0) {}
    for (int i = 0; i)< childuicomponent.size();="" i++)="">
    If (childUIComponent.get (i) instanceof RichShowDetailItem) {}
    If (i == 0) {}
    ((RichShowDetailItem) childUIComponent.get (i)) .setDisclosed (true);
    } else {}
    ((RichShowDetailItem) childUIComponent.get (i)) .setDisclosed (false);
    }
    }
    }
    }
    }
    }
    }
    }
    }

    Thank you
    Nini

  • Designate a tab in the Panel tabs on the default start tab when the page loads?

    How can I designate a tab in the Panel tabs on the default start tab when the page loads? Anyone know?

    In fact, whatever tab is active in Design view should be the tab by default when the site is published/exported/Uploaded.

  • How to display the activated checkbox in selectManyListbox when the page loads.

    I need to display the box on page ready.

    Following code shows a checkbox with the checkbox 'All' as well.

    < af:selectManyListbox label = "category of FaQ.
    Binding = "#{backingBeanScope.TestBackingBean.catSelectMany} '"
    ID = "catSelMany" autoSubmit = 'true '.
    required = "true".
    valueChangeListener = "#{backingBeanScope.TestBackingBean.handleSelectedCategoryValue}" >
    < f: selectItems value = "#{backingBeanScope.TestBackingBean.product1List}" id = "catSelItems" / > "
    < / af:selectManyListbox >

    On the value change listener, next server, I found that the values are in the table. As the selected values are: [0, 1] like that...

    How can I put the value as well as on the page load, I can display a selected check box.

    In the code, I see that you have linked the selectItems list to the value property of selectManyListbox which is incorrect. List of the selectItems must be bound to the value property of f: selectItems and the value property of SelectManyListbox should point to a variable of the list with the getters and setters. If you want to show something is selected by default, you must initialize the list linked to the value property with the values you wanted to show as selected.

    Sample:

    
         
    
    
    // Declare and Initialize product1List with the values 0 and 1 if you want to display product0 and product1 as selected by default
    private List product1List = Arrays.asList(0,1);
    //Add getter and setters for product1List
    

    Jean Lou

Maybe you are looking for

  • transfer the app from iphone to itunes library

    Hello world.  I have an ios application that are not re - download in the app store specifically TUBE DOWNLOADER (D/L) by Apps2be. I don't know why this particular application has been removed in my itunes library.   I got a new Ipad pro and I want t

  • Photo transfers

    When I transfer photos from a cd to MY PICTURES, I can not open. Says "the image is too large (too many bytes).

  • Last updated Dreamweaver 2015 kills extensions

    Since the last update Dreamweaver CC 2015 view days before, some extensions to extend Dungeon studio asking to install flash. So I did. But nothing has changed, see the screen. Anyone who has the same experience?

  • SCSI vs SATA in HDD VM settings.

    HelloI just upgraded to Fusion 8. I have a MacBook Pro 15 "mid 2015 (the one with the flash SSD) and I installed Windows Home 10 in a virtual machine."In the settings/hard disc VM, I see three options for 'Type of Bus': SCSI, IDE and SATA. The defaul

  • Serial number not valid work on another machine

    I bought LR6, downloaded and installed on Office OK.Try to install on my laptop, the message "invalid series...". "What can I do about this problem?