Select to view content in your preferred language

excel widget problem

5756
24
07-30-2012 11:28 AM
anjelinaponker
Emerging Contributor
Hi
I,m using Add Excel widget in flex 3, but I have this Error:


1046: Type was not found or was not a compile-time constant: PopUpRenderer.


This is related code for this Error:  private var popUpRenderer:PopUpRenderer = new PopUpRenderer();


What should I do for solving this problem?

Best regards
A.ponker
Tags (2)
0 Kudos
24 Replies
AnthonyGiles
Honored Contributor
Anjelina,

It looks like the popuprender class has moved package in API 3.0 to com.esri.ags.portal:

http://resources.arcgis.com/en/help/flex-api/apiref/index.html

I have not had chance to try it but change the class on the import statement from

import com.esri.ags.webmap.PopUpRenderer;

to

import com.esri.ags.portal.PopUpRenderer;

Regards

Anthony
0 Kudos
RhettZufelt
MVP Notable Contributor
Thank you.

Was so close, but could not get it to work.

Made this change AND made sure my as3xls src stuff was in the com folder and all is working and happy.

R_
0 Kudos
anjelinaponker
Emerging Contributor
Thank you.

Was so close, but could not get it to work.

Made this change AND made sure my as3xls src stuff was in the com folder and all is working and happy.

R_



I have not as3xls.
What is this?
0 Kudos
RhettZufelt
MVP Notable Contributor
It is the Excel actionscript library required for the AddExcel to work (at least for the uncompiled version).

I followed the link here: http://www.arcgis.com/home/item.html?id=173870a7926c4ef9b2a5121be0b46211 to get mine.

R_
0 Kudos
AnthonyGiles
Honored Contributor
All,

Sorry I did not realise that I had not included the AS3XLS folder in the download. I have updated the code to include the files here:

http://www.arcgis.com/home/item.html?id=b8d2f6a9063e44669eddfdd2d32244e8

Regards

Anthony
0 Kudos
KennethLyons
Emerging Contributor
I'm attempting to include this code into my FlexViewer 3.0 and the issue I'm running into errors with the ExcelFile.as and the Sheet.as.   Flashbuilder gives me the "red x" on both files, but does not tell me where the error is located as it does with .mxml's.  I also have not changed any of the code from the version I downloaded.  Can anyone assist me with this problem?
0 Kudos
RhettZufelt
MVP Notable Contributor
Did you remember tocopy the as3xls folder into the com folder of your project?

Did you add the dpUInt_b_v09_2_Flex_3.swc into your libs folder, OR include it in your build path library list?

That is what gave me the red x's when I first incorporated it into version 3.

Hope this helps,

R_
0 Kudos
KennethLyons
Emerging Contributor
R_,
Yeah I copied all the files you recommended before I attempted to run it.  The as3xls is in the COM folder, I did have to change the directory for the .as files I mentioned in the AddExcel.mxml so that they were properly referenced. But I still get the "red x" on only those 2 files.
0 Kudos
RhettZufelt
MVP Notable Contributor
I just downloaded the version from here:
http://www.arcgis.com/home/item.html...ddfdd2d32244e8

and incorporated into a "new" FV 3.0 final app (using SDK 4.6) and all directories, etc. seem to be correct.  However, it appears as if there are still some old import statements in the mxml that need to be updated.
If you are running uncompiled version, all I did was make this change, and it is working with no issues:

   import com.esri.ags.webmap.PopUpRenderer;
   import com.esri.ags.webmap.supportClasses.PopUpInfo;
   import com.esri.ags.webmap.supportClasses.PopUpMediaInfo;


and change them to:

   import com.esri.ags.portal.PopUpRenderer;
   import com.esri.ags.portal.supportClasses.PopUpInfo;
   import com.esri.ags.portal.supportClasses.PopUpMediaInfo;
0 Kudos