the doc was empty, try loading it into a txt file
Golden, this is probably a new thread, but I will try to help you here. A good test to see if the URL is formatted correctly is try and access it from your browser, if you can get the image to show in a browser then you know what the URL should be. In my application I used textinput boxes to check on the URL format as it was being passed through the different stages of construction. The database that contained the image_path field had back slashes not forward slashes, and had extra spaces on the end. So to follow my workflow the first text input box imagetext would show the URL being http://gis.vernon-ct.gov/image/11000\11347.jpg (it would have like 10 extra spaces on the end also). Not sure how much of my code I gave you, but I had an itemclick function that reformatted the URL, and dumped the text in imagetexturl. The end result would be http://gis.vernon-ct.gov/image/11000/11347.jpg . If you copy and paste this text into browser the image will show up. I also created a virtual directory in IIS that pointed to my image folder. So to start you need to make sure you have a working URL string and then reconstruct that string in flashbuilder. Aaron
Is this application running on your local computer? I have IIS installed on my local machine and created a virtual directory that points to the bin-debug folder of my project, I changed the output folder URL and the run/debug setting URL path to launch. So when I am testing on my local computer the application launches in a url which is http://localhost/NewViewer2.4/index.html, I can then add the search parameters http://localhost/NewViewer2.4/index.html?search=08-0025-00009 and if everything is configured correctly the search is executed. With the 2.4 version, as long as the search was configured correctly the URL string will work
I followed the instructions in the documentation. Are you using the enhanced search widget 2.4? If so there are no code changes to the flexviewer, everything should be configured from the search widget xml. What URL string are you using to try and search?Aaron
Golden,If you are using the 2.4 api, then I would use Robert's new enhanced search widget, you can find it HERE. He was able to integrate all the code needed to accomplish exactly what was done in this forum, everything is outlined in the documentation included in the download. I am using the latest version and it was easy to configure. If you do use Robert's widget make sure you rate it on the download pageAaron
There was a previous thread on the old forum to pass search parameters into a url string,http://forums.esri.com/Thread.asp?c=158&f=2421&t=294907&mc=104#msgid925229I would like to see if anyone has accomplished this for the new viewer. I have a non-spatial flex application that runs a query on a ArcServer service and returns the results into a datagrid, I then have a button that exports the results into a pdf report. I would like to have another function that takes a value from the datagrid, populates it into a URL string that opens a new browser and zooms to that selected feature. thanks, Aaron
Sandra,//Add this line to the postConfigHandler function_configData = configData;//After this line var configData:ConfigData = event.data as ConfigData;
//Add this private var to the top with other private vars private var _configData:ConfigData; //Add this line to the postConfigHandler function _configData = configData; //After this line var configData:ConfigData = event.data as ConfigData;
public function queryPPIN(sPPIN:String):void { //hide infowindow if any map.infoWindow.hide(); queryLayer = "http://gis.vernon-ct.gov/ArcGISweb/rest/services/Flex_Vernon/MapServer/10"; queryExpr = "Parcels.DBO.Parcels.MBL LIKE '[value]%'"; queryTitleField = "PARCEL ID"; queryLinkField = ""; var queryTask:QueryTask = new QueryTask(queryLayer); if (configSearchText.useproxy && configData.proxyUrl) { queryTask.proxyURL = configData.proxyUrl; } var query:Query = new Query(); var pExpr:String = sPPIN.toUpperCase(); var expr:String = queryExpr.replace("[value]", pExpr); query.where = expr; var strFlds:String = "field1,field2,field3"; var flds:Array = strFlds.split(","); query.outFields = flds; query.returnGeometry = true; query.outSpatialReference = map.spatialReference; queryTask.useAMF = false; // TODO: remove when a better solution (for checking 9.3 vs 10 AGS) is ready queryTask.execute(query, new AsyncResponder(onResult, onFault, queryFields)); showMessage(loadingLabel, true); showStateResults(); // on result function onResult(featureSet:FeatureSet, token:XMLList = null):void { try { searchResultAC = createSearchResults(featureSet, token); // share data addSharedData(widgetTitle, searchResultAC); showMessage(selectionLabel + " " + featureSet.features.length, false); } catch (error:Error) { showMessage(error.message, false); } } //on fault function onFault(info:Object, token:Object = null):void { showMessage(info.toString(), false); } }
var strFlds:String = "field1,field2,field3";
var i:Number = 0; queryLayer = "http://gis.vernon-ct.gov/ArcGISweb/rest/services/Flex_Vernon/MapServer/10"; queryExpr = "Parcels.DBO.Parcels.MBL LIKE '[value]%'"; queryFields = configSearchText.fields; queryTitleField = "PARCEL ID";
var i:Number = cboLayerText.selectedIndex;
var i:Number = 0;
public function queryPPIN(xPPIN:String):void
function onFault(info:Object, token:Object = null):void
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.