|
POST
|
Hi, Could someone please tell me how to access ArcSDE Geodatabase, which is published as GeoData service, into IWorkspace interface using ArcObjects. I am trying to initialize IGeoDataServer as below and then trying to cast this object to instantiate IGeoDataServerObjects interface and then call IGeoDataServerObjects::getDefaultWorkingWorkspace() to get object of IWorkspace. static IGeoDataServer initGeoDataServerFromInternetServer(String url, String
serviceName)throws Exception{
// Create a property set for connection properties.
IPropertySet propertySet = new PropertySet();
propertySet.setProperty("URL", url);
// Connect to the server and get an enumerator for its objects.
IAGSServerConnectionFactory agsServerConnectionFactory = new
AGSServerConnectionFactory();
IAGSServerConnection agsServerConnection = agsServerConnectionFactory.open
(propertySet, 0);
IAGSEnumServerObjectName enumServerObjectName =
agsServerConnection.getServerObjectNames();
enumServerObjectName.reset();
// Iterate through the objects to locate the geodata service.
IAGSServerObjectName serverObjectName = null;
IGeoDataServer geoDataServer = null;
while ((serverObjectName = enumServerObjectName.next()) != null){
if (serverObjectName.getName().equals(serviceName)){
IName name = (IName)serverObjectName;
geoDataServer = (IGeoDataServer)name.open();
break;
}
}
return geoDataServer;
} However, unable to cast object of IGeoDataServer neither to GeoDataServer nor IGeoDataServerObjects interface. Please let me know if I am not clear anywhere. Thanks &Regards, Vara Prasad.
... View more
01-04-2017
02:54 AM
|
0
|
0
|
659
|
|
POST
|
Hi Govindarajan, I have some similar problem. Could you please let me know how are you sending DB connection details as inputs to the GP Service? Thanks in advance! With Regards, Vara Prasad.
... View more
01-03-2017
10:18 PM
|
0
|
0
|
651
|
|
POST
|
Could someone please help me in identifying a good framework or approach for UnitTesting Web AppBuilder based custom widgets. Thanks & Regards, Vara Prasad.
... View more
11-22-2016
06:46 AM
|
0
|
0
|
474
|
|
POST
|
Hey, we are also looking for any best approach to do Unit Testing for WAB custom widgets. Could you please let me know if you find any good working approach for this. Thanks & Regards, Vara Prasad.
... View more
11-17-2016
07:35 AM
|
0
|
0
|
867
|
|
POST
|
Hi Robert, I have achieved the first task by implementing, "selection-change" event of PopUp. Implemented the other one too. Thank you With Regards, Vara Prasad.
... View more
11-09-2016
01:26 AM
|
0
|
1
|
1271
|
|
POST
|
Hi Robert, We need to append information (related to the graphic from graphic layer where user clicks) to the default content. So, I am fetching the graphic details on click of graphic layer and trying to append content to the default infoWindow. I am doing this in one of my custom widgets. Please let me know if I am not clear. Thanks & Regards, Vara Prasad.
... View more
11-08-2016
10:04 PM
|
0
|
0
|
1271
|
|
POST
|
Hi Robert, Thanks a lot for the reply. Here is the code that I have tried. What did you try? Can you share the code you attempted and where you placed it? on(graphicsLayer, "click", lang.hitch(this, function(evt) {
LayerInfos.getInstance(this.map, this.map.itemInfo).then(lang.hitch(this, function(operLayerInfos) {
arrayUtils.forEach(operLayerInfos._layerInfos, lang.hitch(this, function(layerInfo, index) {
//<<Code to identify the mapservice and layer id based on the graphic from graphic layer which has been clicked by executing some identify task >>
this._updatePopupContent(graphicObj, layerInfo, layerIndex);
}));
}));
}));
_updatePopupContent: function(graphic, layerInfo, subId) {
var mapServiceLayer = layerInfo.layerObject;
if (mapServiceLayer.infoTemplates && mapServiceLayer.infoTemplates[subId] && mapServiceLayer.infoTemplates[subId].infoTemplate) {
var contentdiv = mapServiceLayer.infoTemplates[subId].infoTemplate.content;
var newContent = domConstruct.create("div", null, contentdiv);
//<<code to create new elements and add to newContent div
//If title to be changed
mapServiceLayer.infoTemplates[subId].infoTemplate.setTitle("Information");
//approach 1 tried - no luck
mapServiceLayer.infoTemplates[subId].infoTemplate.setContent(contentdiv.innerHTML);
//approach 2 tried - no luck
mapServiceLayer.infoTemplates[subId].infoTemplate.content += contentBody.innerHTML;
}
} Thanks for the suggestion for the other issue. I will try it tomorrow as soon as I reach office. With Regards, Vara Prasad.
... View more
11-08-2016
10:37 AM
|
0
|
2
|
1271
|
|
POST
|
Hi, I am trying to add a new attribute at the end of the list of actual attributes in infowindow of a dynamic map service added to web map which is used in Web AppBuilder. My workflow is - 1. Based on some operations, I would get a list of graphics from various layers of a dynamic map service. I need to add all these result graphics to a graphic layer 2. On click of this graphic layer, the infoWindow of dynamic map service shows the actual attributes 3. In this infoWindow it self, I need to add an additional attribute name and value (which is not in the data base) at the end or top of the actual attributes 4. Also, need to add a new link beside "zoom to" and on click of this new link, need to perform some action. For point 3 above, I tried, appending content of the infoWindow, but it is not working. For point 4 above, I am planning to implement a new "PopupAction" Could some one please suggest me how to implement point 3? And is it correct way to create a new "PopupAction" to implement point 4 or any other best approach? Thanks in advance! With Regards, Vara Prasad.
... View more
11-08-2016
06:09 AM
|
0
|
6
|
2077
|
|
POST
|
Hi, Could you please let me know, how does this new span HTML element will be identified by ArcGIS Server Javascript API as it would not be in Map object or PrintParameters? Thanks in advance! With Regards, Vara Prasad.
... View more
10-04-2016
02:59 AM
|
0
|
0
|
903
|
|
POST
|
Hi Robert, Is it possible to do the same thing using custom code if we know webmap id? Thanks in advance! With Regards, Vara Prasad.
... View more
09-07-2016
05:14 AM
|
0
|
1
|
724
|
|
POST
|
Hello Everyone, Could some one please guide me on unit testing procedures for applications developed using ESRI Web AppBuilder and ArcGIS Server JavaScript API. Thanks in advance! With Regards, Vara Prasad.
... View more
09-01-2016
01:32 AM
|
1
|
1
|
818
|
|
POST
|
There is no any direct way to compare two child versions of a parent version either through ArcGIS Desktop or through ArcObjects.
... View more
08-23-2016
05:24 AM
|
0
|
0
|
573
|
|
POST
|
Hi Jose, I am also looking for any solution to exactly the same problem. Could you please let me know if you got any solution for this. Please reply. Thanks in advance! With Regards, Vara Prasad.
... View more
07-29-2016
02:59 AM
|
0
|
0
|
1548
|
|
POST
|
Hi, Could anyone please give me some thoughts on identifying the differences between two child versions of a same parent version. I could able to implement finding differences between parent and child versions using ArcObjects, but could not identify any way to compare two child versions. Thanks & Regards, Vara Prasad.
... View more
07-29-2016
02:53 AM
|
0
|
1
|
1328
|
|
POST
|
I could able to solve this. By assigning empty arrays to out parameters of "next" method instead of null object. Thanks & Regards, Vara Prasad.
... View more
05-26-2016
05:11 AM
|
1
|
0
|
1183
|
| 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
|