Partial Page Refresh - Text Box Update
Hi,
I have a page where there are numerous regions, each containing two or more text fields. I want these to update periodically using partial page refresh.
I have got the partial page refresh working but my text fields are not being updated. How would I get them to update? I know I can't call a page process from javascript, only application processes.
Cheers
Simon
Hi John,
I think you'll need to create two dynamic actions. One of type PL/SQL block with null; as the source and enter the items to submit. The second is the Refresh Region Dynamic Action..
Martin
http://www.talkapex.com
Similar Messages
-
(Classic) Report losing pagination on partial page refresh - APEX feature request
I have a page with both an Interactive Report and some classic Report regions.
Based on user updates, there are many occasions where I need to do a partial page refresh.
Thanks to plugin http://www.apex-plugin.com/oracle-apex-plugins/dynamic-action-plugin/refresh-interactive-report-1.0_361.html
I'm able to refresh my IR, but not my classic report (unless I do a submit of the whole page) without losing pagination.
Request: Will a Dynamic action 'Refresh without losing pagination' be part of future apex versions?
Now, in apex 4.2, is there another work around available for classic reports?
(I use 'submit page' now as action, but it's at least a second slower as a partial refresh, and because I need it on every user update, this second becomes a big addition to user frustration).
Thanks, JPHere is the solution for your problem:
https://apex.oracle.com/pls/apex/f?p=31517:243
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.apress.com/9781430235125
https://apex.oracle.com/pls/apex/f?p=31517:1
http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494 -
Event handler when using partial page refresh ?
Hi
I have a calendar, which uses partial page refresh. The problem is how to make javascript wait until the calendar has loaded and then do some updates on the calendar (after the user has pressed the next button that runs apex.widget.calendar.ajax_calendar('S','next');, for example ). I thought I could add "onreadystatechange" (or onload) event handler to the calendar like this: onreadystatechange="checkState()", where the function would check the state and if ready then do the updates. This doesn't work. Could somebody please tell me why not ?
TiinaHi,
It seems that ajax calendar missing event apexafterrefresh.
I do not know is this "bug" or just feature.
That event would be useful to your case , if I understand correct what you looking for.
For workaround , you can over write original function by placing this to calendar region footer
<script>
apex.widget.calendar.ajax_calendar=function(p_calendar_type, p_calendar_action, p_calendar_date, p_calendar_end_date){
var l_cal_type_field = $v('p_cal_type_field_id');
var l_cal_date_field = $v('p_cal_date_field_id');
var l_cal_end_date_field = $v('p_cal_end_date_field_id');
var l_cal_id = $v('p_calendar_id');
var l_calendar_region = 'calendar' + l_cal_id;
if ( p_calendar_type != 'C' ){
$s(l_cal_date_field,$v('p_calendar_date'));
}else{
if ( $v(l_cal_date_field) == '' ) {
$s(l_cal_date_field,$v('p_calendar_date'));
if ( $v(l_cal_end_date_field) == '' ) {
$s(l_cal_end_date_field,$v('p_calendar_end_date'));
// create and apex.ajax.widget object
var a = new apex.ajax.widget('calendar',function(){
/* start the return function */
if(p.readyState == 1){
document.body.style.cursor = "wait";
}else if(p.readyState == 2){
}else if(p.readyState == 3){
}else if(p.readyState == 4){
$x(l_calendar_region).innerHTML = p.responseText ;
$s(l_cal_date_field,$v('p_calendar_date'));
if (p_calendar_type == 'C') $s(l_cal_end_date_field,$v('p_calendar_end_date'));
document.body.style.cursor = "";
/* DO HERE THINGS AFTER CALENDAR REFRESH */
}else{return false;}
// code for next,previous and today
if (p_calendar_type == 'S'){
p_calendar_type = $v('p_calendar_type');
}else{
$s(l_cal_type_field,p_calendar_type);
a.ajax.addParam('p_widget_mod',p_calendar_type);
a.ajax.addParam('p_widget_action',p_calendar_action);
a.ajax.addParam('x01',l_cal_id);
var lDate = (!!p_calendar_date && p_calendar_date !== '')?p_calendar_date:$v(l_cal_date_field);
if (p_calendar_type == 'C') {
var lendDate = (!!p_calendar_end_date && p_calendar_end_date !== '')?p_calendar_end_date:$v(l_cal_end_date_field);
a.ajax.add(l_cal_date_field,lDate);
if (p_calendar_type == 'C') a.ajax.add(l_cal_end_date_field,lendDate);
a.ajax.addParam('x02',lDate);
if (p_calendar_type == 'C') a.ajax.addParam('x05',lendDate);
a.ajax.add(l_cal_type_field,p_calendar_type);
a._get();
</script>Where I have comment *"do here things after calendar refresh"*, you can hook own scripts.
Of course this is not best way, but might help you till ajax calendar support dynamic actions fully
Regards,
Jari
Edited by: jarola on Oct 20, 2010 3:11 PM -
Hi Guys,
Where can I find some cases/page in HRMS 9.1, which leverage partial page refresh, a new features from PeopleTools 8.50?
Thanks,Yes, this can be done in Ajax, now depends if you have worked on Ajax or not? You just need to intanciate XHR object, i.e. xml http request, call a custom jsp where you retrieve the values using jdbc, and update the OAF page.If you have not worked extensively on javascript using ajax features i would advice not to go via that route as you may not support it in future.
--Mukul -
Partial page refresh is not working in APEX 4.0
Hi All,
I have a report region in my application,I have selected the following properties for the region,
Pagination scheme - Row ranges X To Y (with next and previous links)
Enable partial page refresh - yes
Display position - bottom -right
Their is an arrow mark link(next /previous) in the right bottom corner,when i click on that ,the region is displaying the next 15 rows, but the region is not getting refresh,the scroll bars are al went off if i click the previous/next link.
After that i refreshed the page by clicking F5 ,scroll bar is appearing now.
In the region header and footer i have added this code,
<div style="overflow:auto;">
</div>for scroll bar
Please some body help me to fix this issue..
Thanks & Regards,
Ramya.
Edited by: Ramya on Apr 15, 2012 10:42 PMHi All,
I fixed this issue.
I used Skillbuilders modal popup plugin, to open the form page as popup when i edit the record.To implement this plugin i have already created dynamic action for edit ,create and autoclose the popup.
In the dynamic action i changed the EVENT SCOPE from BINT To LIVE and tested the application.Now its working fine.
I can able to edit the record after i hit the next/previous pagination link .
Thanks ,
Ramya. -
Oracle Apex partial page refresh problem in IE
Hi All,
I'm using a button to refresh a region by enabling ppr .
On click of the button , m redirecting to url and the url target is as follows
javascript:jQuery('#VH_SCROLL_EMP88').trigger('apexrefresh');
Its working fine in firefox and chrome but not in internet explorer. When I click the button in IE I just get the following
[object Object] in the page
When I click back button of browser I'm getting the original page
Please help me to understand and rectify this
Regards
Sasidharana) What version of IE are you using, this probably factors greatly in this question
b) If you want to partially page refresh a region, it looks like you're using a sledgehammer when all you need is your clicking finger
- can you create a dynamic action for your button that applies a 'refresh' action to your selected region -
Partial page refresh in REQUEST scope
Hi,
I was going through the various example of partialTrigger.
But in I am unable to find the example in where we can use the partialTrigger with having our backing bean into request scope. means Can we do partial page refresh without keeping our backing bean into session scope?
Can we do partial page refresh across different fragments (different jsf fragment - jsff ) with having the our backing bean in a request scope?
Is there any way that we can achieve this?
Please can any one provide some input or help on this?
Thank you in advance.
- KumarHi,
Can we do partial page refresh without keeping our backing bean into session scope?
Yes, don't know how you get to this idea that you couldn't. You can use ADFFacesContext.getCurrentInstance().addPartialTarget(component)
Can we do partial page refresh across different fragments (different jsf fragment - jsff ) with having the our backing bean in a request scope?
You are posting a JDeveloper 11 question without saying it first. Also note that there is a JDeveloper 11 forum here on OTN. To answer the question, I don't think that you can do this and that instead you would use a region and contextual events to refresh the area
Frank -
POP LOV and Branching ( Partial page refresh)
I have a POP LOV (Shows description and returns id). I want to change certain elements on the screen based on the user selection.
It is not possible via POP LOV. I cannot use selection lov since the number of values returned is going to be very large.
is it possible to achieve this functionality in any way using POP LOV ?
Appreciate your help.
RgdsScott,
Thanks for your input. I think I didn't frame my question correctly, sorry about that. I will describe further
I want the page to refresh after a value is chosen using POP LOV. THis is required to hide/show certain elements on the screen and also to populate another Dependant LOV.
For example, choosing country should populate dependant "city" or states lov. I have to achieve some functionality similar to this. I do not want to "Submit" the page, because I don't want to save anything at this point in time.
So it would be partial page refresh (Similar to OA Framework) without submit.
Rgds,
Venkatesh
Message was edited by:
Venkatesh_pr -
Importing multiple PDF pages into text boxes
Hi,
Im wanting to import a pdf doc of adverts (roughly 300 pages) into indesign into a text box to allow me to treat the individual pages as text items to allow me to space them and fit them to the pages accordingly. I can add single pages into a text box using the place command however it wont flow all the pages into the text box one after each other.
is this possible?I expect this would need to be scripted unless you are able to use a grid, in which case the "gridified" placing options in CS5 might allow you to place all the pages that will fit on a single page at one time from the loaded cursor. That's not something I've played with, though so I can't wear it would work.
I'm not sure placing them as inline anchored objects (as you describe), by the way, is going to give you the sort of placement control you want. -
Am I being really dim? I want to delete a text box from my document, I can't figure it out. It just says 'text' inside it. It doesn't show when I print the page, but it's bugging me. Thanks.
What do you get when you touch/select the text? I am getting a pop-up that reads: "select/select all/paste/copy style". When I "select all" the text is then highlighted in light blue with the pop-op options now reading: "cut/copy/paste/copy style". If I choose/touch "select all" the text disappears.
Message was edited by: Jazmaraz -
XSLT page refresh issue on updating xml
hi,
my application involves rendering of xml through XSLT on ah HTML page.
i am using XMLTransformer in servlet i.e.
transformer.transform( new StreamSource(tempXmlFile),
new StreamResult(outputHtmlFile));
response.sendRedirect(request.getContextPath() + "/logDetailXsl.html");
and then i redirect the servlet to html page where html page is built through xslt therefore no meta tags or scriplets can be made.
problem is that html page is not updated. i have used javascript for refresh but it doesnot work either.
i m new using xslt so can not identify if the problem is with xslt or html page!
pointers appreciated!hi,
my application involves rendering of xml through XSLT on ah HTML page.
i am using XMLTransformer in servlet i.e.
transformer.transform( new StreamSource(tempXmlFile),
new StreamResult(outputHtmlFile));
response.sendRedirect(request.getContextPath() + "/logDetailXsl.html");
and then i redirect the servlet to html page where html page is built through xslt therefore no meta tags or scriplets can be made.
problem is that html page is not updated. i have used javascript for refresh but it doesnot work either.
i m new using xslt so can not identify if the problem is with xslt or html page!
pointers appreciated! -
Hi everybody,
Well, I want to create a real-time region, like refreshing second per second. I found in this forum something about PPR templates.
But what is this? How can I use this? Where I find this?
I'm using the Apex 4.0.2 version.
Thanks guys
RaulYes, this can be done in Ajax, now depends if you have worked on Ajax or not? You just need to intanciate XHR object, i.e. xml http request, call a custom jsp where you retrieve the values using jdbc, and update the OAF page.If you have not worked extensively on javascript using ajax features i would advice not to go via that route as you may not support it in future.
--Mukul -
Hi,
On a standard page, I have added a column of itemtype link to a table through personalization, which shows status.
On click of link, I'm calling a custom read only page (has its own custom AM and VO) in a new window. Its a simple readonly table with data from custom VO.
Problem is after clicking on the link and new window opens, if i do any action on standard page, control goes to standard process request and std page gets refreshed.
How can i avoid this, i dont want std page to be refreshed.
In personalization, i have given link item's destination uri as
OA.jsp?page=/xxx/oracle/apps/ar/irec/accountDetails/webui/xxstatusHistPG&invNum={@TrxNumber}&retainAM=Y
I tried retainAM=N as well as removing that parameter but still same issue.
Any help is greatly appreciated, Thanks!Hi Gustavo,
There is partial page refresh on std page, in extended CO PR, I have added event on column amount (to do validation on tab out)
as well as on select check box (it defaults rem amount into pay amount). For link, I'm opening new page by setting destination URL property in link item properties.
I cannot code for parameter based pop-up as Im in 11.5.10 and using JDeveloper 9.0.3 (added screen behaviour below)
Hi Shobhit,
I tried the approach you suggested. Based on session parameter, Im controlling the code in std extended CO PR.
It worked, I mean at least it doesn't error out now like before with navigation error. However it refreshes the page as control went to PR.
I entered some amount in amount text field, and then clicked on "partially paid' link. it opens a custom page in new window.
after that if i select any other record using check box, it goes to PR and refreshes the page. Is it possible to avoid this.
Thanks
Prabhu
Its a payment screen, where i can pay multiple invoices. added select check box for the same. added below code on check box to capture event in PFR and default remaining amt to pay amount text field. i also have payment status link as column in the same table. on click of it i open a new custom window to show transaction details.
if i select some invoices and modify amounts, and then if i click on status link just to see the status before clicking on pay button, this issue happens. as page refreshes on any action, all my modifications are gone.
Select checkbox has been added using personlization and hence has to set set fire action in PR.
Code in PR:
Hashtable paramsWithBinds = new Hashtable(1);
paramsWithBinds.put ("param", new OADataBoundValueFireActionURL(chkbox, "{$TrxNumber}"));
chkbox.setFireActionForSubmit("selectPPR", null, paramsWithBinds,false, false); -
ID CS6v8 -- Blank pages, missing text, slanted cursor, etc.
Having very strange problems with a file.
1. I am getting blank pages where I had completed a layout (yes, I can see elements in Layers and some items reappear if I turn off some items called <group>, but not all.
2. Some pages have missing items. 3. Some pages have text boxes that appear blank where text was previously visible. When I try to repopulate the text box I get a slanted cursor. I can see the text in Story Editor.
3. When I try to populate art boxes, nothing is visible even though it shows up in layers, but not in links.
I think these are somehow related because they all happened at the same time to the same group of pages. The rest of the document, containing the same type of elements, seems fine.
This is a large, complex document. HELP!!!!Sorry to say that this did not help. In fact, every time I tried to do this, it crashed IND. So, I have deleted the pages that were problematic, added in new pages, and recreated the damaged 10 pages of my document.
NOT A HAPPY CAMPER.
The worst of it is that I have no idea what caused the problem, no way to correct it, and no way to prevent it from happening again. -
Partial Page Rendering with HTMLDB2.0. How can I do it?
Hi,
somebody told me, that PPR is implemented in HTMLDB 2.0. So not the whole page will be rerendered after a submit but a single region. I know this very helpful feature from the ADF-Java Server Faces. How can I do it with HTMLDB 2.0?
Bye,
RumburakHello,
Take a look at this thread.
Netflix: Nice UI ideas
Also just so you know PPR Partial Page Refresh is an Oracle term you would probably have better luck looking for AJAX or XMLHTTP when looking in the forums
Carl
Maybe you are looking for
-
How to get RGB value from pixel of an image.
hi, i need a little help... Is there any EASY way to get RGB value from point of an image? I searched javadoc but i only found very complex getRGB method working only with regions, and saving data into arrays. Is there any other way that can use for
-
Appearance of Yosemite password page - how to change it from the automatic one? I can't remember what previous operating systems showed at this point but I do not remember being disturbed by it every time I woke my computer up as I am now! It's not m
-
Good day, Is it possible to remove or protect the "Check" option on a standard Web Query variable screen. Thanks
-
hi experts, I have a PO created for 100 quantities. But the status tab in header is showing zero. both ordered and Still to deliv. is zero instead of 100. The status tab is not getting updated.why will this happen.
-
Custom Search Portlet: How to specify a page in the auto query?
I want to specify a page in an auto query (Automatically display search results). I'm able to specify a pagegroup (Tab What to Search), but unable to select a specific page and to include/exclude subpages. This option is available on the SearchForm T