POST
|
Hello Catia, I found this link from NY GIS Help Desk. Hope this helps.. http://helpdesk.gis.ny.gov/documents/ticket.cfm?ticket=2009-11-24-3771&.pdf
... View more
02-10-2015
10:09 AM
|
0
|
2
|
636
|
POST
|
Yes, the crossdomain.xml include secure="false". While testing we switched it the config to self signed certificate and it worked, but not sure what's wrong when using another SSL certificate. Thanks.
... View more
07-24-2013
10:27 AM
|
0
|
0
|
384
|
POST
|
Thank you for responding. We are using ArcGIS Server Authentication along with a SSL certificate that we purchased.
... View more
07-24-2013
09:16 AM
|
0
|
0
|
384
|
POST
|
Hello Frank, I was getting the same error when logging into a secure map service lately. The application worked just fine until we enabled HTTP and HTTPS on ArcServer. I have checked the crossdomain.xml files and everything is fine but do not know whats happening. If you figured this out could you please let me know. Thanks.
... View more
07-23-2013
07:26 AM
|
0
|
0
|
384
|
POST
|
Thank you for the help Robert. I will give it a try.
... View more
04-13-2012
08:42 AM
|
0
|
0
|
172
|
POST
|
Hello, I am trying to implement query functionality in the Locate Widget in Flex viewer 2.5. I want to geocode an address and then use the point to perform a identity / query on a different layer, and the result window should display the geocoded result along with the identity / query attributes. Could anyone guide me on how to implement the query task in the locate widget? I found a thread which address the same and also a flex application by Robert with the same functionality, but am not successful yet to make it work in flex viewer 2.5. I would appreciate any thoughts. http://forums.esri.com/Thread.asp?c=158&f=2421&t=287256#892446. http://gis.calhouncounty.org/SchoolDistricts/ Thanks,
... View more
04-12-2012
02:49 PM
|
0
|
2
|
2351
|
POST
|
Oh, solved the above. What I did was assign the IIS_users permissions to the Arcgis_Security app.. in IIS. And it worked. Got the hint from one of the previous replies in the thread. Thanks! And to get the siteUsage.log working, I had to give write permissions to IIS_users for that file. Hello, I have assigned the write permissions to IIS users and have changed the URL to my server. Still I am getting the "Internal Database Error" message. Could anyone help me with this. Thanks,
... View more
10-26-2011
01:25 PM
|
0
|
0
|
296
|
POST
|
Hi Jon, Thanks for responding. I have tried <defaultselectionoption> in my XML but its still doing the same. I have tried commenting few lines and its working, but initially its not highlighting the graphical search state when it loads but displays later after performing some operation. currentState="graphicalInput"
----
//defaultSelectionOption = configXML.defaultselectionoption || "graphicalInput";
//currentState = defaultSelectionOption;
... View more
05-19-2011
09:11 AM
|
0
|
0
|
477
|
POST
|
Robert, I also want to bring it to your notice that after performing graphical search and clearing the results, the icon underlined is text search but the active state shown is graphical search. And with the text search after clearing the results, results icon is underlined but the displayed state is text input. I wonder whether anyone have noticed this or its just happening in my app. Please see the attached images. Thanks! *** I have figured this out, and it was an error at my end... I have changed the order of the icons to display grid table icon at the end, and it is the reason for the error. If you don't mind could you explain this to me. Thanks. if(!disGra)
wTemplate.addTitlebarButton(ICON_URL + "i_searchgraphical.png", graphicalsearchLabel, showStateGraphicalSearch);
if (configSearchText.length && disText != true)
wTemplate.addTitlebarButton(ICON_URL + "i_searchtext.png", textsearchLabel, showStateTextSearch);
//if (configSpatialSearchLayers.length && disSpat != true)
// wTemplate.addTitlebarButton(WIDGET_URL + "i_searchspatial.png", spatialsearchLabel, showStateSpatialSearch);
if(!disGrid){
wTemplate.addTitlebarButton(ICON_URL + "i_table.png", resultsLabel, showStateResults)};
wTemplate.addTitlebarButton(ICON_URL + "i_table2.png", gridresultsLabel,showGridResults,false);
... View more
05-18-2011
01:02 PM
|
0
|
0
|
604
|
POST
|
Jim, Hopefully version 2.2.5 will come out today and it will have all of this configurable. i.e disablebuttons, defaultselectionoption, toleranceforpointgraphicalselection, text search by selecting from valid domain values in a combobox when this option is set in config. If you need it fixed right away then the code change would be: <viewer:BaseWidget xmlns:esri ="http://www.esri.com/2008/ags"
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:mxeffects ="com.adobe.ac.mxeffects.*"
xmlns:viewer ="com.esri.viewer.*"
xmlns:Search ="widgets.eSearch.*"
x="600" y="300"
currentState="textInput"
widgetConfigLoaded="init()">
<viewer:states>
<s:State name="graphicalInput"/>
<s:State name="textInput"/>
<s:State name="spatialInput" />
<s:State name="resultsList"/>
</viewer:states> Use one of the other State names instead. Hi Robert, I am using your enhanced search widget 2.3.1 and was trying to set the default state to graphical input instead of text input. I have changed the code as currentState="graphicalInput"
private var lState:String = "graphicalInput";
----and also----
defaultSelectionOption = configXML.defaultselectionoption || "graphicalInput"; I can see graphical input when the map loads, but it immediately switches back to text input. May be I am missing something. Could you please let me know if I have to make changes any where else in the code. Thanks,
... View more
05-18-2011
09:55 AM
|
0
|
0
|
604
|
POST
|
Philipp, I have downloaded the source code for PDF Widget and incorporated the AlivePDF.swc to libs. The widget is implemented error free, but does not proceed further after I click on the "Generate PDF" button. Could you post the latest widget source code? nshaukat Hey Nadeem, Did you ever get this to work? I am having the same problem with the widget, it is not doing anything, when i click on Generate PDF. Thanks.
... View more
12-06-2010
07:26 AM
|
0
|
0
|
411
|
POST
|
Hi Robert, I've tried to use your code to expand my TOC in layer list widget, but nothing happens. I can't get to expand my TOC automatically, shall I have to add anything in config.xml too for this to work? Thanks. EDIT: Got it. worked after using validateNow() function. Melissa, If you have the FlexViewer2.0 source code than you just have to add some code to the LayerListWidget.mxml.
<?xml version="1.0" encoding="utf-8"?>
<!--
////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2010 ESRI
//
// All rights reserved under the copyright laws of the United States.
// You may freely redistribute and use this software, with or
// without modification, provided you include the original copyright
// and use restrictions. See use restrictions in the file:
// <install location>/License.txt
//
////////////////////////////////////////////////////////////////////////////////
-->
<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:viewer="com.esri.viewer.*"
xmlns:toccomp="com.esri.viewer.components.toc.*"
widgetConfigLoaded="init()"
x="600"
y="400">
<fx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
import com.esri.viewer.components.toc.tocClasses.TocMapLayerItem;
private function init():void
{
toc.map = map;
toc.isMapServiceOnly = false; //gotta get this from the config file
toc.excludeLayers = getExcludeLayers();
toc.excludeGraphicsLayers = true;
callLater(expandTOC);
}
private function expandTOC():void
{
toc.openItems = toc.dataProvider.source;
for each(var item:TocMapLayerItem in toc.openItems) {
if (item.isTopLevel()){
toc.expandItem(item, true);
}
}
}
private function getExcludeLayers():ArrayCollection
{
var result:ArrayCollection = new ArrayCollection();
if (configData && configData.basemaps)
{
// exclude basemaps
for (var i:int = 0; i < configData.basemaps.length; i++)
{
result.addItem(configData.basemaps.label);
}
}
if (configXML)
{
// exclude these layers
var layers:XMLList = configXML.excludelayer as XMLList;
for (var j:Number = 0; j < layers.length(); j++)
{
result.addItem(layers .toString());
}
}
return result;
}
]]>
</fx:Script>
<viewer:WidgetTemplate id="wTemplate"
height="300"
width="300">
<viewer:layout>
<s:VerticalLayout gap="8" paddingTop="4"/>
</viewer:layout>
<s:Label text="Layer Visibility"/>
<toccomp:TOC id="toc"
height="100%"
width="100%"/>
</viewer:WidgetTemplate>
</viewer:BaseWidget>
... View more
11-29-2010
02:12 PM
|
0
|
0
|
74
|
POST
|
Hey Mattias, I did those changes too... and I am having the same problem as you do... nothing shows up. @Matt Williams: Thanks for your response.
... View more
10-28-2010
07:31 AM
|
0
|
0
|
253
|
POST
|
Hi, Does anyone know how to apply constrained Map Extent in Flex Viewer 2.1. I found one implemented on Sample Flex Viewer 1.3. http://forums.esri.com/Thread.asp?c=158&f=2421&t=295234&mc=0. But not sure how to apply in 2.1, getting so many errors. Thanks.
... View more
10-25-2010
03:05 PM
|
0
|
3
|
1333
|
POST
|
Hi, I was trying to implement radio buttons in the layer list instead of check boxes in Flex Viewer 2.1. I have made some changes in my LayerListWidget.mxml. I am not getting any results(see image). Probably my code is a blunder. could anyone please let me know how to make this work. Thanks for the help.
<?xml version="1.0" encoding="utf-8"?>
<!--
////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2010 ESRI
//
// All rights reserved under the copyright laws of the United States.
// You may freely redistribute and use this software, with or
// without modification, provided you include the original copyright
// and use restrictions. See use restrictions in the file:
// <install location>/License.txt
//
////////////////////////////////////////////////////////////////////////////////
-->
<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:viewer="com.esri.viewer.*"
xmlns:toc="com.esri.viewer.components.toc.*"
x="600" y="400"
widgetConfigLoaded="init()">
<fx:Script>
<![CDATA[
import com.esri.ags.layers.Layer;
import mx.collections.ArrayCollection;
import mx.events.StateChangeEvent;
import spark.components.RadioButton;
[Bindable]
private var title:String;
private var layers:ArrayCollection;
private function init():void
{
toc.map = map;
toc.isMapServiceOnly = false; //gotta get this from the config file
toc.excludeLayers = getExcludeLayers();
toc.excludeGraphicsLayers = true;
if (configXML)
{
title = configXML.labels.title || "Map Layer List";
}
var rBFormat:TextFormat = new TextFormat;
rBFormat.font = "Arial";
rBFormat.size = "11";
rBFormat.color = "#000000";
rBFormat.bold = true;
for (var i:uint = 0; i < layers.length; i++)
{
radioBtn.groupName = "radioBtnGroup";
radioBtn.label = layers.name;
radioBtn.setStyle("textFormat","rBFormat");
radioBtn.value = i;
radioBtn.alpha = 1
radioBtn.height = 14
}
var radioBtn:RadioButton = new RadioButton;
radioBtn.groupName = "radioBtnGroup";
radioBtn.value = layers.length;
radioBtn.label = "None";
radioBtn.setStyle("textFormat","rBFormat");
//set the current selection to the "none" button
radioBtnGroup.selected = layers.length;
}
private function getExcludeLayers():ArrayCollection
{
var result:ArrayCollection = new ArrayCollection();
if (configData && configData.basemaps)
{
// exclude basemaps
for (var i:int = 0; i < configData.basemaps.length; i++)
{
result.addItem(configData.basemaps.label);
}
}
if (configXML)
{
// exclude these layers
var layers:XMLList = configXML.excludelayer as XMLList;
for (var j:Number = 0; j < layers.length(); j++)
{
result.addItem(layers .toString());
}
}
return result;
}
private function showStateToggleLayers(event:MouseEvent):void
{
viewStack.selectedIndex = 0;
}
private function radioClickHandler(event:ItemClickEvent):void
{
// update the visible layers to only show the layer selected
for(var i:uint = 0; i < layers.length; i++)
{
if (layers.name == event.label){
map.getLayer(layers.name).visible = true;
var lay:Layer = map.getLayer(layers.name);
}else{
map.getLayer(layers.name).visible = false;
}
}
}
]]>
</fx:Script>
<viewer:WidgetTemplate id="wTemplate" width="300" height="300">
<viewer:layout>
<s:VerticalLayout gap="8" paddingTop="15"/>
</viewer:layout>
<s:Label text="{title}"/>
<toc:TOC id="toc" width="100%" height="100%"/>
<s:RadioButton id="radioBtnGroup" />
<mx:ViewStack id="viewStack" width="100%" height="100%" creationPolicy="all" paddingTop="4" />
</viewer:WidgetTemplate>
</viewer:BaseWidget>
... View more
10-20-2010
12:34 PM
|
0
|
0
|
485
|
Online Status |
Offline
|
Date Last Visited |
11-19-2020
03:19 PM
|