POST
|
I too found out that virtual directory was not created in IIS for my arcgisoutput directory. Soon as I made that virtual directory in IIS and made sure the permissions would allow for web access, and it worked! One thing to note is that my virtual directory is called "arcgisoutput", is pathed to"c:\arcgisserver\arcgisoutput", and it appears as www.fishcda.com/arcgisoutput, however if you look at the actual link that is supplied by rest it looks like the links above (e.g. http://www.fishcda.com/ArcGIS/rest/services/SampleEdit/FeatureServer/3/411/attachments/2). This may lead some to believe that you need to have this crazy long path/nested virtual directories all set up (at least that is what I thought at first look). Apparently, through the magic of ArcGIS Server it translates all this and points the file back to the simple location such as www.fishcda.com\arcgisoutput. Hope that helps someone,
... View more
08-17-2011
06:50 AM
|
0
|
0
|
500
|
POST
|
Ivan, you are correct that you can upload attachments via the editable layer using the edit widget. The think that is confusing, at least it was to me, that in order to make use of this function via the flexviewer editor (at least at V 2.3), you will need to use the function in ArcCatalog to make the attachments fields. The result of this is a related table that stores the attachments, as apposed to having fields directly in the feature table that would hold the attachments (ie with everything else you might have in your attribute table eg. objectid, shape, name, ......). You might look at this: http://blogs.esri.com/Dev/blogs/arcgisdesktop/archive/2010/12/21/Using-attachments-to-manage-associated-feature-content.aspx Hope that helps, Frank
... View more
08-05-2011
06:28 AM
|
0
|
0
|
500
|
POST
|
Is there a simple way to turn on the default pop up for a feature layer (in FV 2.3.1)? I have already written the code to do a query, that then returns a featureset that I use to zoom to the features extent and create a highlighted effect for the polygon. I would now like to trigger the default popup for the feature layer. I was thinking there might be a simple way to use a mappoint from the center of the featureset polygon, and then trigger the PopUp, but I???m not seeing any sample code like that. Any idears would be great!
... View more
08-04-2011
12:36 PM
|
0
|
1
|
2748
|
POST
|
Robert, on first blush that seemed to work. My attributes get pushed to the popup window, however they don't seem to be saved back to the data in SDE. If I reload the map or look at it in AC the attributes are blank, though the feature is there. I've added some trace functions and can see that the featureLayer_selectionComplete function runs to completion. I am seeing the following warning after the featureLayer_selectionComplete finishes: warning: unable to bind to property 'graphicsLayer' on class 'com.esri.ags::Graphic' Just to clarify. After closing the edit widget. The graphic and attributes looks just like the other features in the layer I am editing, and there values seem to be intact per the mod above. My goal here is to simplify the editing process for the end user, basically by creating a fill in form, having the user complete that first, and then having them trace the feature on the screen. If there is a better way to attempt this I'm all ears. Any ideas? Thanks in advance.
... View more
08-02-2011
03:14 PM
|
0
|
0
|
572
|
POST
|
I think the above code might be close to helping me through a problem I am having, but I am a little stuck. My desire is to automaticly populate the popup with when the end user finishes completing the drawing. I have added a little bit of code to find the field I am looking for (in this case Event_Name). However, I'm stuck on how to update the feature with the value. Would one of you be able to provide me with the missing link in my code? Below is what I have so far:
private function featureLayer_selectionComplete(event:FeatureLayerEvent):void
{
for each (var field:Field in event.target.layerDetails.fields)
{
// added by fr next 5 lines
if (field.name == "Event_Name"){
trace ("I found the called Event_Name!!!");
// I want to do something like below, but this doen't work:
//feature.attributes[field.name] = "this is a test";
}
if (field.type == Field.TYPE_DATE)
{
for each (var feature:Graphic in event.features)
{
var date:Date = new Date(feature.attributes[field.name]);
if (date.milliseconds == 999)
{
date.milliseconds++; //Add 1ms to date values ending in 999 to workaround REST date bug
feature.attributes[field.name] = date.time;
}
}
}
}
}
Thanks for your assistance,
... View more
08-01-2011
03:12 PM
|
0
|
0
|
572
|
POST
|
Robert, I had a user ask about the text on the transparency slider for the buffer. They didn't know what "Adjust buff alpha" meant... I know you and I know what this means, but I was wondering if you could add this label to the other labels in the config file for a future revision? Just a thought, thanks again for the wonderful widget! Frank
... View more
07-28-2011
10:43 AM
|
0
|
0
|
577
|
POST
|
Well if I wanted to save face I would completely delete this post, but because some other poor sap might do the same thing I will leave it up. The last step to resolve this issue was to remember to clear the rest cache on the server, (i.e. fire up the "ArcGIS Rest API Admin" web site and "clear cache now".... I'm normally completely anal about that but since someone else made the initial changes I forgot. My fault, lesson learned the hard way..... Hope this helps someone!
... View more
07-26-2011
09:25 AM
|
0
|
0
|
221
|
POST
|
You first may want to check at the rest end point for the feature service and make sure that you see "Has Attachments: True" (this is found about 11 topics-bold text down on the rest end point). You then should make sure the you can see popUps for the feature layer. You will need to configure a PopUp.xml file for it. This way you can make sure you can get to the attachments. Make sure you set <showattachments>true</showattachments> in your PopUp.xml. If you get the above working then the edit attachments may have a higher chance of working. Feel free to chime back in if this has already been done and works.
... View more
07-21-2011
05:55 AM
|
0
|
0
|
678
|
POST
|
I would like to create some relatively simple pdf reports from attributes found in an AGS service. I know that ArcMap has some reporting capability out of the box, however I'm not seeing any way to access these reports via Flex/AGS. I've done some searching of the forum and I'm not finding much. Am I going to need to use AlivePDF and build my own report that way? I was also thinking I've seen some uses of Python and geoprocessing tasks to generate reports, but maybe that is more advanced/server intensive then what I really need. Any ideas would be wonderful, Frank
... View more
07-05-2011
10:23 AM
|
0
|
2
|
585
|
POST
|
Thanks that fixed it. Strange that it was working and then it stopped.... Have a great Forth of July!
... View more
07-04-2011
07:17 AM
|
0
|
0
|
478
|
POST
|
Robert et al, Regarding launching widget1 from widget2. I made the ViewerContainer.mxml changes as mentioned above. I then added the code per step two above. It was working just great. I've been busy writing more code for the same widget, now the other widget won't launch.... So assume I broke something. I then created a new widget, so I can just figure out what I did wrong, and it won't work either.... The below is my stripped down widget2 code. Do you guys see any reason why this wouldn't work? Thanks for the extra set of eyes.. Frank
<?xml version="1.0" encoding="utf-8"?>
<viewer:BaseWidget xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:esri="http://www.esri.com/2008/ags"
xmlns:Search="widgets.Response.*"
xmlns:viewer="com.esri.viewer.*"
widgetConfigLoaded="init()">
<fx:Script>
<![CDATA[
import com.esri.viewer.ViewerContainer;
import com.esri.viewer.AppEvent;
import mx.controls.Alert;
private var viewerCon:ViewerContainer;
//this function called when the widget's configuration is loaded
private function init():void
{
}
protected function editButton_clickHandler(event:MouseEvent):void
{
ViewerContainer.dispatchEvent(new AppEvent(AppEvent.WIDGET_RUN, viewerCon.getWidgetId("Edit")));
}
]]>
</fx:Script>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<viewer:WidgetTemplate id="Removal" width="450" height="180">
<mx:Button id="editButton" label="Edit" click="editButton_clickHandler(event)"/>
</viewer:WidgetTemplate>
</viewer:BaseWidget>
... View more
07-02-2011
02:39 PM
|
0
|
0
|
478
|
POST
|
Robert the above code seemed to do the trick! Thanks! Frank
... View more
06-21-2011
07:24 AM
|
0
|
0
|
760
|
POST
|
That code fixes the 1/2 icon on the load. However in my legend seems like it is forcing it to be pretty wide. See attached image. Thanks for the code, fr
... View more
06-21-2011
06:33 AM
|
0
|
0
|
837
|
POST
|
Just noticed that no matter how wide I set the widget, I only get 1/2 the metadata icon on load. So if I set it to 500 or 600, for somereason only half the icon is displayed. I can manualy resize the icon, after load and all is well. fr
... View more
06-21-2011
06:01 AM
|
0
|
0
|
837
|
Title | Kudos | Posted |
---|---|---|
1 | 03-05-2015 11:29 AM | |
1 | 09-04-2015 07:40 AM | |
1 | 02-08-2016 10:36 AM | |
2 | 12-22-2012 07:34 PM | |
3 | 02-17-2016 09:01 AM |
Online Status |
Offline
|
Date Last Visited |
10-21-2022
08:23 PM
|