|
POST
|
Royce, >> I've come across a few issues using the 4.5 sdk against the 2.3.1 api and imported projects. Could you list those. >>little things like .layerinfos.length is no longer recognized. Unable to reproduce this using 4.5. Could you provide testcase for this? >>Looks like if you don't use sdk 4.5, design mode is broken in Flash Builder 4.5. Its more of Adobe disabling Design View in Flash Builder 4.5 for SDKs other than 3.6 and 4.5 Sylvain, >> I find one problem with widget minimizing. Thanks for reporting this. Ok, I've just re-imported a 4.1 sdk (flashbuilder 4.5) project into a 4.5 sdk one, made a couple adjustments and the only outstanding issue so far... is in the esri sample supplied "NavigationSkin.mxml" (in other words, I haven't modified this file).
...
<mx:VSlider id="slider"
dataTipFormatFunction="formatSliderDataTip"
dataTipPlacement="right"
enabled.disabled="false"
enabled.disabledWithSlider="false"
enabled.normalWithSlider="true"
height="160"
includeIn="normalWithSlider,disabledWithSlider"
liveDragging="false"
maximum="{hostComponent.map.lods.length - 1}"
...
returns the following warning message: Data binding will not be able to detect assignments to "length". NavigationSkin.mxml Doesn't seem to be a deal breaker, but that's the only outstanding issue when going to SDK 4.5. EDIT: And here...
<esri:QueryTask id="queryTask" url="{mapLayer.layerInfos.length - 1}" useAMF="false"/>
returns the same warning message: Data binding will not be able to detect assignments to "length".
... View more
05-19-2011
09:04 AM
|
0
|
0
|
1417
|
|
POST
|
As a matter of interest, which login mechanism did you use and where did you hold that information till it was needed at event.adds[0].attributes['EDITEDBY'] = ... I'm not using secured services or any secure login mechanism at this point. What I am doing though, is... upon app load, the user is presented with a "login" form: First Name, Last name, agency, phone number, email address, etc... This info is then stored as a Flash cookie locally on their machine for quick login on subsequent sessions. The info is also sent back to an SDE table along with a boolean value for "isLoggedIn" and "isAway". These values are updated for that record every time the user leaves the page and/or kills the app. I then have a listView that the users can bring up in the app which shows who's logged in and whether they are "away" or not. When a user has this listView up, the sde table is queried every 10 seconds for records that have "isLoggedIn==true" and updates the listView. If "isAway==true" the listItem value becomes italicized. The user can hover over the list items and get detailed info about other "logged in users" via a tooltip. By the same token, whenever a user adds, updates features, this info (user name), is programatically used as the value for the "EDITEDBY" field. The downside to this is... as mentioned at the top of this post... it isn't secure. The site I have running this stuff is in prototype form and has yet to move forward with the next (security) steps.
... View more
05-18-2011
01:07 PM
|
0
|
0
|
478
|
|
POST
|
We are still in the process of verifying 4.5 support. We should have a full report next week. If you want to be on the safe side, I'd recommend holding off. As for the SDK: As of now, the ArcGIS API for Flex seems OK with it, but in your applications there might be code that needs updating. If you are using the source code of the Viewer, I would recommend you stick with 4.0 or 4.1 for now. As for the IDE: It should probably be OK with Flash Builder 4.5, assuming that you use an SDK version as described above. But again, we are still in the process of testing and verifying. I've come across a few issues using the 4.5 sdk against the 2.3.1 api and imported projects. little things like .layerinfos.length is no longer recognized. I'll hold off on the 4.5 sdk until the report/updated api. Thanks for the info Bjorn. Looks like if you don't use sdk 4.5, design mode is broken in Flash Builder 4.5.
... View more
05-06-2011
08:33 AM
|
0
|
0
|
1407
|
|
POST
|
All clear to load up Flash Builder 4.5/SDK 4.5 for use with the API?
... View more
05-05-2011
08:10 AM
|
0
|
24
|
6335
|
|
POST
|
Has anyone experienced an issue where a FindTask returns results from fields that are hidden in the map service mxd? I've got an mxd with a half dozen layers. All of them have a field called "Name" in them. However, in one of the layers I've turned off the field "Name" because I don't want my FindTask to run against that particular field in that layer. Yet, when I run the FindTask, it returns results from that layer with the hidden "Name" field. If I run a "find" right in the mxd, the results do not reflect that particular hidden field, which is what I want. This is a frustrating example of where Server and Desktop implementations of a given feature differ significantly, but that's a separate discussion. Another way of looking at this is... if you don't supply anything for "searchFields" for the FindParameters in Flex and just want to rely on the fields that are checked as "visible" in the map service mxd... it appears... that we are out of luck. This of course may be a features of the REST API but somehow I doubt it. What's your take?
... View more
02-10-2011
01:35 PM
|
0
|
0
|
749
|
|
POST
|
And yet, implementing undocumented features has bitten me time and time again. com.esri.ags.components.supportClasses.CodedValueDomainField does however explain a lot. -r
... View more
02-10-2011
07:21 AM
|
0
|
0
|
712
|
|
POST
|
Wow, alrighty then. I've actually got a working kludge which involves recreating the dataprovider programatically for the dropdownlistfield. I had to rebuild the coded value domain list by hand from the layer infos then set the selected index to 0 if it's a new feature or to whatever the current value for that field is, if it's an existing but updated feature. I don't like that route so I'll certainly explore your solution. esri dev, what's your take on this? Thanks for the input, -Royce
... View more
02-09-2011
07:57 AM
|
0
|
0
|
712
|
|
POST
|
try setting the typicalItem property on your custom drop down list. Thanks, that actually does a better job of setting the width of the dropdowlistfield than just setting the width explicitly. I'm still stumped though regarding how to get the dropdownlistfield re-populated. It seems that when you create a custom renderer, the default dataprovider goes away. In my case, these dropdownlistfields access the gdb coded value domains associated with the field. After creating this custom renderer based on the DropDownListField, how can I relink back up the domain values as the dataprovider?
... View more
01-21-2011
06:58 AM
|
0
|
0
|
712
|
|
POST
|
So, maybe the best question to ask here is: How to set the dataprovider of a custom DropDownListField when the field in question is associated to a geodatabase domain? If the only way to set the renderer for a custom FieldInspector is to do: var classFactory:ClassFactory = new ClassFactory(DropDownListFieldRenderer); fieldInspector.renderer = classFactory; How does the DropDownListFieldRender get its dataprovider set to the desired gdb domain?
... View more
01-20-2011
01:51 PM
|
0
|
0
|
712
|
|
POST
|
I resorted to the following code but can't seem to figure out how to hook up the result to the DropDownListField dataprovider...
var details:LayerDetails = resourceStatusFI.featureLayer.layerDetails;
var resourceSatusField:Field;
for each (var field:Field in details.fields)
{
if (field.name == "RESOURCESTATUS")
{
resourceSatusField = field;
break;
}
}
var resourceStatusDomain:CodedValueDomain = resourceSatusField.domain as CodedValueDomain;
var resourceStatusDataProvider:ArrayCollection = new ArrayCollection(resourceStatusDomain.codedValues);
... View more
01-20-2011
08:31 AM
|
0
|
0
|
712
|
|
POST
|
I've got an attribute inspector with some default dropdownlists that list preset domain values (stored in the geodatabase). For whatever reason, those dropdownlists aren't wide enough and cut off the ends of the domain values and add a horizontal scroll bar in the actual dropdownlist of choices. I'd like to get that component width to be wider and currently have created a separate "dropDownListField" component where I set the width to what I want. Then I did: var classFactory:ClassFactory = new ClassFactory(ResourceStatusRenderer); resourceStatusFI.renderer = classFactory; resourceStatusFI is the fieldInspector which has the dropdown list. All works well with the width part of this but now I've lost the actual domain values in the dropdownlist. I notice that the DropDownListField has a "dataprovider" property but I'm not sure how to set that in this context (or even if I need to). What am I missing here?
... View more
01-20-2011
08:28 AM
|
0
|
7
|
2613
|
|
POST
|
I'm having good success with: fl.addEventListener(FeatureLayerEvent.EDITS_STARTING, editsStartingHandler);
private function editsStartingHandler(event:FeatureLayerEvent):void
{
if (event.adds)
{
event.adds[0].attributes['EDITEDBY'] = ...
...
... View more
01-03-2011
11:16 AM
|
0
|
0
|
1000
|
|
POST
|
Royce, Modify the attribute of the selected graphic on the Featurelayer's selectioncompleteEvent handler: e.g. protected function incidentsAreas_selectionCompleteHandler(event:FeatureLayerEvent):void { Graphic(event.features[0]).attributes['description'] = "MyDescription" } Thanks Mehul, I've done the above and have verified that the attributes are being populated on the new feature/graphic (both in the AttributeInspector as well as inspecting the event.features[0].attributes property during runtime, but the values never get committed back to the server. The user entered values do, just not the prepopulated ones. Is there something I need to do after setting the attribute values on the graphic but before the feature is committed back to the server to get them to persist on the features?
... View more
01-03-2011
08:51 AM
|
0
|
0
|
1000
|
|
POST
|
Mehul, that worked great. I was able to remove a couple fields from the AttributeInspector using similar method to your example... setting the visible property on the fieldInspectors to false. Now, I'd like to programmatically populate the values of those "hidden" fields of newly created features before they get committed back to the database. What would be your suggestion for doing so? Thanks, -Royce Specifically, I've got users logging into the app and I have a field in the editable features that I'd like to pre-populate with the user's ID. I don't see a sample that does this kind of programmatic field population when new features are added. Has anyone performed this successfully?
... View more
12-30-2010
06:26 AM
|
0
|
0
|
1000
|
|
POST
|
Ok, so I got this working but not all that happy with the solution. I setup an initial URLStream of the map service in question with a Complete event to fire when the data has been full retrieved. If the target server is down, that won't happen for about 30 seconds. If the target server is up, the event will fire very quickly (under a second). Either way, I have a module level boolean flag that gets set to true when that event fires. In the meantime, I also set a Timer to fire a tick event after 2 seconds. When the event is triggered, it checks the stream flag. If true, then I go ahead and create the map layer and load it into the map. If the timer completes at the end of the two seconds and the flag is still false, the stream is closed, set to null and I don't load the map service. I then notify the end user that the service not available. Seems like there should be a MUCH easier way to do this. Hopefully I've missed something elementary. Have a great New Year's all. -r
... View more
12-29-2010
02:07 PM
|
0
|
0
|
687
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-21-2020 10:08 AM | |
| 1 | 05-30-2018 02:39 PM | |
| 5 | 02-13-2015 10:07 AM | |
| 3 | 12-03-2019 09:48 AM | |
| 1 | 10-22-2015 01:15 PM |
| Online Status |
Offline
|
| Date Last Visited |
03-24-2021
06:29 PM
|