|
POST
|
The problem is due to the login screen, since if I remove the login screen by reverting the index.mxml back to the original, the application loads as expected, i.e. at initial extent as set in the config.xml. For some reason the application does not load the map at initial extent from the config.xml in 2.4 when the index.mxml is altered as it is with the login screen. It works fine in 2.3. Perhaps someone from the ESRI flex team can offer some insight. Thanks, Jim Faron
... View more
09-20-2011
05:09 AM
|
0
|
0
|
835
|
|
POST
|
Andrew, I am finding that the Login Screen does not function as expected in 2.4 in Flashbuilder 4.5. For some reason that I can't yet figure out, the config.xml is not loaded the same way as in the earlier sdk after the login is completed, and thus my initial extent of the base map is not honored, and the viewer loads with my map fully zoomed in to the lowest scale, i.e. highest zoom. I wonder if anyone else has this experience? Thanks, Jim Faron
... View more
09-19-2011
01:57 PM
|
0
|
0
|
835
|
|
POST
|
If anyones interested, the fix for the issue that I was (inadequately) describing is as follows: to remove the link text from the eSearch Widget Popup, simply find this line in the searchWidget.mxml popUpInfo.description += "<br/><a href='{link}'>{link}</a>" Then, you can hard code as follows, so as affect each search layer differently, if you so choose: else
{
// popUpInfo.description += "<br/><a href='{link}'>{link}</a>"//removed from Roberts original
if (cboLayerText.selectedLabel == "Schools"){ //added to modify popup link text
popUpInfo.description += "<br/><a href='{link}'>Facility Website</a>"}
else if (cboLayerText.selectedLabel == "TCAD Parcels"){ //added to modify popup link text
popUpInfo.description += "<br/><a href='{link}'>TCAD Website</a>"}
}
}
return popUpInfo;
} Before image is in my first post, solution image attached to this post. The text Facility Website is now the link, and I have the icon link in the search results. Thanks, Jim Faron
... View more
07-27-2011
11:41 AM
|
0
|
0
|
1005
|
|
POST
|
Robert, Thanks for the response, and for this fantastic widget. I have customized the popup for this layer in the viewer using the viewers new popup configuration, and will look into the code to minimize the pop up behavior for this particular layer in the eSearch widget. It would be a great enhancement at some time to have the capability/choice of turning off or on the popups for a particular layer in the eSearch widget, especially now that the viewer accommodates custom popups via the config popups. Thanks again for all that you do, Jim Faron
... View more
07-27-2011
05:42 AM
|
0
|
0
|
1005
|
|
POST
|
Robert, Actually the icon appears in the results even with the gridfieldonly=true. What I would like to do is remove the web address, i.e. the link field value, from appearing in the popup, but retain the icon link in the result, if that is possible. Thanks, Jim Faron
... View more
07-27-2011
04:35 AM
|
0
|
0
|
1005
|
|
POST
|
For some reason the link text displays in the popup of a layer result in the eSearch Widget. Screenshop attached. This is the relevant portion of the eSearch.xml: <configuration>
<layers>
<layer>
<definitionexpression></definitionexpression>
<enableexport>true</enableexport>
<name>Schools</name>
<url>http://myserver/ArcGIS/rest/services/Maps/DistrictBasemap/MapServer/26</url>
<graphicalsearchlabel>Use one of the graphical search tools to select school</graphicalsearchlabel>
<spatialsearchlayer>true</spatialsearchlayer>
<titlefield>SCHOOL</titlefield>
<linkfield>URL</linkfield>
<icon isfield="false">assets/images/i_linkglobe1.png</icon>
<fields all="false">
<field name="NAME" alias="NAME" gridfield="true"/>
<field name="FACILITY" alias="Facility" gridfield="true"/>
<field name="CODE" alias="Code" gridfield="true"/>
<field name="ADDRESS" alias="Address" gridfield="true"/>
<field name="ZIP" alias="Zip" gridfield="true"/>
<field name="CAPACITY" alias="Capacity" gridfield="true" gridfieldonly="true"/>
<field name="ENROLLMENT" alias="Enrollment" gridfield="true" gridfieldonly="true"/>
<field name="TEA_2010" alias="TEA 2010" gridfield="true"/>
<field name="TEA_2009" alias="TEA 2009" gridfield="true" gridfieldonly="true"/>
<field name="TEA_2008" alias="TEA 2008" gridfield="true" gridfieldonly="true"/>
<field name="URL" alias="Facility Website" hyperlinkgridfield="true" hyperlinkaliastext="Facility Website" gridfieldonly="true"/>
</fields>
<zoomscale>8000</zoomscale>
</layer> I want the link icon to work in the result, and it would be great if the icon appeared in the popup. Is there something that I am missing in the xml? Thanks, Jim Faron
... View more
07-26-2011
02:05 PM
|
0
|
7
|
1355
|
|
POST
|
Andrew, Thank you for the script! It works perfectly. Jim Faron Austin Independent School District
... View more
05-16-2011
07:18 AM
|
0
|
0
|
1481
|
|
POST
|
I was able to successfully implement Andrew's asp.net web service to complete the login process. But, for the sake of demonstration, I would like to create several users in the users.xml, and return a value unique for each one, by for example using the GetUser function in vb. I am not a vb programmer, and thus would appreciate any help in modifying the Service.vb to return a value from the user's profile after the user is validated. I know this is not a vb forum, just thought I might get lucky. The Flex angle is as follows: if I can return a value from the user profile, in my case a location code, I can assign it to a global variable in the index.mxml. I will then call that variable in a widget, in this case, to input the value in a feature's definition expression, so that only the data that the user is authorized to see will appear in the layer on the map. I can do this now if I input the literal, i.e. public var myGlobalVar:String = "142"; The Web Service is attached, from Andrews' download. ValidateUser will only return boolean value. Thanks, Jim Faron
... View more
05-13-2011
09:48 AM
|
0
|
0
|
1482
|
|
POST
|
I am basically following steps from this forum topic:http://forums.arcgis.com/threads/20965-LiveMapsWidget-doesn-t-follow-changes I changed TocItem.as (in both Robert's TOC Widget directory, and in src\components\tocClasses) as follows: public class TocItem extends EventDispatcher
{
public function TocItem(parentItem:TocItem = null)
{
_parent = parentItem;
ViewerContainer.addEventListener(AppEvent.PROGRAMATIC_LAYER_VISIBILITY_CHANGED, updateCheckBox);
}
private function updateCheckBox(event:AppEvent):void
{
if(this is TocLayerInfoItem)
{
var tli:TocLayerInfoItem = this as TocLayerInfoItem;
if(tli.layerInfo.name == event.data){
//setVisibleDirect(true);
setVisible(_visible ? false : true, true)
}
}
} Entered Public static const in AppEvent.as: public static const PROGRAMATIC_LAYER_VISIBILITY_CHANGED:String = "programicLayerVisibilityChanged"; Finally, called it in a widget as follows: private function test1(evt:Event):void
{
ViewerContainer.dispatchEvent(new AppEvent(AppEvent.PROGRAMATIC_LAYER_VISIBILITY_CHANGED, "Students"));
} The end result is that the TOC layer is not updated from visible=false to visible=true. I must be missing a step, or perhaps something changed in a version update? Thanks, Jim Faron Austin Independent School District
... View more
05-03-2011
09:22 AM
|
0
|
0
|
1850
|
|
POST
|
Robert, I saw that toward the beginning of that insert you instruct the following: widget = widgetTable.find(id) as IBaseWidget;
//add back the container if exists
//if using FlexViewer 2.1 than this line needs to be
//widget.setState(BaseWidget.WIDGET_OPENED);
widget.setState(WidgetStates.WIDGET_OPENED);
wgtContainer.focusWidget(id); So I changed the line in the else statement (where I was getting the error): else
widget.setState(WidgetStates.WIDGET_OPENED);
widgetTable.add(id, widget); The error is gone! Thanks again for your help, Jim Faron
... View more
04-19-2011
11:16 AM
|
0
|
0
|
1039
|
|
POST
|
Robert, I did miss an additional error (for some reason flashbuilder repeats the same error, same line for over 10 times): in the WidgetManager, I get error 1120:Access of undefined property Widget in this code: Widget.setState(WidgetStates.WIDGET_OPENED); I changed the W in widget to lower case 'widget.setState', and that fixed it, but then got the error 1120:Access of undefined property BaseWidget in this code towards the end of your insert: widget.setState(BaseWidget.WIDGET_OPENED);
... View more
04-19-2011
11:08 AM
|
0
|
0
|
1039
|
|
POST
|
Robert, No I didn't miss that. Inserted it on line 467, after the 'setAutoXY() function.
... View more
04-19-2011
10:43 AM
|
0
|
0
|
1039
|
|
POST
|
Robert, I am getting an error in the MapManager after inputting the code changes that are specified in the Enhanced Search Widget URL Search Configuration pdf. The error is to the line of code as follows from private function mapLoadComplete function utimerComplete: ViewerContainer.getInstance().widgetManager.getWidget(id); The error is 1061: Call to a possibly undefined method getWidget through a reference with static type com.esri.viewer.managers:WidgetManager Thanks, Jim Faron
... View more
04-19-2011
09:34 AM
|
0
|
42
|
6020
|
|
POST
|
Problem solved, sorry for the post. Fiddler revealed that my problem was elsewhere, and that I was passing a null value to the webservice on the second go round. Jim Faron
... View more
09-21-2010
02:12 PM
|
0
|
0
|
250
|
|
POST
|
I have a floating datagrid that has a Webservice as source of its dataprovider. The dataprovider is generated as contentHandler of the Webservice resultEvent. It works as expected the first time that the widget procedure runs( a buffer that returns results from a Graphic layer). But when I move the mapclick location to generate new results, I get Error #1069: Property item not found on String and there is no default value. The line that the error points to is busStopData = stop.getDataXML.lastResult.root.item , in the following code public function getRouteListData():void
{
stop.getDataXML.send();
}
private function contentHandler(evt:ResultEvent):void
{
busStopData = stop.getDataXML.lastResult.root.item;
} busStopData is the data provider of the datagrid. I can provide more code if needed, but I am wondering if this error in this context might be obvious to someone or something that is characteristic with refreshing dataproviders that might cause the error. Thanks, Jim Faron Austin Independent School District
... View more
09-21-2010
01:39 PM
|
0
|
1
|
579
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-09-2023 07:05 AM | |
| 1 | 06-25-2021 08:54 AM | |
| 1 | 06-25-2021 08:35 AM | |
| 1 | 06-27-2022 02:18 PM | |
| 8 | 06-24-2021 03:26 PM |
| Online Status |
Offline
|
| Date Last Visited |
04-13-2023
10:27 AM
|