POST
|
Is this a custom geoprocessing service that you created? To improve/modify error handling and their associated error messages, you may be able to modify the Python script that gets executed by the GP service. Sometimes Esri error messages appear when a tool simply fails; the resulting error message is something that is embedded into the Esri code for that tool and it can't be changed. I think most of the time, we're all at the mercy of the Esri error reportnig that is part of the application code. We've all seen the dreaded "General System Failure" or "99999" error message from Esri tools that haunt us from day to day. Other times, if there is a failure in your own script somewhere, you may be able to provide a clearer error message by inserting the arcpy.AddWarning or arcpy.AddError module throughout the code. Depending on the version of ArcGIS you are using, these links may be helpful for you: http://help.arcgis.com/en%20/arcgisdesktop/10.0/help/index.html#/AddError/000v00000003000000/ http://resources.arcgis.com/en/help/main/10.1/index.html#/AddError/018v0000005w000000/ http://resources.arcgis.com/en/help/main/10.2/index.html#/AddError/018v0000005w000000/ Think of these as custom error reporting where you, as the script programmer, anticipate which issues may occur based on script input and then modify your code to better communicate those issues to the end user. I'm not sure if this answers your question, but I understand that error reporting can be frustrating. Is ther any way to disable error mesage?
... View more
12-25-2013
04:48 AM
|
0
|
0
|
714
|
POST
|
Anjelina, No, I told you I was not 100% sure... I don't use the GP widget at all so I am not sure that the GPInputStringParamItemRenderer.mxml is the correct file to changed based on your screenshot. If the widget is not displaying anything now, then you most likely have an error in the code. Do you not see anything displayed in the problems window? No, there is not any thing in the problem window and flex application ran ok. What should I do?
... View more
12-11-2013
05:05 PM
|
0
|
0
|
558
|
POST
|
Anjelina, This is what I THINK (not 100% sure) you need to update: GPInputStringParamItemRenderer.mxml <?xml version="1.0" encoding="utf-8"?>
<!--
///////////////////////////////////////////////////////////////////////////
// Copyright (c) 2011 Esri. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
///////////////////////////////////////////////////////////////////////////
-->
<s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
width="100%"
autoDrawBackground="false">
<fx:Script>
<![CDATA[
import mx.collections.ArrayList;
import spark.core.NavigationUnit;
import widgets.Geoprocessing.parameters.IGPParameter;
[Bindable]
private var hasChoiceList:Boolean;
private var param:IGPParameter;
override public function set data(value:Object):void
{
super.data = value;
if (value)
{
param = value as IGPParameter;
hasChoiceList = (param.choiceList && param.choiceList.length > 0);
if (hasChoiceList)
{
choiceSelection.dataProvider = new ArrayList(param.choiceList);
setChoiceListDefaultValue(param.defaultValue as String);
choiceSelection.dataGroup.horizontalScrollPosition += choiceSelection.dataGroup.getHorizontalScrollPositionDelta(NavigationUnit.END);
}
}
}
private function setChoiceListDefaultValue(defaultValue:String):void
{
var defaultValueIndex:int = param.choiceList.indexOf(defaultValue);
if (defaultValueIndex > -1)
{
choiceSelection.selectedIndex = defaultValueIndex;
}
}
protected function updateDefaultValueWithChoice():void
{
param.defaultValue = choiceSelection.selectedItem;
}
]]>
</fx:Script>
<mx:FormItem width="100%"
label="{data.label}"
required="{data.required}">
<s:TextInput width="100%"
includeInLayout="{!hasChoiceList}"
text="@{data.defaultValue}"
toolTip="{data.toolTip}"
visible="{!hasChoiceList}"/>
<s:DropDownList id="choiceSelection"
width="100%"
change="updateDefaultValueWithChoice()"
includeInLayout="{hasChoiceList}"
requireSelection="true"
visible="{hasChoiceList}"/>
</mx:FormItem>
</s:ItemRenderer> Hi It dont work. When I add this changes, geoprocessing widget dont show any things. Are you sure about this line?: choiceSelection.dataGroup.horizontalScrollPosition += choiceSelection.dataGroup.getHorizontalScrollPositionDelta(NavigationUnit.END); Regards
... View more
12-11-2013
07:57 AM
|
0
|
0
|
558
|
POST
|
Im looking for a solution to align left the horizontal slider position. Please help me. Regards
... View more
12-11-2013
06:08 AM
|
0
|
0
|
558
|
POST
|
Anjelina, Are you just talking about the position of the horizontal slider or what exactly? Yes, horizontal slider position is my request.
... View more
12-11-2013
04:55 AM
|
0
|
0
|
558
|
POST
|
Hi Rscheitlin My config.xml has "<layoutdirection>rtl</layoutdirection>" configuration. Because of this configuration my geoprocessing widget show the drop down lists, right to left by default. An example is below picture: [ATTACH=CONFIG]29756[/ATTACH] As you see the items align right (Shown by red arrow). But it should be on the left, like this: [ATTACH=CONFIG]29757[/ATTACH] What should I do? please help me. Regards A.ponker
... View more
12-11-2013
01:46 AM
|
0
|
1
|
2919
|
POST
|
Hi I have a geoprocessing web service, when my job has problem server return this message: esriJobFailed I need to customize above message to another message for example I need it show this message: Input coordinate is not valid. I dont know how can I change "esriJobFailed" message? please help me. Regards
... View more
12-08-2013
12:14 PM
|
0
|
3
|
2538
|
POST
|
Hi I have a geoprocessing web service, when my job has problem server return this message: esriJobFailed I need to customize above message to another message for example I need it show this message: Input coordinate is not valid. I dont know how can I change "esriJobFailed" message? please help me. Regards
... View more
12-08-2013
12:02 PM
|
0
|
0
|
264
|
POST
|
Hi I have a geoprocessing web service, when my job has problem server return this message: esriJobFailed I need to customize above message to another message for example I need it show this message: Input coordinate is not valid. I dont know how can I change "esriJobFailed" message? please help me. Regards
... View more
12-08-2013
11:56 AM
|
0
|
1
|
2214
|
POST
|
There is no straight-forward way to do this. You'll have to use Python. Build a custom script tool where: Your input spatial reference is a string parameter The parameter has Value List filter of the known projection names Inside your code, you do a look-up of the input projection name string and convert it to a spatial reference object. Call Make XY Event Layer passing in the spatial reference object you created. Any listeners out there have an existing script tool that does this? I have not. Please help me. Regards
... View more
12-03-2013
09:51 AM
|
0
|
0
|
726
|
POST
|
Still confused... Attached [ATTACH=CONFIG]29536[/ATTACH]is the Make XY Event Layer dialog. Click the icon next to Spatial Reference and you can choose the spatial reference. Are you saying that you don't want to use the Spatial Reference dialog? That you want to provide a fixed list of spatial references (say, 4 or 5 "standard" spatial references) that the user can pick from rather than using the Spatial Reference dialog? Yes, I,m going to add a fixed list of spatial reference. What should I do?
... View more
12-03-2013
09:20 AM
|
0
|
0
|
726
|
POST
|
I'm confused. The Make XY Event Layer tool has a spatial reference parameter that does exactly what you want -- allows the user of the tool to specify the spatial reference of the XY points in their input table. Reading "between the lines" it sounds as if you're in ModelBuilder. Perhaps you need to expose the spatial reference as a model parameter. See the help topics Exposing tool parameters as variables and Creating model parameters Hi I need value list for spatial reference in "Make XY Event..." tools. User should can select desired coordinate system. But by default this is not enable in this tools. Please help me more. Regards
... View more
12-03-2013
08:17 AM
|
0
|
0
|
726
|
POST
|
I,m using Extract Data, but I need this tools just generat shape file and generating .zip file is not good for my project. How can I change this tools to make a shape or GDB? I dont need .zip file. Please help me. Regards
... View more
12-03-2013
06:45 AM
|
0
|
1
|
668
|
POST
|
Hi I,m using "Make XY Event Layer", I need to add a drop down list to spatial reference parameter. for example if xy file of a user is in UTM, the user select UTM, if it's xy file is in Lambert, he select lambert from drop down list. There is not any solution for solving this problem. In model builder we can just select 1 coordinate system and when a client use this tool he enconter with 1 option like this: PROJCS['WGS_1984_UTM_Zone_38N',GEOGCS['GCS_WGS_1984',DATUM['D_WGS_1984',SPHEROID['WGS_1984',6378137.0,298.257223563]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]],PROJECTION['Transverse_Mercator'],PARAMETER['False_Easting',500000.0],PARAMETER['False_Northing',0.0],PARAMETER['Central_Meridian',45.0],PARAMETER['Scale_Factor',0.9996],PARAMETER['Latitude_Of_Origin',0.0],UNIT['Meter',1.0]];-5120900 -9998100 10000;-100000 10000;-100000 10000;0.001;0.001;0.001;IsHighPrecision What should I do? Regards A.ponker
... View more
12-03-2013
06:37 AM
|
0
|
6
|
2873
|
POST
|
Anjelina, These are the only languages available on the Route service that the directions widget uses:ar - Arabic de - German en - English es - Spanish fr - French he - Hebrew it - Italian ja - Japanese ko - Korean lt - Lithuanian nl - Dutch pl - Polish pt-BR - Brazilian Portuguese pt-PT - Portuguese (Portugal) ru - Russian sv - Swedish zh-CN - Simplified Chinese I,m working on a project for "UNICEF" that the aplication should have persian language. How can I translate or change direction messages? Please help me more. Regards A.ponker
... View more
10-26-2013
09:53 PM
|
0
|
0
|
340
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|