POST
|
To avoid having to reset all the widget references manually what you could do instead is post an update to portal with your webmap json with additional layers using var portal = portalUtils.getPortal(this.appConfig.portalUrl); portal.getUser().then(lang.hitch(this, function (user) { user.updateItem(this.map.itemId, argsUpdate).then(lang.hitch(this, function (updateItem) { //if want to reload with what just pushed to portal topic.publish('appConfigChanged', this.appConfig, 'mapChange'); //this will trigger map update which will refresh page and hence all the widgets })); })); I have done something similar and sniffed out the structure of the json for webmap in fiddler. I then just update the json object with my changes. If you want to make a brand new web map, I would suggest add an item and then update appConfig and call the change event user.addItem(args, '').then(lang.hitch(this, function (newItem) { if (newItem.success) { var itemId = newItem.id; this.appConfig.map.itemId = itemId; topic.publish('appConfigChanged', this.appConfig, 'mapChange'); //this will trigger map update which will refresh page and hence all the widgets } })); it is a page refresh but you no long have to deal with destroying, recreating dom as well as updating all the widget references to webmap
... View more
02-25-2015
10:17 AM
|
0
|
1
|
20
|
POST
|
Awesome job. I was suspicious it was using topic underneath. My initial workaround was to sadly extent widgetManager to "listen" for my topic.publish and then check on widget load if that widget wanted that info. not what i want to do but getting a demo going to client- fine for now. Another thought i had was looking into the dojo datastore.
... View more
02-06-2015
10:47 AM
|
0
|
1
|
46
|
POST
|
I ran into same issue with FetchDataByName with this.widgetManager is out of scope for the BaseWidget. I am disappointed to hear both widgets have to be open and I cannot use your workaround for out-of-panel. I was really hoping to use this for following workflow: widget opens and attempts to fetchDataByName from another app that may or may not be open. if not, do nothing. If second widget does get opened later on and new data is published my first widget receives it from the onReceiveData method.
... View more
02-06-2015
08:16 AM
|
1
|
3
|
46
|
POST
|
hi, i have a flex viewer app that is used to capture things like incidents and road construction and i have a NAService set up for routing. I am trying to find the most efficient way of updating my NAService with the latest incidents/construction as point and/or polyline barriers. I created a web service that would first query the incident/construction layer exposed in a map service- take the results and send into the REST solve as barrier parameters. But my client would like to see if there is a way to do this without a this middleware piece. I started looking into the Add Location geoprocessing tool but can't seem to figure out how to automate it. I know the Route Network Analyst Layer seems to only 'live' in the mxd so I create a model in the mxd to update the barriers. And it runs fine in the mxd. But when I publish the the tool in the mxd as a geoprocessing service and run the the tool- the barriers don't seem to get updated in the NAService. Is this not possible to do through a geoprocessing service because of how the Route Layer lives' in memory? Or do I need to restart the NAservice after I run the gp service? Thanks
... View more
05-08-2013
08:05 AM
|
0
|
0
|
258
|
POST
|
Hi, I have successful set up using the Custom Traffic Provider sample on my local machine.[HTML] http://www.arcgis.com/home/item.html?id=e11126ea20e941bd9644046e62e2bdbe[/HTML] But when I move it to my cloud server I get the following error: 030103 : Failed to update traffic data. The only difference between the two is on my local machine I built the solution in MS Visual Studio 2008 to register the tool and on the cloud I used ESRIregsam.exe. And the cloud doesn't have anything like windows office or MS Visual Studio installed but I didn't get the impression either was needed. The error seems to suggest a permission issue but i have set the folder that has everything- code, dll, csv file, location for DTF output- to allow everyone to have read/write access to try and resolve this. I am logged in as admin user and I even tried running arccatalog as admin but still I get the error. Any ideas what I am missing? Thanks Melinda
... View more
05-06-2013
05:14 AM
|
0
|
10
|
2517
|
POST
|
Instead of trying to override the entire attribute dictionary object, try to update each of the fields like so: CurrentFeatureGraphic.attributes = graphicAttributes; [graphicAttributes setObject:MarkupDescription.text forKey:@"Description"];
... View more
02-29-2012
10:12 AM
|
0
|
0
|
16
|
POST
|
There are two other options. You can turn your table into a feature layer with null geometry. Or you can create you own sync process. This involves creating a custom web service that would process the data being uploaded and well as have some mechanism (time stamp fields) to then push down any changes to the devices local copy of the tables.
... View more
01-31-2012
10:22 AM
|
0
|
0
|
2
|
POST
|
You can create a new envelope using the Envelope Constructor(Coordinate,Double,Double) where coordinate is your point first double is the width second double is the height Basically create a extent for your point. What width and height will be depends on how zoomed in you want. I have used like 25 feet for width and height in one of my apps. Then just pass into Map.ZoomTo()
... View more
11-18-2011
10:37 AM
|
0
|
0
|
2
|
POST
|
one more thing- pmf files are typically created through a check out process in ArcMap. I am wiling to bet you there are existing mxds for those maps. I would contact the person who manages creating those pmf files. And if so- can just use those to publish to argis online.
... View more
10-13-2011
03:50 PM
|
0
|
0
|
10
|
POST
|
Hi, I looked out your public website and I looks like it is using ArcGIS Server .NET ADF. I know this is probably too technically jargen but essential it looks like you already have ArcGIS Server and have a map service- basically what this does is send to website images of map based on scale and extent requested. And it uses a ArcMap mxd or msd file to create the service. Do you know who manages this site? They can probably be of help because .pmf files cannot be read by any iOS app. That format can only be read by ArcReader (which I believe only runs on PCs). You will have to publish your maps (map services) on ArcGIS online so you can access them through the ArcGIS app. I believe you can restrict who can access them. Or you could build your own custom app either through ESRI iOS API or through the new Flex AIR stuff or using htlm, javascript and PhoneGap. What I would do is found out who manages your public website. Tell them what you want and they can give you more detail about how to do it (hopefully). Or RFP out (I do this work all the time as do many others). I hope I am not making your head spin more but unforunately you need someone who has some more GIS and application development knowledge to help you layout the path to getting these maps accessable via iphone/ipad/mac. I am sure there is at least one person in your organization who does. It can absolutely be done- no question about that.
... View more
10-13-2011
03:38 PM
|
0
|
0
|
10
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|