|
POST
|
Naty, You can try to make private function activateSearchTool(value:String):void public instead of private then get the reference to the widget and call it.
... View more
07-19-2010
04:58 PM
|
0
|
0
|
489
|
|
POST
|
Jay, Just look in the DrawWidget mxml code and find the mx:ColorPicker 's and set their SelectedColor attribute to the default that you want like Tony said.
... View more
07-19-2010
04:51 PM
|
1
|
0
|
1036
|
|
POST
|
T Caa, I know personally I will not be releasing widgets for the Flex Viewer 2.0 until it is final and not in Beta. So you will probably just have to patiently wait for the Flex Viewer 2.0 final release.
... View more
07-19-2010
04:41 PM
|
0
|
0
|
393
|
|
POST
|
Michele, Nope not hard at all just comment out this line in the LiveMapsWidget.mxml in the esa widgets folder. wTemplate.addTitlebarButton(ICON_URL + "i_about.png", "AddService", showServices);
... View more
07-19-2010
04:33 PM
|
0
|
0
|
1194
|
|
POST
|
Deyan, Try this: <mx:Component className="MyInfoWindowRenderer">
<mx:VBox label="�?úáèòèÿ" backgroundColor="0xEEEEEE">
<mx:Label text="State Fips: {data.Descriptio}"/>
<mx:Label text="Abbreviation: {data.Where_}"/>
<mx:Label text="Abbreviation: {data.Info}"/>
<mx:Label click="navigateToURL(new URLRequest('{data.Photos}'), '_blank');" htmlText="Abbreviation: <u>{data.Photos}</u>"/>
</mx:VBox>
</mx:Component>
... View more
07-19-2010
03:43 PM
|
0
|
0
|
1374
|
|
POST
|
Naty, Can you explain in more detail what you are attempting to do?
... View more
07-19-2010
03:17 PM
|
0
|
0
|
1529
|
|
POST
|
Joshua, That code works fine for me are you sure your map's spatial reference and your map service are the same WKID?
... View more
07-19-2010
03:13 PM
|
0
|
0
|
674
|
|
POST
|
Guys, The Development team left out the navigation tools from the header in the beta release (to many other things to work on). If by final release they do not add them in then I will be releasing my custom header control widget that has them included. I'm not going to release any code for the beta AGS Flex API Map Viewer as there are to many things (code) in flux right now and it would be pointless. So just be a little patient until the viewer has gone final. There are many things to be fixed and added to the viewer right now.
... View more
07-19-2010
03:11 PM
|
0
|
0
|
2082
|
|
POST
|
Nadeem, The purpose for the "Direct Link to Sample" is for when you want to send someone a link to the sample. You will notice when you view the samples the particular sample that you choose is not indicated in the url so if you try to send some one the url they will only be directed to the main sample page and not that specific sample unless you copy the url after choosing the "Direct Link to Sample" button. The copy to clipboard is not longer needed in the new site, because when you copy the code now from the samples it maintains it's line break and formatting unlike the old site, when you DID NOT use the copy to clipborad the whole code was pasted with out line breaks or formatting.
... View more
07-11-2010
10:35 AM
|
0
|
0
|
378
|
|
POST
|
Naty, I am not sure what you have the function in your SearchWidget called... Try adding this function to your SearchWidget.mxml if you don't have it. //Add to your SearchWiget.mxml
//query parameter
public function querybmpid(sParam:String):void
{
var i:Number = cboLayerText.selectedIndex;
queryLayer = configSearchText.url;
if(queryExpr){
}else{
queryExpr = configSearchText.expr;
}
queryFields = configSearchText.fields;
queryTitleField = configSearchText.titlefield;
queryLinkField = configSearchText.linkfield;
if (queryLayer)
{
var queryTask:QueryTask = new QueryTask(queryLayer);
var query:Query = new Query();
var pExpr:String = sParam.toUpperCase();
var expr:String = queryExpr.replace("[value]", pExpr);
query.where = expr;
query.outFields = queryFields.split(",");
query.returnGeometry = true;
query.outSpatialReference = map.spatialReference;
queryTask.execute(query, new AsyncResponder(onResult, onFault));
showMessage(loadingLabel, true);
showStateResults(null);
// on result
function onResult(featureSet:FeatureSet, token:Object = null):void
{
try
{
var recAC:ArrayCollection = createRecordData(featureSet);
addSharedData(widgetTitle, recAC);
wRepeater.dataProvider = recAC;
showMessage(selectionLabel + " " + featureSet.features.length, false);
onLoadDone(null);
map.cursorManager.removeAllCursors();
}
catch (error:Error)
{
showMessage(error.message, false);
onLoadDone(null);
}
}
//on fault
function onFault(info:Object, token:Object = null) : void
{
onLoadDone(null);
showMessage(info.toString(), false);
}
}
} If you call it querybmpid like above it should match the MapManger.mxml of Sandra's that I told you to switch to. This is definitely not an easy piece of code to implement as there are many vital steps to the code that need to be in place and it helps if you try to understand the path that the code is taking. Basically the application loads and check is there is a URL Parameter for the search and if there is once the map is loaded then programatically launch the SearchWidget and pass that parameter to it and run the query. So the MapManager needs to check for the paramter, find the search widget and launch it and then when you have the reference to the searchwidget call the (what ever function i.e. queryPPIN) and execute the search. So the MapManager has to call a valid function in the SearchWidget.
... View more
07-11-2010
09:49 AM
|
0
|
0
|
1547
|
|
POST
|
Naty, So you are missing more code that was discussed in the original tread then. //In BaseWidget.as add
private static var _Widget:BaseWidget;
//Then in the initWidgetTemplate function add
_Widget = this; The QueryPID error means that you need to look in your SearchWidget for a public function called QueryPID. In the original thread I called it "public function queryPPIN(sParam:String):void". The CustomDraw error means that your MapManager code is now looking for my EnhancedDraw widget instead of the standard draw tool of ESRI's. That code was not in Sandra's MapManger code so If you are not using my custom draw widget than I would say look back up at the beginning of this thread and grab Sandra's MapManager code she posted.
... View more
07-11-2010
03:15 AM
|
0
|
0
|
1547
|
|
POST
|
Aaron, Well you inspired me to migrate my second SFV Widget to a non-SFV widget. It took me a while to figure out how to post this code on the new code gallery but maybe I got it right. Here is the non-SFV Enhanced Search Widget. http://www.arcgis.com/home/item.html?id=2d2ccae108b74b1ba8968e21c730bdb4
... View more
07-09-2010
07:41 PM
|
0
|
0
|
705
|
|
POST
|
Dasa, Brilliant... Works great. Thanks for your spot on support as always
... View more
07-09-2010
11:39 AM
|
0
|
0
|
2132
|
|
POST
|
stsunkara and Bjorn, stsunkara, sorry I misunderstood the documentation as well. Bjorn, Thanks for clarifying.
... View more
07-09-2010
11:00 AM
|
0
|
0
|
1119
|
|
POST
|
Dasa, The problem I have with the workaround is that it as causes Flash Filters to cease working. i.e. bevel filter on my sites header controller.
... View more
07-09-2010
10:57 AM
|
0
|
0
|
2132
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-14-2020 11:36 AM | |
| 16 | 05-17-2021 01:51 PM | |
| 1 | 07-06-2020 05:32 AM | |
| 1 | 07-10-2018 05:49 AM | |
| 9 | 01-28-2022 10:58 AM |
| Online Status |
Offline
|
| Date Last Visited |
a month ago
|