|
POST
|
Here is my code in JAVA. I tried same approach in .NET and it worked perfect. However, in JAVA ArcObjects, I am not getting any results, always giving 'null' for both "objectID" and "differenceRow". Could someone please help me. IVersionedWorkspace versionedWorkspace = new VersionedWorkspace(workspace); IVersion childVersion = versionedWorkspace.findVersion("SDE.Test"); IVersion parentVersion = versionedWorkspace.getDefaultVersion(); // Cast to the IVersion2 interface to find the common ancestor. IVersion2 childVersion2 = new IVersion2Proxy(childVersion); commonAncestorVersion = childVersion2.getCommonAncestor(parentVersion); // Cast the child version to IFeatureWorkspace and open the table. IFeatureWorkspace childFWS = new IFeatureWorkspaceProxy(childVersion); ITable childTable = childFWS.openTable(tableName); // Cast the common ancestor version to IFeatureWorkspace and open the table. commonAncestorFWS = new IFeatureWorkspaceProxy(commonAncestorVersion); commonAncestorTable = commonAncestorFWS.openTable(tableName); // Cast to the IVersionedTable interface to create a difference cursor. IVersionedTable versionedTable = new IVersionedTableProxy(childTable); differenceCursor = versionedTable.differences(commonAncestorTable, esriDifferenceType.esriDifferenceTypeInsert, null); int countChildRecords = childTable.rowCount(null); int countParentRecords = commonAncestorTable.rowCount(null); // Create output variables for the IDifferenceCursor.Next method and a FID set. IFIDSet fidSet = new FIDSet(); IRow[] differenceRow = null; int[] objectID = null; // Step through the cursor, showing the ID of each modified row. differenceCursor.next(objectID, differenceRow); Thanks & Regards, Vara Prasad.
... View more
05-13-2016
03:02 AM
|
0
|
1
|
1181
|
|
POST
|
Hi Harrison, I am implementing the same thing in JAVA. I have implemented same code you quoted above both JAVA and .NET. I could able to get correct results in .NET. However, I am not getting any results in JAVA. Below is my code in JAVA. Could you please help me out. IVersionedWorkspace versionedWorkspace = new VersionedWorkspace(workspace); IVersion childVersion = versionedWorkspace.findVersion("SDE.Test"); IVersion parentVersion = versionedWorkspace.getDefaultVersion(); // Cast to the IVersion2 interface to find the common ancestor. IVersion2 childVersion2 = new IVersion2Proxy(childVersion); commonAncestorVersion = childVersion2.getCommonAncestor(parentVersion); // Cast the child version to IFeatureWorkspace and open the table. IFeatureWorkspace childFWS = new IFeatureWorkspaceProxy(childVersion); ITable childTable = childFWS.openTable(tableName); // Cast the common ancestor version to IFeatureWorkspace and open the table. commonAncestorFWS = new IFeatureWorkspaceProxy(commonAncestorVersion); commonAncestorTable = commonAncestorFWS.openTable(tableName); // Cast to the IVersionedTable interface to create a difference cursor. IVersionedTable versionedTable = new IVersionedTableProxy(childTable); differenceCursor = versionedTable.differences(commonAncestorTable, esriDifferenceType.esriDifferenceTypeInsert, null); int countChildRecords = childTable.rowCount(null); int countParentRecords = commonAncestorTable.rowCount(null); // Create output variables for the IDifferenceCursor.Next method and a FID set. IFIDSet fidSet = new FIDSet(); IRow[] differenceRow = null; int[] objectID = null; // Step through the cursor, showing the ID of each modified row. differenceCursor.next(objectID, differenceRow); Thanks & Regards, Vara Prasad.
... View more
05-13-2016
03:01 AM
|
0
|
0
|
958
|
|
POST
|
Hi All, I am trying to fetch the differences between a child version and its parent version which is the Default Version through ArcObjects SDK for JAVA. I am not getting any results into objectIDs and differenceRows when I called "differences" function as below... .... differenceCursor = versionedTable.differences(commonAncestorTable, esriDifferenceType.esriDifferenceTypeInsert, null); ..... differenceCursor.next(objectIDs, differenceRows); .... Followed the sample code given in below help document. We are using V 10.2.1 ArcObjects 10 .NET SDK Help However, when I used "Versioning" tool bar and used "Version Changes" tool, I am able to see the changes. Could some one please help me with this. Thanks & Regards, Vara Prasad.
... View more
05-12-2016
04:46 AM
|
0
|
2
|
3498
|
|
POST
|
Hi, 1. Could anyone one please let me know if there is any way to easily access ArcGIS Portal object in custom widgets just similar to this.map or this.appConfig. I found that we can access portalURL using this.appConfig.portalURL but no portal object or we need to simply create it where ever it is necessary. 2. Do we have any code written to fetch Web Maps that a logged in Portal user has access to in Web AppBuilder? Thanks & Regards, Vara Prasad.
... View more
05-04-2016
10:20 PM
|
1
|
1
|
2097
|
|
POST
|
Thanks Robert. I will give a try. With Regards, Vara Prasad.
... View more
04-21-2016
07:00 AM
|
0
|
0
|
1173
|
|
POST
|
Thanks a lot Robert. It is very nice and very simple and working perfect. Just one thing that, the custom widget from where this map switching is initiated, is not getting loaded again. I am using, Plateau theme, foldable panel. Once, the app is reloaded with new WebMap, blank widget panel is kept opened (in which custom widget was opened before map was changed). It did not re load the original widget. Is it expected behavior and need to write any custom code to instantiate the widget again? or is there any other way? Thanks & Regards, Vara Prasad.
... View more
04-21-2016
06:39 AM
|
0
|
1
|
1173
|
|
POST
|
Hi All, We would like to change the webmap assigned to the app created using Web AppBuilder dynamically in a custom widget. And all other widgets such as "Search", "Coordinate", "OverView Map", "SclareBar", "HomeButton", "ZoomSlider" will work with out any impact. So, could anyone please direct me if there is any OOTB utility available in Web AppBuilder framework? I am following the below procedure to implement this. Please let me know if there is any other best way. 1. Destroying current map (by..... this.map.destroy();) 2. Creating a new map with webmap id of desired webmap, using below code var mapDeferred = jimuUtils.createWebMap("<url of portal>", "newWebmapID", mapDivId, {}); 3. Publishing "mapChanged" event topic.publish('mapChanged', newMapObject); 4. Subscribing this event in all the widgets such as mentioned above and writing necessary code to set map object, events, to the code esri dijits It is working some how. But I am not sure if this is the correct way. So, I would request for any best solutions. Thanks & Regards, Vara Prasad.
... View more
04-20-2016
11:12 PM
|
0
|
4
|
2816
|
|
POST
|
I could solve this by changing value of the property "exprchar" to some other symbol other than '$' as below. data-dojo-props="exprchar: '@' Thanks & Regards, Vara Prasad.
... View more
04-04-2016
05:29 AM
|
0
|
0
|
632
|
|
POST
|
Hi All, I am trying to use "dojox/mvc/Group" in html template of a WebAppBuilder Widget. However when I am giving html as <div class="row" data-dojo-type="dojox/mvc/Group" data-dojo-attach-point="assetMVCGroup" data-dojo-props="target: at('rel:', ${this.index})"> i am facing an error while the widget is being instantiated by WidgetManager of the WebAppBuilder. Error: init.js:199 Error: uniqName_5 template:this.index(…) "Error: uniqName_5 template:this.index at Error (native) at .<anonymous> (https://js.arcgis.com/3.15/init.js:275:39) Could someone please help me in knowing how to use "Dojox/mvc/Group" in Web AppBuilder widgets, so that, the framework recognizes ${this.index} Thanks & Regards, Vara Prasad.
... View more
03-30-2016
03:56 AM
|
0
|
1
|
2933
|
|
POST
|
Thanks a lot Robert! It helped. After I have used those dojo loaders, the html is rendered on browser. I am using 'jimu/BaseWidget' hence, i think no need to mention "_WidgetBase, _TemplatedMixin" again in my custom widget. However, when I instantiate this custom widget using the method you specified above, I am unable to leverage the advantages given by 'jimu/BaseWidget' and 'jimu's - WidgetManager' of JS Web AppBuilder (though my custom widget is extending 'jimu/BaseWidget' and just because the instance is not given by WidgetManager and our custom code).. such as.. 1. this.map is not available 2. Events mentioned in "Communication to app container" help document (Communication to app container—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers ) Could you please help me if there is any way which I can follow to get these functionalities for my custom widget also either with above approach of instantiating or by using WigetManager's functions. I tried identifying how Widget Manager is creating instances for widgets. But, I could not understand where the 'settings' object is being generated for the widget to which instance has to be generated. Finally, what I am looking for is, a way to instantiate custom widget, which gives all the Web AppBuilder widgets functionalities mentioned above and ability to mention to which domNode the widget should be bound. Please let me know if I am not clear anywhere. Really I thank you very much for your kind help. Highly appreciated. With Regards, Vara Prasad.
... View more
03-28-2016
09:46 PM
|
0
|
0
|
1732
|
|
POST
|
Hi Robert, Thanks for the suggestion. I tried it. However, the widget is not populated, the template from the template html is not populated and also, the attach points are not recognized. So, for the custom widgets, if they are templated widgets, do we need to load template html, nls and css using dojo/text!, dojo/i18n! and xstyle!, in widget javascript file ?? Thanks & Regards, Vara Prasad.
... View more
03-27-2016
10:26 PM
|
0
|
2
|
1732
|
|
POST
|
Hi, I am using JS Web AppBuilder V 1.3 developer edition. I have created 2 custom widgets, by copying it from the sample widgets, and modified as per my needs. Updated the template, settings, css, manifest, js file, strings. First widget I have configured in config-demo.json. This widget is being rendered correctly. I want to show the second widget as content in tool tip dialog bound to some html element in first widget. I could able to bind Tool tip dialog to the html element of first widget and it is being shown correctly. However, the content is blank. Steps followed to instantiate second widget in first widget 1. Added path of the widget in list of resources in 'define' of the first widget. 2. Added an Alias name 3. Created and object for this using below line var selToolWidgetObj = new SelectionToolsWidget(); 4. The object has been created successfully 5. debugger came to 'postCreate' event of second widget (SelectionToolsWidget) 6. Written below code to set this second widget as content of dijit ToolTipDialog this._toolTipDialog.set('content', selToolWidgetObj.domNode); popup.open({ popup: this._toolTipDialog, around: this.selectDiv }); 7. Tried setting object of the widget directly to 'content' property 8. Tried setting object of domNode of widget object as shown in step 6, no contents of second widget is rendered in UI 9. When I checked selToolWidgetObj.domNode in 'watch', found blank value ("") for innerHTML and also null for firstChild and firstElementChild properties. 10. Also, attachPoints property of the object of the second widget is an empty array. Could someone please help me how to instantiate a custom widget from another custom widget in JS Web AppBuilder. Thanks & Regards, Vara Prasad.
... View more
03-24-2016
04:04 AM
|
0
|
6
|
5119
|
|
POST
|
Hi Robert, I got some time to implement and check my idea mentioned above. Unfortunately, it did not work. I got below useful link. Please have a look at it. arcgis server - Prevent Editor Widget auto save - Geographic Information Systems Stack Exchange Thanks & Regards, Vara Prasad.
... View more
03-17-2016
02:09 AM
|
1
|
0
|
2993
|
|
POST
|
Hi Robert, Try attaching "before-apply-edits" event on FeatureLayer which you are trying to edit using Edit Widget and take decision which features have to be added/updated/deleted and then remove/update the graphic objects of the event callback arrays and see if it works. In this "before-apply-edits" call back, if you do not want to progress with the edits, then you need to raise any exception something like "throw new Error("Edits are not required");" Thanks & Regards, Vara Prasad.
... View more
03-16-2016
11:42 PM
|
0
|
3
|
2993
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-17-2025 08:28 AM | |
| 1 | 04-13-2025 09:51 PM | |
| 1 | 04-07-2025 06:41 PM | |
| 1 | 03-26-2025 06:52 AM | |
| 1 | 04-22-2024 03:53 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-03-2025
09:45 PM
|