POST
|
Hi Horia, I verified your observations and will relay your findings to the developers. I made a few changes to the custom popup sample https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Map-Exploration/CustomPopup specifically in "CustomPopupTool.cs" and this what I observed: Line 64 instantiates DynamicPopupContent which allows me to customize each page (by overriding "OnCreateHtmlContent"): kvp.Value.ForEach(id => popups.Add(new DynamicPopupContent(kvp.Key, id))); If I run the code as shown above I do observe that the Title customization is not properly applied, however if I change the code to use the "configured pop-ups" content (from the Pop-ups dock pane) then I get the proper behavior regarding the title. This is simply done by changing line 64 as follows: kvp.Value.ForEach(id => popups.Add(new PopupContent(kvp.Key, id))); No as i scroll through my pop-up records i can see that the title changes according to what i specified on the Pop-ups dock pane for that layer. Finally i can also override the Title property in the overridden "OnCreateHtmlContent" method in order to correct the title as required, but this causes a flash on the title bar as the old title is overridden.
... View more
07-13-2016
03:58 PM
|
2
|
0
|
1344
|
POST
|
The current map view requires a 'current' active tool. You can look at this snippet how to change the current tool: FrameworkApplication.SetCurrentToolAsync("esri_mapping_selectByRectangleTool"); where "esri_mapping_selectByRectangleTool" is the DAML id of the tool. See: https://github.com/esri/arcgis-pro-sdk/wiki/ProSnippets-Framework#set-the-current-tool
... View more
07-12-2016
11:53 AM
|
0
|
3
|
3702
|
POST
|
I modified the sample to use the 'selected' layer for the add/delete operations and it appears the same problem you discovered in the Pro UI exists even when I programmatically change the schema - the schema change is always executed on the top most layer (given your pre-conditions). Everything works as expected after I make the layer name unique. Maybe for the time being you can append a string to your layer names (like ... "RoadSegment (production)" and "RoadSegment (proposed)" ) in order to work around this issue until a fix is available.
... View more
07-11-2016
11:46 AM
|
0
|
1
|
1344
|
POST
|
Hi Horia, My sample always looks at the top most layer to perform its actions (add/delete field) and that seems to work. When I tried your scenario from the user interface by deleting a field of the layer that is not the top most layer (with your given setup) I also noticed that the field in the top most layer was deleted instead of the field in the layer that I had chosen. We relayed the scenario to the appropriate developers and I will try a small modification to my sample to check if the behavior fails programmatically as well. Thanks Wolfgang
... View more
07-11-2016
10:30 AM
|
0
|
0
|
1344
|
POST
|
I added a new sample to community sample repo: https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Geodatabase/AddDeleteFieldToFromFeatureClass I also tested this sample with a scenario similar to yours by adding two feature classes that are stored in to different geodatabases to my map using the same layer name. The sample changes the top most layer, I added the new field and it worked as expected: Next I moved my second top layer to the top and added a new field here as well: Finally I deleted the latest newly added field which worked as expected: Maybe you can try the sample and see if it works with your data.
... View more
07-08-2016
08:16 PM
|
0
|
4
|
1344
|
POST
|
For future reference you can find this type of information on our GitHub ArcGIS-pro-sdk repository under the requirement section (https://github.com/Esri/arcgis-pro-sdk/wiki#requirements) and in the release notes section: https://github.com/Esri/arcgis-pro-sdk/wiki#release-notes
... View more
07-07-2016
02:55 PM
|
0
|
1
|
787
|
POST
|
I tried the following code (new project and simply adding an AddField button) using the sample data from the community samples (GitHub) repo and it worked without any exceptions. To catch any exceptions in your code you should always use a try {} catch () {} sequence like in my sample below.
internal class AddField : Button
{
protected override async void OnClick()
{
await ExecuteAddFieldTool("test2", "Test 2", "TEXT", 100);
}
private async Task<bool> ExecuteAddFieldTool(string fieldName, string fieldAlias, string fieldType, int? fieldLength = null,
bool isNullable = true)
{
try
{
var inTable = @"TestLines";
var workspaceName = @"C:\Data\FeatureTest\FeatureTest.gdb";
var parameters = Geoprocessing.MakeValueArray(inTable, fieldName, fieldType.ToUpper(), null, null,
fieldLength, fieldAlias, isNullable ? "NULABLE" : "NON_NULLABLE");
var env = Geoprocessing.MakeEnvironmentArray(workspace: workspaceName);
var cts = new System.Threading.CancellationTokenSource();
var results = Geoprocessing.ExecuteToolAsync ("management.AddField",
parameters, env, cts.Token, (eventName, o) =>
{
switch (eventName)
{
case "OnValidate":
if (((IGPMessage[]) o).Any(it => it.Type == GPMessageType.Warning))
{
MessageBox.Show($"{eventName}: {o}");
}
break;
case "OnMessage":
case "OnProgressMessage":
MessageBox.Show($"{eventName}: {o}");
break;
case "OnProgressPos":
MessageBox.Show($"{eventName}: {o} %");
break;
default:
MessageBox.Show($"{eventName}: {o} %");
break;
}
});
await results;
return true;
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
return false;
}
}
... View more
06-17-2016
09:20 AM
|
0
|
2
|
656
|
POST
|
After you change the Selection color try to use 'SetDefinition' on your FeatureLayer as in (from API reference guide): public void SetDefinition( CIMBaseLayer baseLayer ) GetDefinition only returns a copy of ArcGIS Pro's internal settings (not a reference), SetDefinition will then post your changes back to ArcGIS Pro. Also you can find some samples dealing with the CIM here: https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Map-Authoring/CIMExamples
... View more
06-08-2016
04:09 PM
|
0
|
0
|
1512
|
POST
|
Hi Jason, When we release SDKs for .Net we support compatibility with the latest two commercially available versions of Visual Studio, hence, we supported VS 2012 & 2013 compatibility for 10.3 and VS 2013 & 2015 compatibility for 10.4. 10.3.1, is a 'maintenance release' for 10.3 and therefore adds no new functionality. 10.3.1 just as 10.3 supports VS 2013 and VS 2012. There is a VS 2013 Community Edition available (which replaces VS 2013 Express) that you can use with the 10.3.1 SDK for .Net. When you install the 10.3.1 SDK the setup might identify Community Edition as 'Express' but everything works with Community Edition. You can install both VS 2013 & 2015 Community side by side on the same development machine.
... View more
02-17-2016
10:16 AM
|
0
|
0
|
739
|
POST
|
Jason, Which version of the "ArcObjects SDK for the Microsoft .NET Framework" are you trying to install? The requirements for the latest release (10.4.0) can be found here (scroll to the bottom of the section): ArcObjects SDK 10.4 system requirements—System Requirements | ArcGIS for Desktop
... View more
02-16-2016
10:44 AM
|
0
|
2
|
2217
|
POST
|
General availability for the "ArcObjects 10.4 SDK for .NET" is not until the week of February 15, 2016. Once the SDK is available you would download it from MyEsri (same as 10.3.1). So for example for 10.3.1 the download would be here (however, you need to log in first): https://my.esri.com/#/downloads/ArcGIS%20for%20Desktop/10.3.1
... View more
02-03-2016
02:22 PM
|
0
|
6
|
2217
|
POST
|
Sorry Jens, the link was missing from the resources section. I added a sample data download link to the various resource sections now, but you can also find the link under the 'release' tab or here: https://github.com/Esri/arcgis-pro-sdk-community-samples/releases Thanks for pointing this out, Wolf
... View more
09-21-2015
11:51 AM
|
1
|
1
|
618
|
POST
|
I searched for some way to connect Operations Dashboard to Portal for ArcGIS but after spending many hours my search efforts are still fruitless. I wish there would be some type of useful online documentation on Operations Dashboard. I finally found some information in a Post from Jeff Shaner: "A quick update and note for Dashboard users. We are currently finishing our next release of the Operations Dashboard (10.2). It will include a number of key enhancements and bug fixes. We hope to make this update available mid-late October via ArcGIS Online. Those that have Operations Dashboard installed now will receive a notice that a newer version is available to download and install. For those extending the Operations Dashboard we will be releasing a new version of the ArcGIS Runtime SDK for WPF (v10.2) as well. For those using Portal for ArcGIS, this will be the first supported and documented release of the Operations Dashboard. We will include a configuration utility that you can download from the Customer Care Portal and use to establish the click-once installer for your portal. Stay Tuned! Apps Team September 30, 2013 at 7:53 am "
... View more
10-09-2013
11:36 AM
|
0
|
0
|
553
|
POST
|
I searched for some way to connect Operations Dashboard to Portal for ArcGIS but after spending many hours my search efforts are still fruitless. I wish there would be some type of useful online documentation on Operations Dashboard.
... View more
10-09-2013
10:38 AM
|
0
|
0
|
553
|
POST
|
I am using the Samsung tablet from the Build conference and ArcGIS Mobile for Windows works well on that tablet - however, this is not an ARM tablet and I don't think ArcGIS Mobile will work on ARM. Windows 8 on ARM will only support Metro style applications - which ArcGIS Mobile is not.
... View more
03-15-2012
12:54 PM
|
0
|
0
|
280
|
Title | Kudos | Posted |
---|---|---|
1 | 06-03-2020 09:11 AM | |
1 | 11-27-2023 10:24 AM | |
1 | 04-13-2023 03:09 PM | |
1 | 07-22-2024 03:36 PM | |
1 | 05-24-2024 10:13 AM |
Online Status |
Offline
|
Date Last Visited |
Tuesday
|