January 28, 2013, 1:34 am
Hello All!
So I have created my first widget in Flash Builder 4.7. I am running Arcgis Viewer for Flex 3.1. When I attempt to bring my new widget into a viewer it just doesn't work. However, when I run from within Flash Builder the viewer comes up and widget works without a hitch. Here are the steps I took. Please advise me on what Im doing wrong. I assume that something is happening when creating the swf file.
Created new widget under the src-->widget folder. Named folder, xml and mxml "XYWidget". Added desired coding. I then went under Properties--> Flex Modules and added XYWidget.mxml to the directory. Finally I ran the "Export Release Build" to my designated output folder. I used the default location which is "bin-release" folder. Once it complied and completed I went to the bin-release folder and zipped up the XYWidget folder that included the swf and xml file. I opened the flexviewer and imported the customized widget zip file. It imports successfully. I then go into the config.xml file for both the flexviewer and flexviewers folders where the web server is running (again this is default locations C:\inetpub\wwwroot\flexviewer and C:\inetpub\wwwroot\flexviewers\xxxxexampleviewer) and I add the widget to the widgetcontainer
<widget url="widgets/XY/XYWidget.swf" config="widgets/XY/XYWidget.xml" label="XY" icon="assets/images/i_nav.png"/>
I then have tried opening existing project and adding widget in or creating a new one. Everything goes according to plan and then when I open viewer in browser the widget appears but it will not open. Ever...
What am I doing wrong? Thanks in advance for any assistance.
Sloney
↧
January 28, 2013, 3:18 am
All,
I have just uploaded a widget to the gallery that displays a coordinate panel along the bottom of the application that shows Map Coordinates, MGRS and Scale. It allows provides check boxes to turn on/off both MGRS and Graticule Grids. Also includes a Zoom to MGRS Function.
Give your map tag an attribute of bottom="25" to ensure that the panel does not obscure any of the map face.
http://www.arcgis.com/home/item.html...152f9176e33d6d
Regards
Anthony
↧
↧
January 28, 2013, 3:20 am
↧
January 28, 2013, 3:22 am
↧
January 28, 2013, 8:09 am
I am trying to upgrade my flex application to 3.1 and am having problems with the eSearch widget. I have a multiple expression search that worked fine at 2.5. When I upgraded to 3.1 and the newest eSearch widget the multiple expression automatically runs when I fill in the first value and I never have the oppurtunity to select the second value. I have tried all different combinations of isvaluerequired, all with the same result. Below is the config for this particular expression. Any help would be appreciated.
Code:
<expression alias="Tie Lines" textsearchlabel="Select TO's to display tie lines..." isvaluerequired="true">
<values>
<value prompt="Select Area..." isvaluerequired="true" userlist="AECI,AEPW,AMMO,CLEC,EES,EMDE,GMO,GRDA,INDN,KACY,KCPL,LAFA,LAGN,LEPA,LES,MEC,MIDW,NPPD,OKGE,OMPA,OPPD,SPRM,SPS,SUNC,SWPA,WAPA,WERE,WFEC"> UPPER(SDE.SPP_TIE_LINES.TIE_NAM) LIKE UPPER('%[value]%')</value>
<value prompt="Select Area..." isvaluerequired="true" userlist="AECI,AEPW,AMMO,CLEC,EES,EMDE,GMO,GRDA,INDN,KACY,KCPL,LAFA,LAGN,LEPA,LES,MEC,MIDW,NPPD,OKGE,OMPA,OPPD,SPRM,SPS,SUNC,SWPA,WAPA,WERE,WFEC" operator="AND"> UPPER(SDE.SPP_TIE_LINES.TIE_NAM) LIKE UPPER('%[value]%')</value>
</values>
</expression>
↧
↧
January 28, 2013, 9:43 am
Robert I am having a little trouble using the Identify Widget for Flex 3.0 using the app builder version. The tool seems to be doing everything right except returning the record from my rest endpoint. I am using the following code in the widget settings to access my layers from my arcgis server rest directory. I believe I have entered everything exactly how it should be, but obviously I have missed something along the way. Could you take a look at my code and let me know if I have entered something in error?
<layers onlythese="true">
<layer>
<name>Parcels</name>
<fields>
<field name="Grundy_Master.SDEDATA.Parcel_Poly.PIN" type="esriFieldTypeString" alias="PIN"/>
<field name="VPAMSTAXCODE" alias="Tax Code" popuponly="true"/>
</fields>
<links>
<link includeinresults="false" field="" alias="" tooltip="">
<linkprefix/>
<linksuffix/>
<iconfield/>
<iconprefix/>
<iconsuffix/>
</link>
</links>
<zoomscale>9028</zoomscale>
<forcescale>true</forcescale>
</layer>
</layers>
Thanks,
Dave-O
↧
January 28, 2013, 8:00 pm
Hi,
I've been working on a simple widget which records text messages which the user inputs, however the next function of this widget I have had some trouble with and that is saving it to a text file. I can save it the file perfectly fine, however I want to restrict the user to save in a particular style. For example "dayNumber_team_date_time.txt" where dayNumber must consists of 0-9 and team must equal "red, blue or white". Is this possible or are there some samples or examples available?
On a side note is it also possible to append the current date and time instead of the user defining it?
Thanks
↧
January 29, 2013, 3:54 am
Hi,
I have a couple of problems with the new Edit widget 3.1.
When I add related records one of the fields is a drop down list, whatever I choose from the list is defaulted to appear in the next record. This is fine because very often it will be the same item of the list that is chosen. However when I go in and check the feature class it says <null>. So although it looks like the field is filled in on the flexviewer there is no input in the feature class.
I have visions of my users having loads of records with this field not filled in.
Has anyone come across this? Seems like a pretty important bug/issue that it's showing the field as filled in on viewer but it isn't actually in the feature class.
My second question is straight forward when you delete the record from the parent table in flex, the related records are not deleted in the table. I had thought because the 2 are linked if the parent is deleted any related records would be too, but this isn't the case.
I'd appreciate any help with this.
Rachel
↧
January 29, 2013, 8:29 am
Hi Robert,
First off, thanks for the tiled fix in 3.1.3. That is working great.
As for this issue, I'm using Dynamic Legend Widget 3.1.4 and TOC 3.1.4 and trying to access ESRI's (type=dynamic) map service:
http://maps1.arcgisonline.com/ArcGIS...cts/MapServer/
When I turn this on in the TOC, the Dynamic Legend will add the Generalized sublayer (layer 1) twice. If you zoom in enough to get to the Non-generalized sublayer (layer 2), it also shows up twice in the legend. Not sure if this is the widget code or Esri's map service configuration?
Thanks.
↧
↧
January 29, 2013, 8:53 am
The i_table.png is not showing up on my web server install - the identify and esearch widgets. It will show in the flashbuilder run. I have checked the assets.image folder and it appears in the src folder but not the bin-debug or bin-release. I have tried deleting these folders, running clean, exporting, etc.
Any ideas?
↧
January 29, 2013, 10:55 am
Thanks for another great widget Robert.
I have configured hyperlinks to return the optional icon using:
Code:
<link includeinresults="false" field="HeaderURI" alias="Click here for Well Report" tooltip="View pdf of Well Report">
<linkprefix></linkprefix>
<linksuffix></linksuffix>
<iconfield></iconfield>
<iconprefix></iconprefix>
<iconsuffix>http://geoweb2008r2/myassets/w_link_white_pdf.png</iconsuffix>
</link>
However, not all my records contain a url, and I would like for the icon to not appear when there is no value or valid url.
Thanks for the help
↧
January 29, 2013, 12:12 pm
Hi, I am currently using the Map Legend Widget using Rest Legend with ArcGIS Server 10 and Flex API 2.4.
Before upgrading to ArcGIS Server 10.1 and Flex API 3.1, I want to know if the Map Legend Widget I am using now is still going to work with AGS 10.1 and Flex API 3.1
Does anyone know about this?
Thanks,
↧
January 29, 2013, 2:40 pm
This is probably a simple question, but does anyone know where to find the URLs for all of the Mapswitcher basemaps? All I can find is the sample for 3 of them here:
http://resources.arcgis.com/en/help/...0000003w000000
Code:
<basemaps>
<layer label="Streets" type="tiled" visible="true" alpha="1"
url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/>
<layer label="Aerial" type="tiled" visible="false" alpha="1"
url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"/>
<layer label="Topo" type="tiled" visible="false" alpha="1"
url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"/>
</basemaps>
I wanted to add a few (Openstreetmap, Oceans) to my TOC instead of having them up top, and not seeing them in any XML config files.
Thanks.
↧
↧
January 29, 2013, 2:54 pm
On the elevation profile widget example page:
http://maps.esri.com/AGSFlex_Demos/F...ionProfile.xml , once you select the draw tool, it will show a tooltip style window with the cursor telling you "Click to start Drawing" and follows the cursor around until you start to draw.
Anyone know where/how it is getting this? I've searched my entire project for that text string, and can not be found.
I would like to add something similar to my modified Identify widget, so that the user knows that the tool is still active until closed.
Thanks for any ideas,
R_
Attachment 21182
↧
January 29, 2013, 3:04 pm
Hi Robert,
This was buried in the old thread. Thought I'd resurrect it in a new one so you can get credit.
The fixed DG seems to honor the order of the <fields> in the fixed DG. however, if one of them is a hyperlinkgridfield="true", it always gets appended to the end of the DG (last column).
Would it be a simple mod to have that show up as the first column instead of the last (I.e. where in the code is the hyperlink column being added?)? I've looked at it some, but it pretty indepth as to what all fields are getting assembled and where. (especially since the last column width extends to the edge of the browser window) so I end up with a huge column and a tiny little photo icon in the middle (way too much padding ;))
Thanks,
R_
Attachment 21183
↧
January 29, 2013, 10:20 pm
Hi,
I have an issue with a session restore widget. The widget is based on a post that Robert did quite a few versions ago. The widget is designed to restore the layers that users had on. At version 3 the widget isn't working; the correct layers are becoming visible on the map, however the layerlist is not updating the sublayer checkboxes for dynamic services. Can anyone give me an idea of how to make the widget update the layerlist checkboxes to reflect the layers on the map?
This is the restore portion of the dynamic services
if (layer is ArcGISDynamicMapServiceLayer) {
layer.visible = acVisLayers[cLayId].visible;
ArcGISDynamicMapServiceLayer(layer).visibleLayers = acVisLayers[cLayId].visarray;
Thanks,
Todd
↧
January 30, 2013, 12:31 pm
I have 2 separate editwidget.xml files with different names. I do this to allow full feature editing in one set of features. The other feature I only want to edit the attributes. I am running into a problem where the settings from one editwidget.xml seem to be overwriting the other even when it is not open. Is there a way to prevent this? When I use the full feature one I cannot see the attributes and I see the attachment/reference option.
↧
↧
January 30, 2013, 8:01 pm
hi,
Is there a way to set widget xy position in widgetcontainer layout ="vertical" because when i open my flexviewer application, widget in widgetcontainer layout ="vertical" open in top position. So how do i make the widget in widgetcontainer vertical layout , for exmaple will open in center position of my flexveiwer application
thank
↧
January 31, 2013, 1:40 am
Hi,
I have a "deferential" idea how to improve Robert´s eMap Switcher widget (it would be very useful with ability to fade), but it seems I´m not able to make it work, so I´m starting a discussion here...
Is there any chance to add tool to enable users to change the order of basemaps? Tool like "move up/move down" which is possible with operational layers.... It would be very useful, many users would be very grateful!
Robert, what do you think about this idea? Should it be possible to add this tool into your widget?
And of course - many thanks for your excelent work for "the community"!!!
↧
January 31, 2013, 4:31 am
Hello All!
Is there a way to limit the features in the 'Attribute Table' widget buy features that are selected through another widget? So say for example I have a Search widget that you can select fire departments in a given area. I also have the fire station layer turned on in attribute table. The out of the box configuration shows all features that are visible in the current extent. I want to limit features shown in attribute table widget by what's selected through the Search Widget.
So if there are 10 fire stations in the current extent and I use the Search widget to select 3 of them, I would like for the attribute table to only show those three.
Thanks for your help!
Server 10.1, FV 3.1, Flash Builder 4.7
Brent
↧