When using a web application on a smartphone a slow network can be really annoying. Especially moving to another web page can take more than a few seconds.
In mobile development often Single Page Applications are the answer to speed up the application. Because the whole application is on one page the only requests to the server are for getting data or submitting transactions.
The Apex architecture relies strongly on page refreshes. Most of the processing is done when rendering the page or when submitting a page. All this processing can not be used in a SPA because it is rendered only once and never submitted (the Apex way). The image below shows which part of the Apex functionality is available.
So the way to go is to:
– create one page with all the regions we want on it
– disable all fetch processes
– implement transactions with Dynamic Actions
I think this way it is possible to generically create Single Page Applications with Apex, without all the manual coding described in the presentation. Only, I have not got the time to code it. Besides, it would be better if it were built into Apex, wouldn’t it? Then everybody could benefit. Well Apex team, what about another challenge?
More information about the exact implementation is available in the presentation: available shortly
You can also download the example application ( Apex 5, only the EMP table needed ) : http://www.detora.nl/downloads/kscope2015/apex_spa.sql
Be sure to check the supported objects when importing because the application depends on a package spa_pck.sql.