POST
|
I'm trying to execute PYTHON code using IDLE but it gives me this error : I'm using Arcgis 10.1, IDLE (Python 2.7) Traceback (most recent call last): File "C:/Saadia/SAFTOP/Parcelle et rivrains/simulation arcgis/python-script python/azimuth", line 6, in <module> cur = arcpy.UpdateCursor("Parcelles_class_FeatureToPoi3") File "D:\Program Files\ArcGIS\Server\arcpy\arcpy\__init__.py", line 1165, in UpdateCursor return gp.updateCursor(dataset, where_clause, spatial_reference, fields, sort_fields) File "D:\Program Files\ArcGIS\Server\arcpy\arcpy\geoprocessing\_base.py", line 364, in updateCursor self._gp.UpdateCursor(*gp_fixargs(args, True))) RuntimeError: ERROR 999999: Erreur lors de l’exécution de la fonction. Impossible d’acquérir un verrouillage. Impossible d’acquérir un verrouillage.
... View more
12-08-2014
09:08 AM
|
0
|
3
|
2248
|
POST
|
Thank you raffialexanian for replying, But where should i add it ?!! can you give me an example ?!!
... View more
06-07-2014
02:28 AM
|
0
|
0
|
393
|
POST
|
Hello, I'm using flex, Java and sql server for webmapping application and i'm trying to fill my combobox from database, this is the code, i think all is right but it doesn't work !!! can you help be to find what i'm messing !! so first this is the code of my class, it selects a column (Intitule Chapitre) from database public class RapportDao {
public Connection conectar(){
Connection cn = null;
String connectionUrl = "jdbc:sqlserver://localhost\\SQLEXPRESS;databaseName=mabase;user=sa;password=sa;";
try
{
Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
cn = DriverManager.getConnection(connectionUrl);
}
catch(Exception ex)
{
System.out.println("Error : " + ex.getMessage());
}
return cn;
}
public ArrayList<Rapport> Selection() {
Connection conn = conectar();
ArrayList<Rapport> list = null;
if (conn!=null){
try{
Rapport pr = null;
String a;
list = new ArrayList<Rapport>();
String sql = "select IntituleChap from Rapport";
Statement st = conn.createStatement();
ResultSet rs=st.executeQuery(sql);
while (rs.next())
{
a=rs.getString("IntituleChap");
pr = new Rapport();
pr.setIntituleChap(a);
list.add(pr);
}
}
catch(SQLException e ) {
// System.out.print(e.getMessage());
System.out.println("Error = " + e.getMessage());
}
}else
{
}
return list;
}
} and this is my actionscript code for combobox <s:Application 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:esri="http://www.esri.com/2008/ags"
minWidth="1000" minHeight="700" applicationComplete="application1_applicationCompleteHandler(event)">
<fx:Script>
<![CDATA[
import spark.components.ComboBox;
private function getTypeprojetResult(event : ResultEvent):void
{
//Alert.show(""+event.result);
}
protected function application1_applicationCompleteHandler(event:FlexEvent):void
{
RemoteRapportDao.Selection()
}
]]>
<fx:Declarations>
<s:RemoteObject id="RemoteRapportDao"
destination="RapportDaoDest"
fault="onFault(event)">
<s:method name="Selection" result="getTypeprojetResult(event);"/>
</s:RemoteObject>
</fx:Declarations>
<s:ComboBox id="cmb" x="10" y="13" width="162" labelField="IntituleChap" dataProvider="{RemoteRapportDao.Selection.lastResult}" /> RemoteRapportDao : is the id RemoteObject Selection() : my method on the service but at last i get this instead of labelfields [ATTACH=CONFIG]34401[/ATTACH] any one could help me ?
... View more
06-05-2014
03:37 PM
|
0
|
2
|
1020
|
POST
|
hi, i'm new in flex, and im working on Webmapping application using flex 4.6, java, and sql server as database, i'm just trying to make a communication between wigdets, i would like to copy each selected item of my combobox in widget1, and show it in the textinput in widget2, i just followed this steps explaind by Robert here http://forums.arcgis.com/threads/13863-Communication-between-widgets?highlight=widget+communication http://forums.arcgis.com/threads/13863-Communication-between-widgets?highlight=widget+communication but no luck, the problem that i'm facing is that i can't call components of the first widget (textinput, button....) from the second widget, they are often underlined !! at jump you found the change i made, Widget 1 var layoutArr:ArrayCollection = new ArrayCollection();
private function widgetCommunication1():void
{
addSharedData("Liste des chapitres", layoutArr);
} Widget 2 <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.*"
width="638" height="552" creationComplete="application1_applicationCompleteHandler(event)"
initialize="basewidget1_initializeHandler(event)">
<fx:Script>
<![CDATA[
import com.esri.viewer.AppEvent;
import mx.events.FlexEvent;
protected function basewidget1_initializeHandler(event:FlexEvent):void
{
ViewerContainer.addEventListener(AppEvent.DATA_PUBLISH, sharedDataUpdated);
}
private function sharedDataUpdated(event:AppEvent):void
{
var data:Object = event.data;
if (data.key == "Liste des chapitres")
{
dplist.selectedIndex = IntChap.text;
}
}
]]>
</fx:Script>
<s:DropDownList id="dplist" x="10" y="10" width="282" height="26" labelField="IntituleChap" dataProvider="{RemoteRapportDao.Selection.lastResult}" change="dplist_changeHandler(event)" ></s:DropDownList> IntChap wich is on red and bold is the textinput in widget1 , i got it underlined in widget 2, even if i made this communication any one can tell me what i'm messing ?? any help or code will be appreciated !
... View more
06-02-2014
01:30 AM
|
0
|
2
|
1714
|
POST
|
hello, i'm just trying to make communication between two widgets and execute this code but it doesn't work, private function widgetCommunication1():void
{
addSharedData("your key", shared data(ArrayCollection));
} Widget 2 Code:
<viewer:BaseWidget xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:viewer="com.esri.viewer.*"
initialize="basewidget1_initializeHandler(event)"
>
<fx:Script>
<![CDATA[
import com.esri.viewer.AppEvent;
import mx.events.FlexEvent;
protected function basewidget1_initializeHandler(event:FlexEvent):void
{
ViewerContainer.addEventListener(AppEvent.DATA_PUBLISH, sharedDataUpdated);
}
private function sharedDataUpdated(event:AppEvent):void
{
var data:Object = event.data;
if (data.key == "my key")
{
// do something..
}
}
]]>
</fx:Script> someone could help me !! i'm using flex 4.6 + Java
... View more
06-01-2014
08:58 AM
|
0
|
0
|
460
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|