Partial Page Refresh Samples
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
Similar Messages
-
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. -
(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 -
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 -
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
SimonHi 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 -
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); -
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 -
Animated gif and page refresh problem
Animated gif and page refresh problem
Hi There,
I'm trying to build a simple "Please wait......" screen using jsp and javascript.
So far all is going well except that my animatate gif keeps refreshing everything the page is refresh.
Is there a way the i can prevent the body of the page from refreshing?
below is my sample code:
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<jsp:useBean id="StatusBean" class="com1.CandidateRelease" scope="session"/>
<html>
<script LANGUAGE="JavaScript">
function refresh()
<% if (StatusBean.isRunning()) { %>
//setTimeout("refresh()", 1000);
setTimeout("location='status.jsf'", 1000);
<% }else{%>
window.location= "busStopAdmin.jsf";
<%} %>
</script>
<head>
<script LANGUAGE="JavaScript">
refresh();
</script>
</head>
<body>
<img id="myImage" src="../img/ojp_wait.gif" alt="" width="151" height="36">
</body>
</html>Animated gif and page refresh problem
Hi There,
I'm trying to build a simple "Please wait......" screen using jsp and javascript.
So far all is going well except that my animatate gif keeps refreshing everything the page is refresh.
Is there a way the i can prevent the body of the page from refreshing?
below is my sample code:
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<jsp:useBean id="StatusBean" class="com1.CandidateRelease" scope="session"/>
<html>
<script LANGUAGE="JavaScript">
function refresh()
<% if (StatusBean.isRunning()) { %>
//setTimeout("refresh()", 1000);
setTimeout("location='status.jsf'", 1000);
<% }else{%>
window.location= "busStopAdmin.jsf";
<%} %>
</script>
<head>
<script LANGUAGE="JavaScript">
refresh();
</script>
</head>
<body>
<img id="myImage" src="../img/ojp_wait.gif" alt="" width="151" height="36">
</body>
</html> -
ADF Faces : partial page rendering in f:subview
hi
Please consider this blog post, "ADF Faces: How-to issue a PPR event from a f:subview and how-to PPR of subviews" :
http://thepeninsulasedge.com/frank_nimphius/2008/02/14/adf-faces-how-to-issue-a-ppr-event-from-a-fsubview-and-how-to-ppr-of-subviews/
In this post, Frank Nimphius writes : "... PPR from a containing page to the subview - unfortunately - only works for the whole subview, which means that the included page is getting refreshed. Because the f:subview component does not support PR, you need to work with a wrapping ADF Faces container, like af:panelGroup ...".
But, it looks like such partial page rendering in a subview can be done without a specific "wrapping ADF Faces container" like this ...
<h:form id="firstPPRPageFormID">
<af:panelPage title="firstPPRPage">
<af:panelHeader text="components on firstPPRPage">
<af:panelForm>
<af:panelLabelAndMessage label="dateUtil.currentDateAsString, with partial trigger">
<af:outputText value="#{dateUtil.currentDateAsString}"
partialTriggers="firstSubviewID:firstSubviewCButton"/>
</af:panelLabelAndMessage>
<af:panelLabelAndMessage label="dateUtil.currentDateAsString">
<af:outputText value="#{dateUtil.currentDateAsString}"/>
</af:panelLabelAndMessage>
<f:facet name="footer">
<af:commandButton text="firstPPRPage button"
id="firstPPRPageCButton"
partialSubmit="true"/>
</f:facet>
</af:panelForm>
</af:panelHeader>
<f:subview id="firstSubviewID">
<jsp:include page="/firstSubview.jspx" flush="true"/>
</f:subview>
</af:panelPage>
</h:form>... and where firstSubview.jspx contains something like this ...
<af:panelHeader text="components on firstSubview">
<af:panelForm>
<af:panelLabelAndMessage label="dateUtil.currentDateAsString, with partial trigger">
<af:outputText value="#{dateUtil.currentDateAsString}"
partialTriggers=":firstPPRPageFormID:firstPPRPageCButton"/>
</af:panelLabelAndMessage>
<af:panelLabelAndMessage label="dateUtil.currentDateAsString">
<af:outputText value="#{dateUtil.currentDateAsString}"/>
</af:panelLabelAndMessage>
<f:facet name="footer">
<af:commandButton text="firstSubview button" id="firstSubviewCButton"
partialSubmit="true"/>
</f:facet>
</af:panelForm>
</af:panelHeader>Note the value ":firstPPRPageFormID:firstPPRPageCButton" for the partialTriggers attribute.
see http://verveja.footsteps.be/~verveja/files/oracle/PartialPageRenderingInSubview-v0.01.zip (check README.txt)
questions:
(1) Why exactly does this approach seem to work?
(2) Because of question (1), what could be potential issues with this approach?
regards
Jan VerveckenJan,
good job ! I actually never thought of reversing what I said about PPR'ing a component from a subview.
Actually
partialTriggers=":firstPPRPageFormID:firstPPRPageCButton"/>
works because the leading ":" makes ADF Faces to start the component search from the root container. Note that if you use af:form instead of h:form, the trigger is
partialTriggers=":firstPPRPageCButton"/>
I'll update my blog
Frank -
Partial Page Rendering - newbie question
I am a newbie to ADF and I am in the process of trying out the tutorial "Developing Ajax-Based User Interfaces with ADF Faces Rich Client Components" http://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_56/jdtut_11r2_56.html
I have a question regarding Step 4. I am not very sure where to post this question, if this is not the correct forum, pardon me.
Under "Step 4: Implementing Partial Page Rendering" there is this following comment
In order to have a refresh of the Product Details when you select another row in the Product table, we need to set the Partial Rendering behavior. To do so, perform the following steps:
Similarly On Step 3, sub step 26 states "Finally, double-click on any of the rows in the product table. Notice that the Product Details pane does not reflect the change in the selected product. To implement this synchronization, we need to add partial page rendering functionality."
Question: even before I tried any of the changes mentioned in step 4, I am finding that the product details pane does show information related to the product selected on the panel collection (in other words it is displaying the master detail information automatically). What am I missing here? As per the training document it is supposed to work only after implementing changes mentioned in step 4. Can one of you kindly point out if this is a mistake in documentation or if I have misunderstood the statement?
Thanks
A SreedharFrank,
Thank you very much for the quick turnaround; I appreciate it.
Yes, I am using what seems to be the latest version of JDev (11.1.2.3.0); and yes the ChangeEventPolicy for the iterator is set to "ppr". Thank you for pointing that out.
Does that mean ppr is standard for most components (when I say components, I mean adf tables, button's etc), don't we need to add any special events to get that to work?
I just wanted to see, what will it due if the ChangeEventPolicy for the iterator is set to "None"; made the change saved it, there were two iterators I changed the "ChangeEventPolicy" on both to none; saved it and ran the page. It worked same as before; I was expecting it will not load the corresponding data at the child level, but it did. can you kindly point out what is wrong.
<executables>
<variableIterator id="variables"/>
<iterator Binds="root" RangeSize="25" DataControl="StoreProducts" id="StoreProductsIterator"
ChangeEventPolicy="none"/>
<accessorIterator MasterBinding="StoreProductsIterator" Binds="products" RangeSize="25" DataControl="StoreProducts"
BeanClass="tutorial.model.Product" id="productsIterator" ChangeEventPolicy="none"/>
</executables>
Thanks
Aravind S -
Partial page rendering not working in ie9
Hello guys, i have one fusion web application and got menu navigation using partial page rendering. The problem is, the ppr is working fine in firefox, chrome, ie8 and ie7 but not working in ie9. Is it i need to update jdeveloper patch or something?
My ppr setting
put below code in web.xml
<context-param>
<param-name>oracle.adf.view.rich.pprNavigation.OPTIONS</param-name>
<param-value>on</param-value>
</context-param>
for the menu just enable partial submit
partialSubmit="true"Oh sorry, currently i am using jdeveloper version 11.1.1.5.0. Actually it is not shown any error, when i click the command link as example below, in ie9, nothing happens still displaying same page (my main page).
my sample menu
*<af:commandLink partialSubmit="true" action="page1" text="Page 1" id="cl2"/>*
*<af:commandLink partialSubmit="true" action="page2" text="Page 2" id="cl3"/>*
in task flow, action page1 will open page1.jspx and page2 will open page2.jspx
Maybe you are looking for
-
Web Dynpro applications not working on ECC 6.0 IDES
Hi, I'm new to Web Dynpro and developed a custom Web Dynpro (including the application) on a ECC 6.0 IDES system. It's simple with a couple of input fields. When I test it (either via SAP GUI 7.1 or 7.2, or Web GUI), it appears on the browser ok but
-
HT1848 How do you transfer purchases on the new iTunes?
Please help my old computer crashed and not all of my music was on the cloud. All the help pages show me how to transfer on the old itunes set-up which i already knew but none of it is working on this set-up. I'm lost.
-
We've recently gotten iPhones for the first time and need help! Which forums would be the best place to ask questions. The problem is, when i received our two phones, I set them up but there was no way to see which phone was for my phone number or
-
We were offered the new upgrade, so went ahead and completed the upgrade. Since then every time we open firefox, or try and do anything with it after it's open, such as clicking links or trying to browse the following message comes up: "TypeError: gI
-
Edition WOW64 Platform Error on Widnows 7
Hi, I am trying to install the SQL server Express Edition 2008 R2. but, I am getting the error "Edition WOW64 Platfrom - Failed". I am using the setup file "SQLEXPR32_x86_ENU", which has been downloaded MS. Below are my system details. OS : Win7 Ulti