Select to view content in your preferred language

Application to flex viewer Widget?

1006
7
01-20-2011 12:10 PM
by Anonymous User
Not applicable
Original User: alnesbit

Hello all,

So with the awesome help of Robert (thank you again!) I now have a fully functional flex application. Problem: the clients want a widget with this functionality instead of a separate app. They really liked the flex viewer I showed them and they just want a little widget that can do what they need.

I have no clue how to turn this into a widget. There is very little info out there about creating your own widget. I have spent many hours looking at the flex viewer source code and it still confuses me.

1) What would I do with the code I have in the <fx: Declarations> area?

2) What is the index.mxml in the viewer and why is it so "empty"? How is it calling on all of this code?

3) How do I create the layout of the widget with text boxes and buttons etc? In Design view of flash builder nothing shows up.

Any info would be appreciated!
Thank you,
0 Kudos
7 Replies
by Anonymous User
Not applicable
Original User: bjorn

The basic steps are described briefly in the Developers Guide (and you might already have seen it):
http://help.arcgis.com/en/webapps/flexviewer/help/index.html#developers/hellowidget.htm

You might also find this video helpful:
http://resources.arcgis.com/gallery/video/arcgis-server/details?entryID=870F152C-1422-2418-A010-7C82... ("ArcGIS Viewer for Flex: Creating a Custom Widget")
0 Kudos
by Anonymous User
Not applicable
Original User: alnesbit

Bjorn,

Yes, I did see the info in the Developers Guide. Unfortunately, the part I have the most questions about is not addressed. I was hoping for more than just "Add your own code as appropriate." lol.

I will check out the video and hopefully that will help a little.

Thanks,
0 Kudos
by Anonymous User
Not applicable
Original User: alnesbit

Good video. Didn't answer most of my questions, but still very helpful to see someone actually doing it. Are there more videos like this? Can we get more please?

Thanks,
0 Kudos
JustinConner
Frequent Contributor
You'll want to check out the Flex in a Week course on the Adobe website to start learning Flex.

http://www.adobe.com/devnet/flex/videotraining.html

Also the Building Web Applications using the ArcGIS API for Flex is a good course to take if you can.
0 Kudos
by Anonymous User
Not applicable
Original User: alnesbit



Also the Building Web Applications using the ArcGIS API for Flex is a good course to take if you can.


A good suggestion, thanks! I don't know why I forgot to look and see if there was any training classes. I'll see if I can take it.

Thanks,
0 Kudos
by Anonymous User
Not applicable
Original User: alnesbit

Something else that I just stumbled upon - Developers Guide for the older SFV that Robert has on his site for everyone. Linked from this old forum http://forums.esri.com/Thread.asp?c=158&f=2421&t=297925&mc=7#933276

I have found parts of this really helpful. Something like this for the newer 2.2 would be great.
0 Kudos
SeanCook
Emerging Contributor
I have to agree that this is one of the weakest areas in terms of support for flex viewer. i have gotten samples up and running, I have added widgets.

But I have been unable to figure out how to turn a stand alone application (for instance, service areas) into a widget. Any help would be greatly appreciated, and not just a link to a developers guide I have already been unable to interpret well. A written walk through example really need to be created for this. It is a basic step that lacks any real explanation.
0 Kudos