POST
|
Hi, Has anyone have any experience using Knockout with Web AppBuilder? I manage to incorporate it into a custom widget and it works well. However, I ran into issue when applying Knockout for multiple custom widgets. Knockout is giving me the following error. Error: You cannot apply bindings multiple times to the same element. Although I am applying binding by using ko.applyBindings(VM, Element) with element being the container div of my custom widget. For some reason, it looks like the second parameter is being ignored. I embed most of my code in the startup routine of each widget. My goal is to using Knockout either with one viewmodel applied to the entire application (I don't know where to put this code) or multiple viewmodel bind to different elements (that doesn't seem to work either). Hopefully, someone can offer some advice on what is proper way to implement Knockout in the Web AppBuilder. Or using data binding with templating technique with another library similar to Knockout. Thanks. Steve Edit: After coming back to this, I still can't get Knockout to work. So I switched to Rivets.js and it seems to be able to bind different models to different custom widgets. So give Rivets a try if you want to employ data binding and templating in a custom widget.
... View more
10-21-2015
03:26 PM
|
0
|
0
|
2244
|
POST
|
Hi Andy, This 100,000 number is that configurable via ArcGIS Server? I didn't realize the tile package was returning up to 100,000 tiles from the World Street Map service. I got the offline function working but it was missing tiles from the last few zoom levels. Lucky I checked the forum. Steve
... View more
03-26-2015
04:56 PM
|
0
|
1
|
1377
|
POST
|
I assume you are developing an Add-In tool in ArcMap. The following are some high level steps you probably want to do. 1) From your IMap you can get the parcel layer in TOC by index or enumeration. Find the layer and cast it to IFeaturelayer. 2) IFeaturelayer has a mehtod called Search which you will need later. 3) You tool has a mouse down event which has parameter of XY (this is the screen display XY). 4) Inside the mouse down event handler you will need to transform XY to map XY. Look at IScreenDisplay, you can get there using your map document's ActiveView property. 5) With map XY, you will be able to create a point geometry. 6) Use this point in a ISpatialfiler. 7) Pass ISpatialfilter into the Search method from step 2 to get a Feature cursor. 😎 Cycle thourgh the feature cursor because there could be 0 to many polygons selected. 9) Find value of the feature by passing in index of the field you're looking for. 10) Use the value as you wish to display to GIS Technician.
... View more
11-21-2013
10:31 AM
|
0
|
0
|
249
|
POST
|
Yes, it's possible. I am not sure if it's the right way or not. If someone has something better please let me know. I set one launch condition and 2 registry search First reg search searches for this key for 32 bit OS - SOFTWARE\ESRI\Desktop10.1 with property name, IS32AGS101 Second reg search searches for this key for 64 bit OS - SOFTWARE\Wow6432Node\ESRI\Desktop10.1 with property name, IS64AGS101 In the condition property of the launch condition I do something like this, (IS32AGS10="10.1" OR IS64AGS101="10.1"). What you are doing is checking if the key value 10.1 exists. If so then let the install continue otherwise display the custom message and stop the install. Hope that helps. Steve
... View more
01-23-2013
03:31 PM
|
1
|
0
|
264
|
POST
|
Hi, I am not sure it's doable. If you want your buffer polygon to show up in TOC but without writing to disk, try looking at the InMemoryWorkspaceFactoryClass class to create a temp workspace to put your features in. Steve
... View more
01-18-2013
03:16 PM
|
0
|
0
|
253
|
POST
|
If you are using ArcObjects then why not use ESRI.ArcGIS.Geoprocessing library? Many of the tools available in ArcToolbox are also available via ArcObjects using this library. Check the sample code below for reference. On a side note, I thought Python has a very robust GUI library and I would hope combobox is one of the UI controls available. So you could possibly do what you want in Python also but I don't have much experience in that. Dim pGP As Geoprocessor = New Geoprocessor
Dim pFC2FC As FeatureClassToFeatureClass = New FeatureClassToFeatureClass
Dim pWS As IWorkspace = m_pGbWSF.Open(m_Conn.pgdbProperty, 0)
Dim pEnumDataset As IEnumDataset
Dim pDataset As IDataset
Dim pFC As IFeatureClass
Dim pQfilter As IQueryFilter = New QueryFilter
Try
pEnumDataset = pWS.Datasets(esriDatasetType.esriDTFeatureClass)
pQfilter.WhereClause = Svc_CatchBasin.c_Fld_Appstatus & " in (1,2,3)"
pEnumDataset.Reset()
pDataset = pEnumDataset.Next()
'Convert any point not 0 to the local archive PGB
Do Until pDataset Is Nothing
If pDataset.Name = "CATCH_BASIN_PT" Then
pFC = pDataset
If pFC.FeatureCount(pQfilter) > 0 Then
pFC2FC.in_features = pFC
pFC2FC.out_path = m_Conn.archiveProperty.GetProperty("DATABASE")
pFC2FC.out_name = "CB_" & Format(Microsoft.VisualBasic.Now, "MMddyy_hhmmss").ToString
pFC2FC.where_clause = "[" & Svc_CatchBasin.c_Fld_Appstatus & "]" & " in (1,2,3)"
pGP.Execute(pFC2FC, Nothing)
Me.m_ArchiveDone = True
End If
Exit Do
End If
pDataset = pEnumDataset.Next()
Loop
Catch ex As Exception
Me.m_ArchiveDone = False
MsgBox(ex.Message, MsgBoxStyle.Critical, "Error - Synchronize (ArchiveComplete)")
Finally
End Try
... View more
01-03-2013
12:42 PM
|
0
|
0
|
216
|
POST
|
Hi, Your work variable should be of type IWorkspace. On that interface is the DatasetNames method which returns the IEnumDatasetName which is of type IDatasetName. Now you have the names for all your featureclasses so you can loop though them and sent the name to your IFeatureWorkspace.Openfeatureclass method. Hope that helps. Steve
... View more
12-11-2012
03:04 PM
|
0
|
0
|
300
|
POST
|
From what you're describing make sure you destination featureclass has the same spatial domain and coordinate system is the same as your source featureclass. I don't know if you need the spatialreference line.
... View more
12-05-2012
03:29 PM
|
0
|
0
|
193
|
POST
|
According to the documentation. The interface you're working with are under ESRI.ARCGIS.GISCLIENT lib. Do you have that lib properly referenced in your project?
... View more
11-19-2012
03:32 PM
|
0
|
0
|
339
|
POST
|
You want to set up the layer's feature selection changed event (IFeatureLayerSelectionEvents) to let you know users made a selection change. In the event handler routine you would refresh the form with attributes from the new feature.
... View more
10-25-2011
04:13 PM
|
0
|
0
|
703
|
POST
|
If you looked at the example you will notice two options for the application. GPS device and simulator. Look at the GPS device portion. It will show you how to create a GPS connection, test it to make sure it's working, and set it to a GPS feed. With the GPS feed, you can set it to the realtimefeed in the realtimefeedmanager instead of using the simulated feed. I know the example is for ArcEngine 9 version and in VB6 but the way to connect to a GPS device, get the feed and display on the map is probably the same in ArcEngine 10. Obviously, I could be wrong since I did this in ArcEngine 9.3.1 but I am willing to bet you can use the same approach in ArcGIS 10.
... View more
09-21-2011
08:54 AM
|
0
|
0
|
398
|
POST
|
Does your code work for another CSV file? If so then you probably need to examine your Geocoding CSV file to make sure there is no special character or file permission issues that is causing your C# exception.
... View more
09-20-2011
12:45 PM
|
0
|
0
|
552
|
POST
|
Check out this sample code from ESRI. I used it as reference for a project. The code is in VB6 so you will need to convert it to .Net code. http://resources.esri.com/help/9.3/ArcGISEngine/com_cpp/samples/com/Applications/GPSNavigator/faf0845a-931d-4c2f-bb99-bb0bf6776e7f.htm
... View more
09-20-2011
12:34 PM
|
0
|
0
|
398
|
POST
|
Do you know which line is causing ArcMap to crash? Most likely the culprit is in your button click routine. If you don't know which line you can try the following to isolate the error. (1) Use a try catch in your button click routine to capture the exception. (2) Set a break point on the catch of the try catch to debug it so you can identify the exception. (3) If the exception is not clear then set a break point at the beginning of the routine and run it in debug mode to identify the line that is crashing ArcMap.
... View more
05-05-2011
01:54 PM
|
0
|
0
|
329
|
POST
|
Not sure if you intent to do this but you are missing a "=" in the SQL string. SrchStr = "PARCEL_ID='" & sSection & "'AND TWP = '" & sTwp & "'AND TWPD='" & sTwpD & "'AND RNG='" & sRng & "'AND RNGD='" & sRngD & "'"
... View more
04-29-2011
03:40 PM
|
0
|
0
|
329
|
Title | Kudos | Posted |
---|---|---|
1 | 01-23-2013 03:31 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|