Select to view content in your preferred language

Preview of two great new widgets coming out mid January 2011

33203
156
12-30-2010 10:46 AM
RobertScheitlin__GISP
MVP Emeritus
All,

   I have been working hard on two great new widgets that I want you to preview. The final versions will be made available Mid January 2011 and submitted to the Flex a Widget competition.

http://www.esri.com/events/devsummit/get-involved/widget-challenge.html

The first is a new route widget for FlexViewer 2.2

Its' feature include:


  • Up to ten stops that can be added to the map interactively or by single line address matching using Bing geocoder.

  • Up to ten point barriers that can be added in the same fashion as stops.

  • Interactively added stops and barriers are automatically reverse geocoded.

  • You can calculate by time or distance and optionally use best sequence.

  • Route segments can be individually clicked in the directions list and visualized using a polyline animation (Thanks to Mark Deaton).

  • The big deal for this widget is its' printing capability. Both direct printer output and PDF output are supported. Multi page output with headers and footers and the option to include the large route image are all included. The individual direction segments have maneuver arrows that are included by default but can optionally be turned off. Things like configuring alternating directions background color can also be configured.


So if you are a developer and don't care about routing but want to know how to do moderately advanced multi page printing and AlivePDF techniques than this widget is for you.

Preview here:
http://gis.calhouncounty.org/FlexViewer2.2/index.html?config=config-route.xml



The second one is a new infoTemplate for featurelayers.

The Attachment Relate Info Window Widgets' features include:


  • Ability to specify which fields are displayed

  • Specify one link field that will display as a clickable text or an actual image in the info window

  • Buttons at the bottom of the window for Zooming to feature, querying attachments, querying related features or tables

  • Attachments are preview only and are displayed in a custom grid popup not the standard attachment inspector.

  • Relates are initially displayed in a grid that allows for the selection of which related feature you want to preview and then when you choose the one you want to see then a floating datagrid is displayed with the related records.


In the examples below click on the point in the screen.

Preview of attachment and link capability:
http://gis.calhouncounty.org/FlexViewer2.2/index.html?config=config-attachment.xml

Preview of related feature capability:
http://gis.calhouncounty.org/FlexViewer2.2/index.html?config=config-relate.xml

preview of image link in info window:
http://gis.calhouncounty.org/FlexViewer2.2/index.html?config=config-infoimage.xml
Tags (2)
0 Kudos
156 Replies
MarkSmith1
Deactivated User
Robert,

I've started a new thread:

http://forums.arcgis.com/threads/28108-Identify-widget-projection-issue?p=93481#post93481

I would really appreciate your feedback on this... I feel like I'm losing my mind 🙂
0 Kudos
KhaeSaetern
Emerging Contributor
Hi Robert, thank you for all your work! I've implemented a lot of your other widgets successfully. I'm trying to implement attachment advanced window info and enabled attachments in the geodatabase. After enabling attachments, I get two files but don't know how to proceed from there. I don't know how to associate a file to a feature and storing in the geodatabase as a BLOB.

The config part looks like this:
<layer label="WSX Parcels" type="feature" visible="true" alpha="1"
                info="widgets/InfoTemplates/AttRelateInfoWinWidget.swf"
                 infoconfig="widgets/InfoTemplates/IWT_WSX_relate.xml"
                url="http://lswag01/ArcGIS/rest/services/Maps/wsx_parcels/MapServer/0"/>

Part of the attach.xml file looks like this:
<configuration>
    <fields>APN,BARTPARCEL,PDF</fields>
    <titlefield>BARTPARCEL</titlefield>
    <links>
     <linkfield icon_or_text_or_img="text" linkalias="Attachment" linkprefix="" linksuffix="">URL</linkfield>

    </links>
    <layername>WSX Parcels</layername>
    <datefields></datefields> <!-- field in milliseconds -->
    <zoomscale>5000</zoomscale>
    <csvseparator>,</csvseparator>

Thanks, Khae
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Khae,

   My widget is for viewing attachments that are already loaded to the feature class in ArcMap or some other means. There is nothing special that you have to do be able to view attachments once they are loaded in a layer of the map service.
0 Kudos
NitinBele
Emerging Contributor
Robert thanks for sharing such a nice widget.
I want to show multiple\overlapping points\polygons (same lat-lon values\geometry) using the widget with 'next' and 'prev' buttons for the records? Is it possible to do this with your widget ?

Luke
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Luke,

   This is not really feasible in this widget as the attributes are shown based on mouse events on the graphic. So if one graphic is covering up another graphic even if you have "autoMoveToTop" set to true on that graphic there is no guarantee that it will get to the top and allow mouse events.
0 Kudos
DonCaviness
Occasional Contributor
Robert, I have implemented a variation of the routing widget you created and I have run into a small problem when performing a manual sort of the stops.  In the widget I have created data can be added one of two ways, 1) from a queried dataset or 2) from an address a user has entered.  Everything works with the sort as expected when only stops created from the dataset are available.  However, once i add an address and then perform a sort, the address gets left out of the stops feature set, therefore the address is not included in the route.  If I add stops via the dataset and address but do not sort them, then the routing works as expected.  I feel as though I am missing something simple but I'm having trouble finding it.

Do you have any suggestions of what might be going on or what I should check? If it would help I can send you my widget code, just let me know.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Don,

  Just speculating here but I would look at the promoteStop function and find:

if(rs2.AddressText.indexOf(String(stops.features.attributes.address)) > -1){


If it does not get past this if than the stop will never be added to the nstops FeatureSet.
0 Kudos
DonCaviness
Occasional Contributor
Robert, that appears to be where the problems lies.  The if statement is being called when I move a stop added from the dataset but not a stop added using an address.  Now I just need to figure out what is going on.  Thanks.
0 Kudos
KhaeSaetern
Emerging Contributor
Hi Robert,

Thank you for your help. I got both the attachment and relate working in my FlexViewer. I follow this to enable attachments in geodatabase:

http://blogs.esri.com/Dev/blogs/arcgisdesktop/archive/2010/12/21/Using-attachments-to-manage-associa...

This is great for attachments related to features. My next question is, do you know how to view attachments in a related table? For example, I click on a point, see its related table, (attachment is already enabled in ArcMap for this sde table), and in the related table window,to the left of "Export to CSV" we see a paper clip for item on that table? Attached is where I click on milepost 17.2, get its descriptions for that mile post. In a related table showing permits near milepost 17.2, see the attachments related to that row.

Thanks for your help.
Khae
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Khae,

   You are the first I can remember to ask for this. I will add it to my enhancement request list. Just be warned as esri have began depreciating the method I use for this widget I will have to look at this using the new PopUpInfo instead (that just means a longer wait as I will have to redevelop the widget).
0 Kudos