Partial Refresh for Chart Region
Hi all,
I am using Application Express 4.0.1.00.03.
I need to know whether partial refresh is available for Flash Charts or not?
If yes how?
Thanks in advance...
Edited by: jyothi on Aug 17, 2011 9:06 PM
Hi,
There is undocumented JavaScript function apex_RefreshChart for refresh flash chart.
Regards,
Jari
Similar Messages
-
SELECT statement for Chart Region
I'm trying to code a Chart Region and I'm having difficulty with the specialized SELECT statement used with graphs. In particular, I seem to be misunderstanding the link parameter at the beginning.
select http://apexdevapp1.ci.raleigh.nc.us:7777,
User Name,
user_name, count(ID) total
FROM eba_ver2_cust_activity
group by user_name
Can anybody see anything wrong with the above code? It gets thrown out as invalid. The error message "FROM in unexpected place" isn't very helpful.
Steve "the n00b" in Raleigh NCyour query has syntax error
try this:
select
'http://apexdevapp1.ci.raleigh.nc.us:7777',
user_name, count(ID) total
FROM eba_ver2_cust_activity
group by
user_name,
'http://apexdevapp1.ci.raleigh.nc.us:7777' -
JSF - CommandLink action - Partial Refresh for Multiple Pages in a Form
Hi,
I have a 3 JSP Pages, say ( 1.jsp, 2.jsp, 3.jsp) called as designed in the FORM below :
--------------PAGE 1.jsp-----------------------------------------
| Input Box 1 |
| Input Box 2 |
| Input Box 3 |
| |
| <DIV> |
| PAGE 2.JSP |
| </DIV> |
| |
| |
| |
| <DIV> |
| PAGE 3.jsp |
| </DIV> |
|________________________________________ |
Page 1 has some input boxes and onBlur() of one of the input Boxes --> I call some Ajax code pass Values from Page 1.jsp to Page 2.jsp --> build URL for Page 2.jsp and display it in the specifiedDIV area above.
Similarly, Page 2.jsp has some inputs --> pass inputs from Page2 to Page 3----> build URL for Page 3.jsp and call it in DIV areaabove .
Now,
Page 3.jsp has a commanButton which I click and upon success submission refreshes the whole screen & loads only Page 3.JSP
Is there a way that when i click on the submit button on Page3.jsp above, only the part of the whole form that has Page 3.jsp refreshes and rest of the screen remains as it is. I mean Page 1 & Page 2 do not get refreshed.
I would really appreciate if you could assist with some code examplesDon't know if I get it right, but it's not wise to discover wheel, when it's alredy discovered. Mix of JSF 1.2 with RichFaces should do. You can set form to be submited in ajax, you have ajax components, finally you have attribute 'reRender' in commandButton (or whatever you use) which tells which part of page should server rerender, so just indicate it by element id :].
In short term You may try to divide your page with sub pages (suppose you use subview) on 3 forms. In JSF 1.2 RI h:form always send whole form, and so rerenders whole form -
Dynamically refresh Flash chart in 4.2
In my Apex 4.2 app I have a chart region that I want to refresh whenever a radio button group has changed.
My radio button group P2_RG_DEPTNO returns static values 10 and 20.
I created a dynamic action on the group to refresh the chart region when the value has changed.
The chart series uses the value or the radio group in the query:
select null, ename, sal from emp
where deptno = :P2_RG_DEPTNO
order by sal descHowever, the chart never refreshes.
How can I refresh just the chart and have the series query re-execute, using the new value of P2_RG_DEPTNO?
Workspace: cmr
Username: [email protected]
Pwd: cmrtest
App ID: 16120
Page: 2
Thanks,
ChristophHi I checked your application.
You had DA defined on P2_RG_DEPTNO but in your chart series query you referenced P2_X2 item. This is why the chart was not being refreshed.
Change that to P2_RG_DEPTNO and check.
I changed your chart query.
Please check now.
Thanks.
Mehabub -
How to zoom chart region....
Can anyone please guide me to zoom in/ zoom out for Chart regions.
I tried this below code in chart XML:
*<y_axis>*
*<zoom enabled="true" inside="true" start="65" end="95" />*
*</y_axis>*
of the particulart chart region by enabling USE CUSTOM XML but it doesnt work can any one please guide me ...?????
Regards,
Manoj
Edited by: 882468 on Oct 13, 2011 2:27 AMHi yann,
thnx for ur reply,
i have done what u have written but i didn't meet my requirement..
let me explain what i need exactly
as of now my application is like this..
i have a html region in that i have select list(P6_LIST) and go button
and chart region.
chart query is like this..
SELECT your_value
FROM your_table
WHERE your_value = :P6_LIST
AND ...
how it is working??
when user sign into my application, user can see html region with 'select list and go button' and chart region with 'no data '.
when user select a value in select list and click on go button automatically chart region will be dispalyed with chart.
what i wanted to change is..
when user sign into my application, user can see html region with 'select list and go button' and no chart region
when user select a value in select list and click on go button then only user can see chart region with chart.
plz help me how to do it.. :)
thnx in Adv.
Edited by: moulani on Nov 4, 2011 12:05 PM -
Partial Refresh of a Page (Chart Refrech : parameter change)
Hi,
I have page with som reports and 1 chart.
I would like to refresh only the chart (flash one) using a button ... So, It is OK for a simple query (the partial refresh process is working : the OTN example used). But when the query used for the chart are base in item (select *... from my_tab where cl=:P1_CHART_HIST), the refresh is not taking into consideration the parameter change (refresh needed after changed the value in the item P1_CHART_HIST...)...
I hope that you see what I mean and do you have a solution for this ...
Regardsif you provide a name for the iframe, you can set the target in the href's..
I would also provide it with an ID and Name, as you might want to do some fun JS stuff with it in the future.
You can actually with JS change the content
HTML way:
a href="http://www.google.com" target="pdfIFrame"
I would stick with the HTML-eidtion..
The iframe should work as the older frames, eg. you have to set the name in the iframe too.
Also I see there was missing a > in your iframe code.
<iframe width="100%" height="100%" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="&P1_LINK." name="pdfIFrame">
</iframe>
Maybe you should also consider styling the iframe via. CSS. Use ID or Class on the Iframe to do so.
Edited by: user9178158 on May 11, 2010 3:26 PM
Edited by: user9178158 on May 11, 2010 3:27 PM -
Problem doing partial refresh (pull) of HTML region
In my application, I have a page where on the left I have a list of documents and, on the right, selected document in PDF format.
The right region is defined as HTML:
<object id="DataPDF" data="f?p=&APP_ID.:18:&APP_SESSION.:APPLICATION_PROCESS=odp_show_doc::::" type="application/pdf"></object>The function odp_show_doc gets PDF document from a web service and returns a PDF BLOB that fills the region.
However, to refresh the region with valid document data, I have to resubmit the page each time the user selects a new document.
To refresh the page partially (only the PDF region), I have tried to use Carl Backstrom's example (http://apex.oracle.com/pls/otn/f?p=11933:48) to pull the PDF content from another page, but to no avail.
I have defined another page (2) with a region that does the job. When I go directly on that page, I see the PDF region filling. But when I try to pull the same page with the code
var gReturn;
var get=new htmldb_Get(null,html_GetElement('pFlowId').value,null, 2);
get.addParam('P0_NUM_DOC_GED', numDocGed);
gReturn = get.get(null,'<htmldb:BOX_BODY>','</htmldb:BOX_BODY>');
alert(gReturn);I get the following error:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML2.0 EN">
<html>
<head>
<title>404 Not Found</title>
</head>
<body>
<h1>Not Found</h1>
<p>The requested URL /pls/apex/wwv_flow.show was not found.</p>
</body>
<html>In this case, the odp_show_doc is never called (I have added some debug info in this ODP function).
Has anyone an idea of what I am doing wrong and what correction should I do to make this pull work?
Thank you.
IgorWell... It seems to work directly on the machine, if I use the following URL when calling the application:
http://localhost:8080/apex/f?p=120However, when I call the application from outside with the URL
https://app-url/pls/apex/f?p=120, pulling the region based on on-demand-process results in:
The requested URL /pls/apex/wwv_flow.show was not foundPulling an ordinary report is OK.
Igor -
How can i see charts for different region
Hi guys, i want to be able to see the charts/ top singles for other regions! in particular korea and japan. How would i do this without changing my country? As the korean region is just an app store and you cant buy songs
Download the attachment from the link and open it in your designer to view the Script.
Thanks
Srini -
Refresh Hidden Sheet data for Chart
Hello people, I'm trying to expand a hidden sheet data to refresh a chart using these data, (in BPC 10 nw sp 17 patch 2)
The problem is that Data sheet is not refreshed, don't know the reason. Maybe someone can help me.
If I unhide the data sheet, and refresh it using standard refresh buton, it works. But I want to hide data sheet.
I remember doing this with EVDRE in BPC 7 and the procesdure was more or less the same:
Disable events/ screenupdating -> Unhide Data Sheet -> refresh -> Hide Data sheet -> Enable events/ screenupdating
Here is the VBA function I'm using:
Application.EnableEvents = False
Application.ScreenUpdating = False
Dim EPMOB As EPMAddInAutomation
Set EPMOB = New EPMAddInAutomation
Sheets("Chart Data").Visible = True
ActiveWorkbook.Sheets("Chart Data").Select
EPMOB.RefreshActiveSheet
Sheets("Chart Data").Visible = False
Sheets("Chart").Select
Application.EnableEvents = True
Application.ScreenUpdating = True
Thanks for your help.Hi Vadim than, Thanks for your reply, I'm still getting blank results using the macro. but there is data in report.
The problem was that I was calling the refresh chart info from an existing EVDRE report/sheet.
I wanted to use this report because it's the classic menu report with diferent steps and calls.
If i cut/paste the button to the CHART sheet (EPM 10), it's working... strange....
At least I can refresh in the chart sheet, but I cannot call macro from this MENU Evdre sheet.
I'm getting some Clear Cache errors and i have to reconnect to. see again reports... maybe that's because the EVDRE/EPM mixing reports...
thanks -
Apex 4.2 dynamic action to refresh a report region on a different page
Hi,
I open up a pop up window from a report region. When the user is done in the pop-up window and closes it, can I trigger a refresh on the report region using dynamic actions without actually reloading the whole page? I know I can use dynamic action on a page to refresh the report region on the same page.
Thanks,
SinanSinan,
So long as the region to be refreshed is still loaded, you can do this. I don't know how you are loading your pop-up or unloading it but, the principle should be the same as what I provide below.
Assume that you have set the static ID for your report to MY_REPORT. (Be sure you have checked "Allow Partial Page Refresh" in the Report Attributes).
$('#confirmBox').find('div#userConfirmationMessage').html( '<span class="userInputRequest">Would you to Refresh your Report?</span>' );
$('#confirmBox').dialog(
autoOpen: true,
modal: true,
title: 'Refresh Conformation',
buttons:
'No': function ()
$(this).dialog('close');
'Yes': function ()
$(this).dialog('close');
$('#MY_REPORT').trigger('apexrefresh');
-Joe -
Can I use apexrefresh to refresh a form region?
Hi- I have a tree region and below that I have a form region.
The tree has links that calls a javascript function when a node is clicked.
I want this JS function to set the ID for the form and then refresh just the form portion so the tree stays in the open, partial open, or whatever state it is in.
function set_program_id(pPROG_ID){
alert(pPROG_ID);
$s('P21_PROG_ID',pPROG_ID);
apex.jQuery('#PROG_DETAIL').trigger('apexrefresh');
I have PROG_DETAIL in the STATIC ID field of the region.
It doesn't work... is it possible or is this only for IR regions?I doubt the refresh functionality supports forms and trees. I have been able to get only report regions refreshed that way. Someone from the development team can probably answer that conclusively.
<li>You can think of invoking an Ondemand Process, return back JSON or XML for all the form item values and then set the form parsing that result set.
<li>Another way would be to use the new jQuery dialog functionality in Apex 4 to show a nice dialog box over the tree. The content of the box can be from another page where you can put your form in. When you show display the dialog you can set the dependent items (I suppose P21_PROG_ID ) first.
<li>If its just 2 or 3 items, you can even render them in a report as multiple rows and then refresh them.
For example
SELECT 'Prog Name' LABEL. APEX_ITEM.TEXT(1,progname) from .. where PROG_ID = :P21_PROG_ID
UNION ALL
SELECT 'Prog Description' LABEL. APEX_ITEM.TEXTAREA(1,description) from .. where PROG_ID = :P21_PROG_IDYou can try around with JS to display the content in the way you want it.
Now your form can be refreshed using a Dynamic action.
Personally I would choose using the jQuery Dialog Box as its more clean,is easily maintainable and looks nice. -
Refreshing only certain Region in APEX.
Hi Frenz,
I have a requirement like this. I want to refresh only certain region in the Page and not the full page.
Detailed Requirement: I have 2 region in Parent window.
I am entering a value in parent window in the First region. so the child window gets Populated.
I am entering some values in child window. so that those information has to get added into 2nd region of the Parent window. So i am refreshing the Parent window from the Child window. Now the information what i entered in the 1st region of the Parent window gets vanished. I want to retain that information also.
Any Suggestions....Hi Rana,
Thanks for your reply.The region which i dont want to refresh is not made up of ITEMS. It is a SQL QUERY REGION from Dual.
More over i dont want to refresh the region Partially all the time.
In the Pop up window if i pressed one button it has to refresh partially.
If i press another buttom the Entire window has to get refreshed.
Regards,
Baaju -
Performance issue for Report Regions
We have an app which has as it's "Home Page" a portal-style page. The "portlets" are separate regions. Some of these regions are HTML forms, but most are report regions, invariably with PL/SQL returning the SQL query.
On our dev box this portal renders fine, in no more than 5 seconds (acceptable). On the production box a couple of the portlets go crazy, usually taking between 1-2 minutes each. I know this because I added the #TIMING# string to each region footer. The portal page has a META tag to refresh every 120 seconds.
The first thing I did to debug was to take the PL/SQL function body returning the SQL query, replace all the variables (which are just local vars, app items and page items) with hardcoded values, strip all quotes and run the "cleaned up" SQL query in SQLPlus. It executes very fast.
So my conclusion is that the problem lies with the application server (which is Oracle iAS). Is this a logical conclusion? What should my next move be to get to the bottom of this?
Even without the problem portlets the portal refresh speed varies widely, between <1 sec and >10 sec.
The application also has other pages displaying the portal regions individually. These pages (including those with the "problem portlet" queries) render ok (ie, order of 5 seconds or less). This tells me that there is an issue with having a bunch of query-based regions on the same page.
My guess is that I might need to examine the logs and/or httpd/modplsql settings of the app server. Number of simultaneous connections?
What would happen if hundreds of users used this app concurrently, navigated to the portal page and left it like that to auto-refresh every 2 minutes? Are such pages a no-no in HTMLDB?Some more information:
When I run the page in debug mode, I see the following timings for one of the problem portlets:
11.53: show report
11.54: determine column headings
11.54: parse query
60.95: binding: ":F118_BUNDLE"="F118_BUNDLE" value="1"
60.95: binding: ":P52_STMETRICS_PRODBRANCH"="P52_STMETRICS_PRODBRANCH" value="RDBMS_MAIN"
60.95: binding: ":P52_STMETRICS_PLATFORM"="P52_STMETRICS_PLATFORM" value="LINUX"
61.35: print column headings
61.35: rows loop: 15 row(s)
[report is printed here]
61.49: FORMITEM: P52_STMETRICS_PLATFORM HIDDEN
61.54: FORMITEM: P52_STMETRICS_PRODBRANCH HIDDEN
This tells me that the bulk of the time (50 seconds in this case) is eaten up in parsing the query. What is this symptomatic of?
Another problem I've just noticed. It takes about 5 seconds to open up a region for editing (Region Definition) in HTMLDB. When I click "Apply Changes" (even without editing anything) it is taking on the order of minutes for the changes to be applied to the page. Our app server was bounced just before I noticed this.
These are the params in our DAD:
<Location /pls/toolsdb>
SetHandler pls_handler
Order deny,allow
PlsqlDatabaseConnectString ...
PlsqlDatabasePassword ...
PlsqlDatabaseUsername ...
PlsqlDefaultPage ...
PlsqlDocumentPath docs
</Location> -
Dynamically refresh to report regions
I have a page with multiple regions. Two of the regions are report regions that I want to refresh dynamically. I am using 4.0. I created a dynamic action that fires based on an item's value changing. It contains two actions, a 'Refresh' action for each region. Only one region will refresh. If I put an 'Alert' action between the two 'Refresh' actions, then both regions will be refreshed. I have tried to do this multiple ways, such as using the $a_report() function from within my page level javascript. Results are the same. I can get one region to refresh, but not two. Any ideas or suggestions on why I can not refresh multiple regions?
Thanks for your reply. I tried what you said and still no luck. I then created a new page with two simple regions, a select list, and a button to trigger the refresh. I wanted it be stripped of any other items or code and I used your javascript. It still only refreshes one region. I am requesting space on the Oracle site and will create my test there. Maybe there is a bug in the version we have installed. Our version is 4.0.0.00.46.
-
Display Dynamic HTML beside Flash Chart in Chart Region
Hello,
I have a vertical 3D flash chart with some categories I,II,IV... on x-axix. I have to show a legend beside the chart dynamically depending on the categories displayed like (I - PC, II - TV, IV-Laptop....) First I tried to do this with static data. I modified, Region Source of Chart region to include the legend. I am successful to create a table & put some static html code. Now I want this to be dynamic.
I found that with shotcuts I can put dynamic HTML code. I created shortcut with PL/SQL & successfully displayed them in a 'HTML REGION WITH SHORTCUTS', but I want that in Chart Region, not as a separate region. Shortcut is not working in Chart region.
How can I achieve this? Is there a way to call a process or substitution string or some thing from Chart Region to display my legend dynamically beside the chart.
Experts any hint is appreciated.
Sowji.Experts,
Can you please give any hint how this can be achieved? If I keep the dynamic legend as HTML with Shortcut region, the width & height are not matching with the chart region as it is dynamic. Also, I am unable to combine both 'chart' & 'html with shortcut' region to look like one region. So I am looking for options to insert the dynamic html in to chart region.
Sowji.
Maybe you are looking for
-
If I buy a iPhone 5 at the store, will it still be running iOS 6 or 7?
I want to buy the iPhone 5 (not the iPhone 5s or c) because it has iOS 6 on it instead of iOS 7 (which I do not like) and wondering if the people at the store still have the iPhones that run iOS 6 on them. Thanks!
-
Hey everyone! I am new to this. I have had my BB since January but just loaded the software last night. My husband has a BB also and I wanted to sync his. How do you do this with multiple devices and the desktop manager so that we don't lose inform
-
ArialUnicodeMS is missing error when opening PDF
Hi I have Adobe Reader v9.0 on Windows XP SP3 When I try to open PDF document I get this error: "Cannot find or create the font 'ArialUnicodeMS'. Some characters my not display or print correctly" The document then open in gibrish. Please advise. Tha
-
Oracle ESSO, Logon Manager Console couldn't connect to repository ORA-01017
I installed Logon Manager Console on my Windows XP SP3 and try to connect to repository (Oracle DB 11g) with instanse name: Provider=OraOLEDB.Oracle;Data Source=MYDB;User Id=user;Password=password; Repository type: Oracle Database And get following e
-
Hi, is there a way to display each image's filename on the slides generated by the Slideshow module in LR1.1? Thanks for any help, DLMST