Prompt to save the chages when leaving the page
Hi all,
I have the following scenario:
I have a plsql region with 15 records pro page with text fields and checkboxes.
When the user does update any field and navigate to other page (or clicks to other pagination page) without click on the button "SAVE" or "CANCEL" I would like to show him the confirm dialog "The changes was not saved. Save it?" or anything like this.
Is it possible?
Thanks
Hi,
Have a look at this thread to see if it helps you:
Re: detecting changes to items prior to submitting page
Andy
Similar Messages
-
LabVIEW prompts to save the vi when closing the reference
In our application, we - Open vi reference - finding its execution state - closing the vi reference. While closing, LV prompts to save the vi, how to avoid it. I can see option to enable LV prompt, but no option to skip it. We use 0x20 for now to avoid the loading dialog.
We appreciate your input
Thanks
Sas
Solved!
Go to Solution.I have seen this in the past with scripting VIs and I tried to resolve it but couldn't. So my solution was just to supress the dialog temporarily. Darren posted over on LAVA a VI that does this.
http://lavag.org/topic/17845-silently-close-a-scripted-vi-with-unsaved-changes/#entry107546
I believe this just calls the private method App.UnattendedMode
Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously. -
CONVERT_ABAPSPOOLJOB_2_PDF doesnt prompt to save the filename
Dear all
Here with this i m getting the spool but CONVERT_ABAPSPOOLJOB_2_PDF doesnt prompt to save the PDF file . Do i need to use GUI_DOWNLOAD along with this .
PlllllZZZZZZ...... suggest
SELECT SINGLE * FROM ZPLH WHERE VBELN = SSORD
AND POSNR = ITNO.
IF SY-SUBRC EQ 0.
DATA : v_jobcount LIKE tbtcjob-jobcount,
ZTEST LIKE TBTCJOB-JOBNAME.
*-- run in the background
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = 'ZTEST'
IMPORTING
jobcount = v_jobcount
EXCEPTIONS
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE 'E' NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
EXIT.
ENDIF.
*-- submit the program in the background
SUBMIT ZPP_REP_ENCLOSURE_PACKLIST3
WITH JOBNO = SSORD
WITH LINENO = ITNO
USER sy-uname
TO SAP-SPOOL WITHOUT SPOOL DYNPRO
DESTINATION 'LOHP'
IMMEDIATELY 'X'
KEEP IN SPOOL 'X'
VIA JOB 'ZTEST' NUMBER v_jobcount AND RETURN.
IF SY-SUBRC = 0.
* Job scheduled successfully
ENDIF.
IF SY-SUBRC = 4.
*Job scheduling terminated by user
ENDIF.
IF SY-SUBRC = 8.
*Error in job scheduling (JOB_SUBMIT)
ENDIF.
IF SY-SUBRC = 12.
*Error in internal number assignment .
ENDIF.
*-- close the job
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = v_jobcount
jobname = 'ZTEST'
strtimmed = 'X'
EXCEPTIONS
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
OTHERS = 8.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE 'W' NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
clear tbtcp.
STEP = 1.
select single listident from tbtcp
into tbtcp-listident
where jobname = 'ZTEST'
and jobcount = v_jobcount
and stepcount = step.
IF SY-SUBRC EQ 0.
move tbtcp-listident to spool_id.
ENDIF.
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
SRC_SPOOLID = SPOOL_ID
NO_DIALOG = ''
DST_DEVICE = 'LOHP' "E_DEVTYPE
PDF_DESTINATION = 'LOHP'
IMPORTING
PDF_BYTECOUNT = BTC
PDF_SPOOLID =
LIST_PAGECOUNT =
BTC_JOBNAME =
BTC_JOBCOUNT =
TABLES
PDF = T_SPOOL_2_PDF
EXCEPTIONS
ERR_NO_ABAP_SPOOLJOB = 1
ERR_NO_SPOOLJOB = 2
ERR_NO_PERMISSION = 3
ERR_CONV_NOT_POSSIBLE = 4
ERR_BAD_DESTDEVICE = 5
USER_CANCELLED = 6
ERR_SPOOLERROR = 7
ERR_TEMSEERROR = 8
ERR_BTCJOB_OPEN_FAILED = 9
ERR_BTCJOB_SUBMIT_FAILED = 10
ERR_BTCJOB_CLOSE_FAILED = 11
OTHERS = 12
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ELSE.
TEXT02 = ITNO.
MESSAGE I014(ZQOTBANK) WITH TEXT02.
ENDIF.
Thnx
MoniHi MD,
I download the result of the function like this :
call function 'CONVERT_OTFSPOOLJOB_2_PDF'
exporting
src_spoolid = v_spoolid
NO_DIALOG = 'X'
IMPORTING
PDF_BYTECOUNT = v_numbytes
TABLES
PDF = it_pdf.
call function 'DOWNLOAD'
exporting
bin_filesize = v_numbytes
filetype = 'BIN'
importing
act_filename = v_filename
tables
data_tab = it_pdf.
Regards
Frédéric -
How do I tell Adobe reader to open a file instead of being prompted to save the file?
how do I tell Adobe reader to open a file instead of being prompted to save the file?
Go to Tools - Options - Applications and enter "pdf" into the filter field. Select the action that you want to associate with PDF files.
In your case select one of the "Use Adobe Acrobat" actions. -
Display a warning when leaving a page
Hi,
I have created multiple APEX pages and would like to create a warning when leaving a page when changes are made to the page. Iam new to APEX and javascripts. We are using Oracle APEX 4.1, connecting to a 11 g database and Internet Explorer 8.0. I have seen postings from older versions of APEX and have attempted to use the logic and receive multiple screen prompts. I appreciate your assistance with this challenge.
Thanks
DonHey Don,
Have a look at the save before exit plugin.
http://skillbuilders.com/plugins
Demo
Good Luck,
Tyson -
I have a few saved documents and when I open them to view them quick, sometimes when I close it, I will get asked if I would like to save the document or all my new info will be lost. I didnt change anything so Im not sure why it asks me that. When I open the document again, all the info is there and nothing is different. Thanks
Unless they were Word documents, Pages has done nothing really, but it is updating date information in the file.
It is annoying but just ignore it and don't save.
Peter -
Windows 7, Minefield 4.0b12pre (updated 2011-02-09)
Well, with 4.0 beta there is the option of restoring a previous session on demand (thumbs up for that :P) AND what's even nicer it even saves the state of Panorama.
Just tried it and if you have tab groups defined in Panorama when you close Firefox, if you choose to restore the session when you restart the next time (either by using the Restore button on Firefox's default homepage or the option in the History menu) Panorama gets restored as well. -
Always prompted with Save As Dialog when viewing dashboard
Post Author: jgagarin
CA Forum: Performance Management and Dashboards
Hi,
We are having problem viewing dashboard which contains Xcelsius document. In our development server we were able to view all dashboards with embedded Xcelsius document but when we move it to our production server it shows different output. Everytime we try to view the dashboard it keeps on prompting a "Save As Dialog" instead of showing the Xcelcius file. I really have no idea on what to do next, please help.
Thanks,
JagPost Author: amr_foci
CA Forum: Performance Management and Dashboards
its an issue of macromedia flash player, if you already installed it on ur machine, remove it and reinstall the last version from the macromedia website thenrestart your mcahine.
good luck -
Hi all,
I have some iViews in my page. That iViews are draggable like as in iGoogle. Now what i want is if i change the position of the iView , after refreshing the iView should be in the same position(what i have changed) . The page should be save in cookies or server side like igoogle.
The URL of the iGoogle
[iGoogle|http://www.google.com/ig]
How can i achieve this using script?
Help me in this regard.
Thanks & Regards,
HemalathaHi,
When ever an Iview is dropped to a new position, you will have to reflect this position change in pcd.
An idea would be to use AJAX and call a portal service where logic is implemented to change Iview position in pcd. You can implement this in personalized context of user, so that the change is made only for current user.
PCDAPI Remove iView from Page
Regards,
Praveen Gudapati -
My Firefox bookmarks will let me save the web page but Google bookmarks won't and tells me that my browser is offline and to check my browser and network settings. I also can't download you-tube videos like I used to. When I hover on the picture, the "download" box does not show up but it does give me the option to stop download. I just changed to Shaw internet.
Did anything happen to the computer? It appears that you are trying to sync to another iTunes library since in that case you can only sync with one iTunes library.
-
Run a process when leaving a page
Hello,
Is it possible to run a process when users leave a page?
Let me explain:
On a page, I have an Automatic Row Processing (DML) and a PL/SQL process. These two process are run when users click on the "Apply change" button.
Is it possible to run these two processes ALSO when users leave the page (click on another tab) ?
I want to do this to make sure that the changes are saved, even if users forget to click the "Apply Changes" button.
Thank you in advance for your help.Have you looked into using a pl/sql dynamic action page unload event? I haven't tried before but if you set the item values in the first step of the dynamic action and then execute a pl sql routine that mimics the DML it may work. Since the action would fire after every page unload, it would also probably need some validation to ensure it does fire during normal processing.
Ricker -
EPCM error when leave Webdynpro page ???
In Portal, when navigate from page with webdynpro iViews to any other workset or page, clicking in some node of the top level navigation, opening a windows alert popup , and said: Exception in EventDistribute occurred. Throw it to upper level?
And then click accept 4 times let me continue.
After trying multiple alternatives, the issue certainly is occurring when: I am in a page with at least one webdynpro java, and I go to another. That is, to leave or close the webdynpro iView has generated the problem.
When I choose "debug" the exception with MS Dev studio, I found this error code, this is the point when the exception raise:
EPCM.eventDistribute=function( consumers, eventObject, resultArray){
var isRetValCollect=(resultArray != null);
var eListener
var retVal;
for (var idx in consumers){
eListener=consumers[idx];
retVal=null;
try{
retVal=eListener.call( eventObject );}
catch( e){
if (EPCM._private.dbgException){
if(confirm("Exception in EventDistribute occured.\nThrow it to upper level ?")) throw(e);}
if(isRetValCollect && retVal != null){
resultArray[resultArray.length++]=retVal;}
any suggestion ?????
thanks in advance!
Leandro.Add this: not only when leave a webdynpro iview or page is the problem, also when resizing a webdynpro page in the IE.
Any change in the screen size, raise this popup error
any idea???
thanks in advance -
Hi all, as Ive said in the question, anyone help me with this, have tried most of the suggestions Ive found so far.
StephenNo, Nothing happened, nothing was downloaded. When I say nothing happened I mean NOTHING HAPPENED, What can I say to make it more clear. How could I run a file that wasn't downloaded.....Nothing happened, rien, nada, b***** all. Why would I post a message saying "When I press the Save button nothing happens" if something had been downloaded.
I've found out why. It is because I am using Firefox. Presumably a case of Apple treating us users of the superior Operating system (Windows) with distain. -
Hi - I'm having issues with my code and I'm not an ActionScript coder by any means. I'm using Flash Builder 4. I've been able to figure out how to export to PNG and to XLS but PDF is really killing me.
Below is my code and it's not causing errors when I do the release build but the my button doesn't work to export to PDF. I'm trying to create a PNG using the PNGEncoder and then push that out to PDF (when the PDF button is selected). I used some sample code and I've commented out parts that I didn't want to use or didn't seem to apply to my application. Unfortunately, I have a deadline of May 3rd on this and there is no one else in the office here to help me... hope someone out there can.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" height="650" width="850">
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
import flash.events.Event;
import mx.events.DropdownEvent;
import mx.events.*;
import mx.graphics.codec.PNGEncoder;
import org.alivepdf.display.*;
import org.alivepdf.images.ColorSpace;
import org.alivepdf.fonts.*;
import org.alivepdf.layout.*;
import org.alivepdf.pdf.*;
import org.alivepdf.saving.*;
import mx.controls.Alert;
//PDF Export information
protected var pdf:PDF;
protected function savePDF(event:MouseEvent): void {
pdf = new PDF(Orientation.LANDSCAPE, Unit.MM, Size.LETTER);
pdf.setDisplayMode(Display.FULL_WIDTH);
pdf.addPage();
var bd:BitmapData = new BitmapData(cChart.width,cChart.height);
bd.draw(cChart);
var png:PNGEncoder = new PNGEncoder();
var ba:ByteArray = png.encode(bd);
//try {
pdf.addImageStream(ba, ColorSpace.DEVICE_RGB, new Resize ( Mode.FIT_TO_PAGE, Position.CENTERED ), 10, 10, 800, 800, 0, 1, "Normal", null);
//} catch (e:Error) {
// trace("Error occurred!");
// Alert.show(e,"");
//myPDF.addImageStream(new jpgBytes() as ByteArray, ColorSpace.DEVICE_RGB, null, 0, 0, 500, 500, 0, 1, "Normal", null);
//imageBytes:ByteArray, colorSpace:String, resizeMode:Resize=null, x:Number=0, y:Number=0, width:Number=0, height:Number=0, rotation:Number=0, alpha:Number=1, blendMode:String="Normal", link:ILink=null):
//pdf.setFont(FontFamily.ARIAL, Style.NORMAL, 12);
//pdf.addText("Grafico de Rata de Fallas", 100, 40); // title
//pdf.addImage(imprimirRata, 50, 50, 200, 150); // captured canvas with charts
// pdf.addImage(leyendaImprimir, 50, 120, 20,20); // captured leyend of charts
//pdf.addText("RTP Software. Modulo de Score Card.", 10, 200); // header of the document
//pdf.addText("Creado: " + new Date(), 180, 200); // Add the created date as a leyend or footer on document
var fr:FileReference = new FileReference();
fr.save(pdf.save(Method.LOCAL), "nep_piefy11.pdf");
/*var fs:FileStream = new FileStream();
var file: File = File.desktopDirectory.resolvePath("nep_piefy11.pdf"); // Name of the file
fs.open(file, FileMode.WRITE);
fs.writeBytes(pdf.save(Method.LOCAL));
fs.close();*/
//Alert.show("El reporte ha sido generado", "Informacion"); // Confirmation message as a pop-up
//Pie Chart Creation information
[Bindable]
public var ds:ArrayCollection = sel;
private function changeEvt(event:Event):void {
if(filterCombo.selectedItem == 'Select NEP') {ds = sel;}
if(filterCombo.selectedItem == 'Albemarle-Pamlico Estuary Program') {ds = nep1;}
if(filterCombo.selectedItem == 'Barataria-Terrebonne Estuary Program') {ds = nep2;}
if(filterCombo.selectedItem == 'Barnegat Bay Estuary Program') {ds = nep3;}
if(filterCombo.selectedItem == 'Buzzards Bay National Estuary Program') {ds = nep4;}
if(filterCombo.selectedItem == 'Casco Bay Estuary Partnership') {ds = nep5;}
if(filterCombo.selectedItem == 'Charlotte Harbor Estuary Program') {ds = nep6;}
if(filterCombo.selectedItem == 'Coastal Bend Bays and Estuaries Program') {ds = nep7;}
if(filterCombo.selectedItem == 'Delaware Estuary Program') {ds = nep8;}
if(filterCombo.selectedItem == 'Delaware Inland Bays Estuary Program') {ds = nep9;}
if(filterCombo.selectedItem == 'Galveston Bay Estuary Program') {ds = nep10;}
if(filterCombo.selectedItem == 'Indian River Lagoon NEP') {ds = nep11;}
if(filterCombo.selectedItem == 'Long Island Sound Study') {ds = nep12;}
if(filterCombo.selectedItem == 'Lower Columbia River Estuary') {ds = nep13;}
if(filterCombo.selectedItem == 'Maryland Coastal Bays Program') {ds = nep14;}
if(filterCombo.selectedItem == 'Massachusetts Bays NEP') {ds = nep15;}
if(filterCombo.selectedItem == 'Mobile Bay Estuary Program') {ds = nep16;}
if(filterCombo.selectedItem == 'Morro Bay Estuary Program') {ds = nep17;}
if(filterCombo.selectedItem == 'Narragansett Bay Estuary Program') {ds = nep18;}
if(filterCombo.selectedItem == 'New York-New Jersey Harbor Estuary Program') {ds = nep19;}
if(filterCombo.selectedItem == 'Peconic Estuary Program') {ds = nep20;}
if(filterCombo.selectedItem == 'Piscataqua Region Estuaries Partnership') {ds = nep21;}
if(filterCombo.selectedItem == 'Puget Sound Partnership') {ds = nep22;}
if(filterCombo.selectedItem == 'San Francisco Estuary Project') {ds = nep23;}
if(filterCombo.selectedItem == 'San Juan Bay NEP') {ds = nep24;}
if(filterCombo.selectedItem == 'Santa Monica Bay Restoration Project') {ds = nep25;}
if(filterCombo.selectedItem == 'Sarasota Bay Estuary Program') {ds = nep26;}
if(filterCombo.selectedItem == 'Tampa Bay Estuary Program') {ds = nep27;}
if(filterCombo.selectedItem == 'Tillamook Estuaries Partnership') {ds = nep28;}
[Bindable]
private var sel:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 0},
{ habtype: "Beach/Dune", Acres: 0},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 0.5},
{ habtype: "Estuarine Shoreline", Acres: 0},
{ habtype: "Instream", Acres: 0},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 0},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 0},
{ habtype: "Upland", Acres: 0},
{ habtype: "Wetland", Acres: 0} ]);
[Bindable]
private var nep1:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 778.44},
{ habtype: "Beach/Dune", Acres: 0},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 0.45},
{ habtype: "Estuarine Shoreline", Acres: 1276.30},
{ habtype: "Instream", Acres: 1.0},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 0},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 0.75},
{ habtype: "Upland", Acres: 779.74},
{ habtype: "Wetland", Acres: 3268.31} ]);
[Bindable]
private var nep2:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 0},
{ habtype: "Beach/Dune", Acres: 0},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 0},
{ habtype: "Estuarine Shoreline", Acres: 0},
{ habtype: "Instream", Acres: 0},
{ habtype: "Island", Acres: 7.25},
{ habtype: "Lake/Pond", Acres: 0},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 0},
{ habtype: "Upland", Acres: 0},
{ habtype: "Wetland", Acres: 1185} ]);
[Bindable]
private var nep3:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 0},
{ habtype: "Beach/Dune", Acres: 0},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 0},
{ habtype: "Estuarine Shoreline", Acres: 0},
{ habtype: "Instream", Acres: 0},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 0},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 35.21},
{ habtype: "Upland", Acres: 852.57},
{ habtype: "Wetland", Acres: 197.82} ]);
[Bindable]
private var nep4:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 0},
{ habtype: "Beach/Dune", Acres: 0},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 0},
{ habtype: "Estuarine Shoreline", Acres: 0},
{ habtype: "Instream", Acres: 0},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 751.82},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 0},
{ habtype: "Upland", Acres: 321.82},
{ habtype: "Wetland", Acres: 157.35} ]);
[Bindable]
private var nep5:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 217},
{ habtype: "Beach/Dune", Acres: 0},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 0},
{ habtype: "Estuarine Shoreline", Acres: 0},
{ habtype: "Instream", Acres: 0},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 0},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 0},
{ habtype: "Upland", Acres: 324.5},
{ habtype: "Wetland", Acres: 0} ]);
[Bindable]
private var nep6:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 1268},
{ habtype: "Beach/Dune", Acres: 0},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 50},
{ habtype: "Estuarine Shoreline", Acres: 0},
{ habtype: "Instream", Acres: 0},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 0},
{ habtype: "Mangrove", Acres: 61},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 0},
{ habtype: "Upland", Acres: 809},
{ habtype: "Wetland", Acres: 1690} ]);
[Bindable]
private var nep7:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 0},
{ habtype: "Beach/Dune", Acres: 0},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 0},
{ habtype: "Estuarine Shoreline", Acres: 0},
{ habtype: "Instream", Acres: 0},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 0},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 0},
{ habtype: "Upland", Acres: 0},
{ habtype: "Wetland", Acres: 726} ]);
[Bindable]
private var nep8:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 0},
{ habtype: "Beach/Dune", Acres: 0.28},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 82},
{ habtype: "Estuarine Shoreline", Acres: 0.14},
{ habtype: "Instream", Acres: 2.3},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 643},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 501.9},
{ habtype: "Upland", Acres: 148.71},
{ habtype: "Wetland", Acres: 2586.02} ]);
[Bindable]
private var nep9:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 0},
{ habtype: "Beach/Dune", Acres: 0},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 26.21},
{ habtype: "Estuarine Shoreline", Acres: 0},
{ habtype: "Instream", Acres: 0},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 37},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 0},
{ habtype: "Upland", Acres: 27},
{ habtype: "Wetland", Acres: 646} ]);
[Bindable]
private var nep10:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 0},
{ habtype: "Beach/Dune", Acres: 0},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 0},
{ habtype: "Estuarine Shoreline", Acres: 0},
{ habtype: "Instream", Acres: 0},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 0},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 2868},
{ habtype: "Riparian", Acres: 0},
{ habtype: "Upland", Acres: 0},
{ habtype: "Wetland", Acres: 407.06} ]);
[Bindable]
private var nep11:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 0},
{ habtype: "Beach/Dune", Acres: 5},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 3},
{ habtype: "Estuarine Shoreline", Acres: 0},
{ habtype: "Instream", Acres: 0},
{ habtype: "Island", Acres: 43},
{ habtype: "Lake/Pond", Acres: 0},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 0},
{ habtype: "Upland", Acres: 12910.5},
{ habtype: "Wetland", Acres: 5026} ]);
[Bindable]
private var nep12:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 67},
{ habtype: "Beach/Dune", Acres: 21.95},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 0},
{ habtype: "Estuarine Shoreline", Acres: 0},
{ habtype: "Instream", Acres: 0},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 0},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 0},
{ habtype: "Upland", Acres: 120.72},
{ habtype: "Wetland", Acres: 151.08} ]);
[Bindable]
private var nep13:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 0},
{ habtype: "Beach/Dune", Acres: 0},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 0},
{ habtype: "Estuarine Shoreline", Acres: 0},
{ habtype: "Instream", Acres: 12},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 0},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 194},
{ habtype: "Upland", Acres: 0},
{ habtype: "Wetland", Acres: 200} ]);
[Bindable]
private var nep14:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 0},
{ habtype: "Beach/Dune", Acres: 58},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 153},
{ habtype: "Estuarine Shoreline", Acres: 0},
{ habtype: "Instream", Acres: 0},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 0},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 0},
{ habtype: "Upland", Acres: 494.3},
{ habtype: "Wetland", Acres: 0} ]);
[Bindable]
private var nep15:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 0},
{ habtype: "Beach/Dune", Acres: 0},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 1313},
{ habtype: "Estuarine Shoreline", Acres: 8},
{ habtype: "Instream", Acres: 0},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 0},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 0},
{ habtype: "Upland", Acres: 0},
{ habtype: "Wetland", Acres: 543.8} ]);
[Bindable]
private var nep16:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 0},
{ habtype: "Beach/Dune", Acres: 0},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 40},
{ habtype: "Estuarine Shoreline", Acres: 6.5},
{ habtype: "Instream", Acres: 0},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 0},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 0},
{ habtype: "Upland", Acres: 195},
{ habtype: "Wetland", Acres: 85} ]);
[Bindable]
private var nep17:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 0},
{ habtype: "Beach/Dune", Acres: 1109.9},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 1.14},
{ habtype: "Estuarine Shoreline", Acres: 0.28},
{ habtype: "Instream", Acres: 0},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 0},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 0},
{ habtype: "Upland", Acres: 0.71},
{ habtype: "Wetland", Acres: 0} ]);
[Bindable]
private var nep18:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 0},
{ habtype: "Beach/Dune", Acres: 0},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 0},
{ habtype: "Estuarine Shoreline", Acres: 0},
{ habtype: "Instream", Acres: 1099},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 0},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 0},
{ habtype: "Upland", Acres: 0},
{ habtype: "Wetland", Acres: 0} ]);
[Bindable]
private var nep19:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 0},
{ habtype: "Beach/Dune", Acres: 0},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 0},
{ habtype: "Estuarine Shoreline", Acres: 0},
{ habtype: "Instream", Acres: 0},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 0},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 0},
{ habtype: "Upland", Acres: 0},
{ habtype: "Wetland", Acres: 101.3} ]);
[Bindable]
private var nep20:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 98.72},
{ habtype: "Beach/Dune", Acres: 0},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 17.99},
{ habtype: "Estuarine Shoreline", Acres: 0},
{ habtype: "Instream", Acres: 0},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 0},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 0},
{ habtype: "Upland", Acres: 106.13},
{ habtype: "Wetland", Acres: 12.97} ]);
[Bindable]
private var nep21:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 9},
{ habtype: "Beach/Dune", Acres: 0},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 3},
{ habtype: "Estuarine Shoreline", Acres: 0},
{ habtype: "Instream", Acres: 0},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 0},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 2},
{ habtype: "Upland", Acres: 1451},
{ habtype: "Wetland", Acres: 27} ]);
[Bindable]
private var nep22:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 26},
{ habtype: "Beach/Dune", Acres: 1.65},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 240.39},
{ habtype: "Estuarine Shoreline", Acres: 314.97},
{ habtype: "Instream", Acres: 505.87},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 0},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 1450.47},
{ habtype: "Upland", Acres: 1176.7},
{ habtype: "Wetland", Acres: 850.58} ]);
[Bindable]
private var nep23:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 0},
{ habtype: "Beach/Dune", Acres: 0},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 0},
{ habtype: "Estuarine Shoreline", Acres: 0},
{ habtype: "Instream", Acres: 0},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 0},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 43.05},
{ habtype: "Upland", Acres: 4519},
{ habtype: "Wetland", Acres: 3271} ]);
[Bindable]
private var nep24:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 0},
{ habtype: "Beach/Dune", Acres: 1},
{ habtype: "Coral Reef", Acres: 0.13},
{ habtype: "Estuarine", Acres: 0},
{ habtype: "Estuarine Shoreline", Acres: 0},
{ habtype: "Instream", Acres: 0},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 0},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 1},
{ habtype: "Upland", Acres: 0},
{ habtype: "Wetland", Acres: 10} ]);
[Bindable]
private var nep25:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 0},
{ habtype: "Beach/Dune", Acres: 0},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 1.6},
{ habtype: "Estuarine Shoreline", Acres: 0},
{ habtype: "Instream", Acres: 0},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 0},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 7},
{ habtype: "Riparian", Acres: 100},
{ habtype: "Upland", Acres: 6.2},
{ habtype: "Wetland", Acres: 0} ]);
[Bindable]
private var nep26:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 0},
{ habtype: "Beach/Dune", Acres: 5.5},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 4.5},
{ habtype: "Estuarine Shoreline", Acres: 15},
{ habtype: "Instream", Acres: 0},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 0},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 0},
{ habtype: "Upland", Acres: 82},
{ habtype: "Wetland", Acres: 40} ]);
[Bindable]
private var nep27:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 0},
{ habtype: "Beach/Dune", Acres: 5.1},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 23},
{ habtype: "Estuarine Shoreline", Acres: 0},
{ habtype: "Instream", Acres: 0},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 4.8},
{ habtype: "Mangrove", Acres: 3.5},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 0},
{ habtype: "Upland", Acres: 1221},
{ habtype: "Wetland", Acres: 17.4}]);
[Bindable]
private var nep28:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 67},
{ habtype: "Beach/Dune", Acres: 0},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 2},
{ habtype: "Estuarine Shoreline", Acres: 0},
{ habtype: "Instream", Acres: 0},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 0},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 31.33},
{ habtype: "Upland", Acres: 0},
{ habtype: "Wetland", Acres: 74.24}]);
private function displayAcres(data:Object, field:String, index:Number, percentValue:Number):String {
var temp:String= (" " + percentValue).substr(0,6);
return data.habtype + ": " + '\n ' + data.Acres + " Acres" + '\n ' + temp + "%";
//Export to PNG information
private function saveImageAs(event:MouseEvent):void
var bd:BitmapData = new BitmapData(cChart.width,cChart.height);
bd.draw(cChart);
var png:PNGEncoder = new PNGEncoder();
var ba:ByteArray = png.encode(bd);
var fr:FileReference = new FileReference();
fr.save(ba, "nepfy11-piechart.png");
]]>
</mx:Script>
<!--mx:SeriesInterpolate id="chartChange" duration="2000" /-->
<mx:Panel id="cChart" title="2011 Habitat Efforts" width="825" height="600" chromeColor="#527EAC" layout="vertical" color="#FFFFFF" verticalGap="10" x="15" y="15">
<mx:HBox width="400" height="20">
<mx:ComboBox id="filterCombo" x="140" y="140" change="changeEvt(event)" color="#000000" >
<mx:String>Select NEP</mx:String>
<mx:String>Albemarle-Pamlico Estuary Program</mx:String>
<mx:String>Barataria-Terrebonne Estuary Program</mx:String>
<mx:String>Barnegat Bay Estuary Program</mx:String>
<mx:String>Buzzards Bay National Estuary Program</mx:String>
<mx:String>Casco Bay Estuary Partnership</mx:String>
<mx:String>Charlotte Harbor Estuary Program</mx:String>
<mx:String>Coastal Bend Bays and Estuaries Program</mx:String>
<mx:String>Delaware Estuary Program</mx:String>
<mx:String>Delaware Inland Bays Estuary Program</mx:String>
<mx:String>Galveston Bay Estuary Program</mx:String>
<mx:String>Indian River Lagoon NEP</mx:String>
<mx:String>Long Island Sound Study</mx:String>
<mx:String>Lower Columbia River Estuary</mx:String>
<mx:String>Maryland Coastal Bays Program</mx:String>
<mx:String>Massachusetts Bays NEP</mx:String>
<mx:String>Mobile Bay Estuary Program</mx:String>
<mx:String>Morro Bay Estuary Program</mx:String>
<mx:String>Narragansett Bay Estuary Program</mx:String>
<mx:String>New York-New Jersey Harbor Estuary Program</mx:String>
<mx:String>Peconic Estuary Program</mx:String>
<mx:String>Piscataqua Region Estuaries Partnership</mx:String>
<mx:String>Puget Sound Partnership</mx:String>
<mx:String>San Francisco Estuary Project</mx:String>
<mx:String>San Juan Bay NEP</mx:String>
<mx:String>Santa Monica Bay Restoration Project</mx:String>
<mx:String>Sarasota Bay Estuary Program</mx:String>
<mx:String>Tampa Bay Estuary Program</mx:String>
<mx:String>Tillamook Estuaries Partnership</mx:String>
</mx:ComboBox>
</mx:HBox>
<mx:HBox horizontalGap="20" width="822" height="535">
<mx:PieChart id="chart" showDataTips="true" dataProvider="{ds}" width="634" height="534" paddingTop="10" fontSize="9" fontFamily="Arial" color="#000000" textAlign="left">
<mx:series>
<mx:PieSeries id="seriesId" explodeRadius="0.06" nameField="habtype" labelPosition="callout" color="#000000" insideLabelSizeLimit="8" field="Acres" labelFunction="displayAcres">
</mx:PieSeries>
</mx:series>
</mx:PieChart>
<mx:Legend dataProvider="{chart}" dropShadowVisible="true" width="150" color="#000000" height="350" chromeColor="#527EAC" borderColor="#527EAC" direction="vertical"/>
</mx:HBox>
</mx:Panel>
<mx:Button x="734" y="623" label="Export Pie Chart" id="btnSnap" click="saveImageAs(event)"/>
<mx:Button x="444" y="623" label="PDF" click="savePDF(event)" />
</mx:Application>
Thank you in advance,
AlisonI figured it out!!!!! In case anyone else needs to know - here is the working code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" height="650" width="850">
<mx:Script>
<![CDATA[
import flash.events.Event;
import mx.collections.ArrayCollection;
import mx.controls.Alert;
import mx.events.*;
import mx.events.DropdownEvent;
import mx.graphics.codec.PNGEncoder;
import org.alivepdf.display.*;
import org.alivepdf.fonts.*;
import org.alivepdf.images.ColorSpace;
import org.alivepdf.images.PDFImage;
import org.alivepdf.layout.*;
import org.alivepdf.pdf.*;
import org.alivepdf.saving.*;
//PDF Export information
private var pdf:PDF;
private function savePDF(event:MouseEvent): void {
pdf = new PDF(Orientation.LANDSCAPE, Unit.MM, Size.LETTER);
pdf.setDisplayMode(Display.FULL_WIDTH);
pdf.addPage();
var bd:BitmapData = new BitmapData(cChart.width,cChart.height);
bd.draw(cChart);
var bm:Bitmap=new Bitmap(bd);
//bm.x=825;
//bm.y=600;
//bm.width=825;
pdf.setMargins(0, 2, 0, 0);
pdf.addImage(bm, new Resize (Mode.RESIZE_PAGE, Position.CENTERED));
//pdf.setXY(10,95);
var bytes:ByteArray=pdf.save(Method.LOCAL);
var fr:FileReference=new FileReference();
fr.save(bytes,"nep_piefy11.pdf");
//Pie Chart Creation information
[Bindable]
public var ds:ArrayCollection = sel;
private function changeEvt(event:Event):void {
if(filterCombo.selectedItem == 'Select NEP') {ds = sel;}
if(filterCombo.selectedItem == 'Albemarle-Pamlico Estuary Program') {ds = nep1;}
if(filterCombo.selectedItem == 'Barataria-Terrebonne Estuary Program') {ds = nep2;}
if(filterCombo.selectedItem == 'Barnegat Bay Estuary Program') {ds = nep3;}
if(filterCombo.selectedItem == 'Buzzards Bay National Estuary Program') {ds = nep4;}
if(filterCombo.selectedItem == 'Casco Bay Estuary Partnership') {ds = nep5;}
if(filterCombo.selectedItem == 'Charlotte Harbor Estuary Program') {ds = nep6;}
if(filterCombo.selectedItem == 'Coastal Bend Bays and Estuaries Program') {ds = nep7;}
if(filterCombo.selectedItem == 'Delaware Estuary Program') {ds = nep8;}
if(filterCombo.selectedItem == 'Delaware Inland Bays Estuary Program') {ds = nep9;}
if(filterCombo.selectedItem == 'Galveston Bay Estuary Program') {ds = nep10;}
if(filterCombo.selectedItem == 'Indian River Lagoon NEP') {ds = nep11;}
if(filterCombo.selectedItem == 'Long Island Sound Study') {ds = nep12;}
if(filterCombo.selectedItem == 'Lower Columbia River Estuary') {ds = nep13;}
if(filterCombo.selectedItem == 'Maryland Coastal Bays Program') {ds = nep14;}
if(filterCombo.selectedItem == 'Massachusetts Bays NEP') {ds = nep15;}
if(filterCombo.selectedItem == 'Mobile Bay Estuary Program') {ds = nep16;}
if(filterCombo.selectedItem == 'Morro Bay Estuary Program') {ds = nep17;}
if(filterCombo.selectedItem == 'Narragansett Bay Estuary Program') {ds = nep18;}
if(filterCombo.selectedItem == 'New York-New Jersey Harbor Estuary Program') {ds = nep19;}
if(filterCombo.selectedItem == 'Peconic Estuary Program') {ds = nep20;}
if(filterCombo.selectedItem == 'Piscataqua Region Estuaries Partnership') {ds = nep21;}
if(filterCombo.selectedItem == 'Puget Sound Partnership') {ds = nep22;}
if(filterCombo.selectedItem == 'San Francisco Estuary Project') {ds = nep23;}
if(filterCombo.selectedItem == 'San Juan Bay NEP') {ds = nep24;}
if(filterCombo.selectedItem == 'Santa Monica Bay Restoration Project') {ds = nep25;}
if(filterCombo.selectedItem == 'Sarasota Bay Estuary Program') {ds = nep26;}
if(filterCombo.selectedItem == 'Tampa Bay Estuary Program') {ds = nep27;}
if(filterCombo.selectedItem == 'Tillamook Estuaries Partnership') {ds = nep28;}
[Bindable]
private var sel:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 0},
{ habtype: "Beach/Dune", Acres: 0},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 0.5},
{ habtype: "Estuarine Shoreline", Acres: 0},
{ habtype: "Instream", Acres: 0},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 0},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 0},
{ habtype: "Upland", Acres: 0},
{ habtype: "Wetland", Acres: 0} ]);
[Bindable]
private var nep1:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 778.44},
{ habtype: "Beach/Dune", Acres: 0},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 0.45},
{ habtype: "Estuarine Shoreline", Acres: 1276.30},
{ habtype: "Instream", Acres: 1.0},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 0},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 0.75},
{ habtype: "Upland", Acres: 779.74},
{ habtype: "Wetland", Acres: 3268.31} ]);
[Bindable]
private var nep2:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 0},
{ habtype: "Beach/Dune", Acres: 0},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 0},
{ habtype: "Estuarine Shoreline", Acres: 0},
{ habtype: "Instream", Acres: 0},
{ habtype: "Island", Acres: 7.25},
{ habtype: "Lake/Pond", Acres: 0},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 0},
{ habtype: "Upland", Acres: 0},
{ habtype: "Wetland", Acres: 1185} ]);
[Bindable]
private var nep3:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 0},
{ habtype: "Beach/Dune", Acres: 0},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 0},
{ habtype: "Estuarine Shoreline", Acres: 0},
{ habtype: "Instream", Acres: 0},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 0},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 35.21},
{ habtype: "Upland", Acres: 852.57},
{ habtype: "Wetland", Acres: 197.82} ]);
[Bindable]
private var nep4:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 0},
{ habtype: "Beach/Dune", Acres: 0},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 0},
{ habtype: "Estuarine Shoreline", Acres: 0},
{ habtype: "Instream", Acres: 0},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 751.82},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 0},
{ habtype: "Upland", Acres: 321.82},
{ habtype: "Wetland", Acres: 157.35} ]);
[Bindable]
private var nep5:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 217},
{ habtype: "Beach/Dune", Acres: 0},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 0},
{ habtype: "Estuarine Shoreline", Acres: 0},
{ habtype: "Instream", Acres: 0},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 0},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 0},
{ habtype: "Upland", Acres: 324.5},
{ habtype: "Wetland", Acres: 0} ]);
[Bindable]
private var nep6:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 1268},
{ habtype: "Beach/Dune", Acres: 0},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 50},
{ habtype: "Estuarine Shoreline", Acres: 0},
{ habtype: "Instream", Acres: 0},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 0},
{ habtype: "Mangrove", Acres: 61},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 0},
{ habtype: "Upland", Acres: 809},
{ habtype: "Wetland", Acres: 1690} ]);
[Bindable]
private var nep7:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 0},
{ habtype: "Beach/Dune", Acres: 0},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 0},
{ habtype: "Estuarine Shoreline", Acres: 0},
{ habtype: "Instream", Acres: 0},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 0},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 0},
{ habtype: "Upland", Acres: 0},
{ habtype: "Wetland", Acres: 726} ]);
[Bindable]
private var nep8:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 0},
{ habtype: "Beach/Dune", Acres: 0.28},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 82},
{ habtype: "Estuarine Shoreline", Acres: 0.14},
{ habtype: "Instream", Acres: 2.3},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 643},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 501.9},
{ habtype: "Upland", Acres: 148.71},
{ habtype: "Wetland", Acres: 2586.02} ]);
[Bindable]
private var nep9:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 0},
{ habtype: "Beach/Dune", Acres: 0},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 26.21},
{ habtype: "Estuarine Shoreline", Acres: 0},
{ habtype: "Instream", Acres: 0},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 37},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 0},
{ habtype: "Upland", Acres: 27},
{ habtype: "Wetland", Acres: 646} ]);
[Bindable]
private var nep10:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 0},
{ habtype: "Beach/Dune", Acres: 0},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 0},
{ habtype: "Estuarine Shoreline", Acres: 0},
{ habtype: "Instream", Acres: 0},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 0},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 2868},
{ habtype: "Riparian", Acres: 0},
{ habtype: "Upland", Acres: 0},
{ habtype: "Wetland", Acres: 407.06} ]);
[Bindable]
private var nep11:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 0},
{ habtype: "Beach/Dune", Acres: 5},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 3},
{ habtype: "Estuarine Shoreline", Acres: 0},
{ habtype: "Instream", Acres: 0},
{ habtype: "Island", Acres: 43},
{ habtype: "Lake/Pond", Acres: 0},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 0},
{ habtype: "Upland", Acres: 12910.5},
{ habtype: "Wetland", Acres: 5026} ]);
[Bindable]
private var nep12:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 67},
{ habtype: "Beach/Dune", Acres: 21.95},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 0},
{ habtype: "Estuarine Shoreline", Acres: 0},
{ habtype: "Instream", Acres: 0},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 0},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 0},
{ habtype: "Upland", Acres: 120.72},
{ habtype: "Wetland", Acres: 151.08} ]);
[Bindable]
private var nep13:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 0},
{ habtype: "Beach/Dune", Acres: 0},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 0},
{ habtype: "Estuarine Shoreline", Acres: 0},
{ habtype: "Instream", Acres: 12},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 0},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 194},
{ habtype: "Upland", Acres: 0},
{ habtype: "Wetland", Acres: 200} ]);
[Bindable]
private var nep14:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 0},
{ habtype: "Beach/Dune", Acres: 58},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 153},
{ habtype: "Estuarine Shoreline", Acres: 0},
{ habtype: "Instream", Acres: 0},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 0},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 0},
{ habtype: "Upland", Acres: 494.3},
{ habtype: "Wetland", Acres: 0} ]);
[Bindable]
private var nep15:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 0},
{ habtype: "Beach/Dune", Acres: 0},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 1313},
{ habtype: "Estuarine Shoreline", Acres: 8},
{ habtype: "Instream", Acres: 0},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 0},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 0},
{ habtype: "Upland", Acres: 0},
{ habtype: "Wetland", Acres: 543.8} ]);
[Bindable]
private var nep16:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 0},
{ habtype: "Beach/Dune", Acres: 0},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 40},
{ habtype: "Estuarine Shoreline", Acres: 6.5},
{ habtype: "Instream", Acres: 0},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 0},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 0},
{ habtype: "Upland", Acres: 195},
{ habtype: "Wetland", Acres: 85} ]);
[Bindable]
private var nep17:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 0},
{ habtype: "Beach/Dune", Acres: 1109.9},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 1.14},
{ habtype: "Estuarine Shoreline", Acres: 0.28},
{ habtype: "Instream", Acres: 0},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 0},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 0},
{ habtype: "Upland", Acres: 0.71},
{ habtype: "Wetland", Acres: 0} ]);
[Bindable]
private var nep18:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 0},
{ habtype: "Beach/Dune", Acres: 0},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 0},
{ habtype: "Estuarine Shoreline", Acres: 0},
{ habtype: "Instream", Acres: 1099},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 0},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 0},
{ habtype: "Upland", Acres: 0},
{ habtype: "Wetland", Acres: 0} ]);
[Bindable]
private var nep19:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 0},
{ habtype: "Beach/Dune", Acres: 0},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 0},
{ habtype: "Estuarine Shoreline", Acres: 0},
{ habtype: "Instream", Acres: 0},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 0},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 0},
{ habtype: "Upland", Acres: 0},
{ habtype: "Wetland", Acres: 101.3} ]);
[Bindable]
private var nep20:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 98.72},
{ habtype: "Beach/Dune", Acres: 0},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 17.99},
{ habtype: "Estuarine Shoreline", Acres: 0},
{ habtype: "Instream", Acres: 0},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 0},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 0},
{ habtype: "Upland", Acres: 106.13},
{ habtype: "Wetland", Acres: 12.97} ]);
[Bindable]
private var nep21:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 9},
{ habtype: "Beach/Dune", Acres: 0},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 3},
{ habtype: "Estuarine Shoreline", Acres: 0},
{ habtype: "Instream", Acres: 0},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 0},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 2},
{ habtype: "Upland", Acres: 1451},
{ habtype: "Wetland", Acres: 27} ]);
[Bindable]
private var nep22:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 26},
{ habtype: "Beach/Dune", Acres: 1.65},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 240.39},
{ habtype: "Estuarine Shoreline", Acres: 314.97},
{ habtype: "Instream", Acres: 505.87},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 0},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 1450.47},
{ habtype: "Upland", Acres: 1176.7},
{ habtype: "Wetland", Acres: 850.58} ]);
[Bindable]
private var nep23:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 0},
{ habtype: "Beach/Dune", Acres: 0},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 0},
{ habtype: "Estuarine Shoreline", Acres: 0},
{ habtype: "Instream", Acres: 0},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 0},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 43.05},
{ habtype: "Upland", Acres: 4519},
{ habtype: "Wetland", Acres: 3271} ]);
[Bindable]
private var nep24:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 0},
{ habtype: "Beach/Dune", Acres: 1},
{ habtype: "Coral Reef", Acres: 0.13},
{ habtype: "Estuarine", Acres: 0},
{ habtype: "Estuarine Shoreline", Acres: 0},
{ habtype: "Instream", Acres: 0},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 0},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 1},
{ habtype: "Upland", Acres: 0},
{ habtype: "Wetland", Acres: 10} ]);
[Bindable]
private var nep25:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 0},
{ habtype: "Beach/Dune", Acres: 0},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 1.6},
{ habtype: "Estuarine Shoreline", Acres: 0},
{ habtype: "Instream", Acres: 0},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 0},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 7},
{ habtype: "Riparian", Acres: 100},
{ habtype: "Upland", Acres: 6.2},
{ habtype: "Wetland", Acres: 0} ]);
[Bindable]
private var nep26:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 0},
{ habtype: "Beach/Dune", Acres: 5.5},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 4.5},
{ habtype: "Estuarine Shoreline", Acres: 15},
{ habtype: "Instream", Acres: 0},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 0},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 0},
{ habtype: "Upland", Acres: 82},
{ habtype: "Wetland", Acres: 40} ]);
[Bindable]
private var nep27:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 0},
{ habtype: "Beach/Dune", Acres: 5.1},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 23},
{ habtype: "Estuarine Shoreline", Acres: 0},
{ habtype: "Instream", Acres: 0},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 4.8},
{ habtype: "Mangrove", Acres: 3.5},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 0},
{ habtype: "Upland", Acres: 1221},
{ habtype: "Wetland", Acres: 17.4}]);
[Bindable]
private var nep28:ArrayCollection = new ArrayCollection( [
{ habtype: "Agriculture/Ranch Land", Acres: 67},
{ habtype: "Beach/Dune", Acres: 0},
{ habtype: "Coral Reef", Acres: 0},
{ habtype: "Estuarine", Acres: 2},
{ habtype: "Estuarine Shoreline", Acres: 0},
{ habtype: "Instream", Acres: 0},
{ habtype: "Island", Acres: 0},
{ habtype: "Lake/Pond", Acres: 0},
{ habtype: "Mangrove", Acres: 0},
{ habtype: "Other", Acres: 0},
{ habtype: "Riparian", Acres: 31.33},
{ habtype: "Upland", Acres: 0},
{ habtype: "Wetland", Acres: 74.24}]);
private function displayAcres(data:Object, field:String, index:Number, percentValue:Number):String {
var temp:String= (" " + percentValue).substr(0,6);
return data.habtype + ": " + '\n ' + data.Acres + " Acres" + '\n ' + temp + "%";
//Export to PNG information
private function saveImageAs(event:MouseEvent):void
var bd:BitmapData = new BitmapData(cChart.width,cChart.height);
bd.draw(cChart);
var png:PNGEncoder = new PNGEncoder();
var ba:ByteArray = png.encode(bd);
var fr:FileReference = new FileReference();
fr.save(ba, "nepfy11-piechart.png");
]]>
</mx:Script>
<!--mx:SeriesInterpolate id="chartChange" duration="2000" /-->
<mx:Panel id="cChart" title="2011 Habitat Efforts" width="825" height="600" chromeColor="#527EAC" layout="vertical" color="#FFFFFF" verticalGap="10" x="15" y="15">
<mx:HBox width="400" height="20">
<mx:ComboBox id="filterCombo" x="140" y="140" change="changeEvt(event)" color="#000000" >
<mx:String>Select NEP</mx:String>
<mx:String>Albemarle-Pamlico Estuary Program</mx:String>
<mx:String>Barataria-Terrebonne Estuary Program</mx:String>
<mx:String>Barnegat Bay Estuary Program</mx:String>
<mx:String>Buzzards Bay National Estuary Program</mx:String>
<mx:String>Casco Bay Estuary Partnership</mx:String>
<mx:String>Charlotte Harbor Estuary Program</mx:String>
<mx:String>Coastal Bend Bays and Estuaries Program</mx:String>
<mx:String>Delaware Estuary Program</mx:String>
<mx:String>Delaware Inland Bays Estuary Program</mx:String>
<mx:String>Galveston Bay Estuary Program</mx:String>
<mx:String>Indian River Lagoon NEP</mx:String>
<mx:String>Long Island Sound Study</mx:String>
<mx:String>Lower Columbia River Estuary</mx:String>
<mx:String>Maryland Coastal Bays Program</mx:String>
<mx:String>Massachusetts Bays NEP</mx:String>
<mx:String>Mobile Bay Estuary Program</mx:String>
<mx:String>Morro Bay Estuary Program</mx:String>
<mx:String>Narragansett Bay Estuary Program</mx:String>
<mx:String>New York-New Jersey Harbor Estuary Program</mx:String>
<mx:String>Peconic Estuary Program</mx:String>
<mx:String>Piscataqua Region Estuaries Partnership</mx:String>
<mx:String>Puget Sound Partnership</mx:String>
<mx:String>San Francisco Estuary Project</mx:String>
<mx:String>San Juan Bay NEP</mx:String>
<mx:String>Santa Monica Bay Restoration Project</mx:String>
<mx:String>Sarasota Bay Estuary Program</mx:String>
<mx:String>Tampa Bay Estuary Program</mx:String>
<mx:String>Tillamook Estuaries Partnership</mx:String>
</mx:ComboBox>
</mx:HBox>
<mx:HBox horizontalGap="20" width="822" height="535">
<mx:PieChart id="chart" showDataTips="true" dataProvider="{ds}" width="634" height="534" paddingTop="10" fontSize="9" fontFamily="Arial" color="#000000" textAlign="left">
<mx:series>
<mx:PieSeries id="seriesId" explodeRadius="0.06" nameField="habtype" labelPosition="callout" color="#000000" insideLabelSizeLimit="8" field="Acres" labelFunction="displayAcres">
</mx:PieSeries>
</mx:series>
</mx:PieChart>
<mx:Legend dataProvider="{chart}" dropShadowVisible="true" width="150" color="#000000" height="350" chromeColor="#527EAC" borderColor="#527EAC" direction="vertical"/>
</mx:HBox>
</mx:Panel>
<mx:Button x="746" y="623" label="Export to PNG" id="btnSnap" click="saveImageAs(event)"/>
<mx:Button x="651" y="623" label="Export to PDF" click="savePDF(event)" />
</mx:Application>
Thanks, Alison -
I cannot use evernote on FireFox 4 due to when I try to save the page
I cannot use evernote on FireFox 4 due to when I try to save a page the Evernote login tab shows asking for my name and password. Unfortunately it will not take higher case letters which then will not let me log in using firefox. I can use Evernote on its own using my mac application.
Flash player forum here -- Flash Player
When you post, please be sure to include the full details of the message including any exact file name and error message. (A screen shot may help you - use the CAMERA icon).
Maybe you are looking for
-
Interfaces - (FI/CO) - GL Account Balances Extract To Legacy
Hi , I Need to extract data from coss and cosp tables based on selection criteria given in Functional design.Company code and Fiscal Year and Fiscal Period is the selection screen input. From cosp and coss tables LEDNR,objnr,wrttp,versn,kstar,beknz,
-
Performance problem of query in 9i DB
We upgraded our database from 8i to 9i recently. We have a set of same synonyms in both 8i and 9i Database. These synonyms created on Data warehouse tables. We have some queries to return data by joining several of those synonyms. We have the same nu
-
Purchase Info Record - Creation
Hi, I want to create a Purchase Info Record. I came to know that, the following FM's are used for creating a Purchase Info Record. ME_INITIALIZE_INFORECORD ME_DIRECT_INPUT_INFORECORD ME_POST_INFORECORD The following are my questions.... Is there any
-
I lost the top of the page where the "tools" icon would be, how do I get it back?
The top of the page is missing where you would have "file" bookmarks" "tools" so I don't know how to reset my page back to the default settings. == This happened == Just once or twice == today
-
SQL QUERY : Need More suggestions
Hai guys Main Table : order (id,name) child table: sub_order(oid,ticket,sec) order id is joined with ticket of suborder. select id, name, oid, ticket, sec from order,sub_order where id=ticket I want i more columns in my query that is if particular or