POST
|
hi marco, so it's a bug. custom parameter properties in a layer file shld work. the dev team has submitted an issue. if u want to, u can open a bug report with Tech Support and they can link the internal issue to the bug report allowing u to track progress. The only thing working, it seems, per the dev team, as currently is if custom parameters are added directly to the URL - for example: {
"type" : "CIMFeatureTable",
"displayField" : "STATE_NAME",
"editable" : true,
"dataConnection" : {
"type" : "CIMStandardDataConnection",
"customParameters" : [ <----- this is ignored! bug
{
"type" : "CIMStringMap",
"key" : "token",
"value" : "QVoIg1fwLpgBMAiov2v6P1CYanOHEn27wFNfQI4IoJfB8SG3qfUmnhJZeSS05yyj"
}
],
This shld work (note the url)
"workspaceConnectionString" : "URL=https://acme.server.com/arcgis/rest/services/Acme_Layers/MapServer;CUSTOMPARAMETERS=token=QVoIg1fwLpgBMAiov2v6P1CYanOHEn27wFNfQI4IoJfB8SG3qfUmnhJZeSS05yyj",
"workspaceFactory" : "FeatureService",
"dataset" : "5",
"datasetType" : "esriDTFeatureClass"
},
"studyAreaSpatialRel" : "esriSpatialRelUndefined",
"searchOrder" : "esriSearchOrderSpatial"
}
... View more
11-01-2023
03:09 PM
|
0
|
1
|
487
|
POST
|
hi marco, sorry, missed your follow on q. i spoke w/ the development team and it "should" work. they cant repro. they're going to put a sample add-in together for u. note: is it that the token is not being sent or that the server is rejecting the token?
... View more
10-31-2023
09:26 AM
|
0
|
0
|
494
|
POST
|
looks like the patch comes from the layer renderer and not from the legend item, meaning: u have to change the (patch in the) layer renderer. Also, I could not see a way to change the "Name" of the legend item. That looks like it is always set from the layer name and so wld mean changing the layer name. Changing the name property on the underlying CIMLegendItem had no effect. The code below assumes the renderer is a simple value...u will need to adjust it accordingly depending on what the renderer is in your case... QueuedTask.Run(()=> {
var legend = LayoutView.Active.Layout.GetElementsAsFlattenedList()
.OfType<Legend>().FirstOrDefault();
var fl =
legend.MapFrame.Map.GetLayersAsFlattenedList().
OfType<FeatureLayer>().Where(
lyr => lyr.ShapeType == esriGeometryType.esriGeometryPolyline).FirstOrDefault();
if (fl == null)
return;
//change the patch symbol...cast the renderer to the
//correct type - simple, UVR, Class break, etc.
var svr = fl.GetRenderer() as CIMSimpleRenderer;
if (svr.Patch == PatchShape.LineZigZag)
svr.Patch = PatchShape.Default;
else
svr.Patch = PatchShape.LineZigZag;
fl.SetRenderer(svr);
... View more
10-27-2023
02:48 PM
|
0
|
0
|
324
|
POST
|
its a visual studio window accessible when u r running the debugger (see below). Sort modules on "Name". >>Should I try downgrading my nuget package to 6x? that sounds like it might do the trick
... View more
10-10-2023
03:05 PM
|
1
|
1
|
606
|
POST
|
when I look at the loaded modules for Pro 3.1 on my machine it is using version 6.0.2223 (corresponding to, i assume, the currently supported .NET version for Pro 3x - .NET 6) and not v7.
... View more
10-10-2023
02:25 PM
|
0
|
1
|
640
|
POST
|
Hi Brian, please down load the relevant .vsix's from the previous releases page: https://github.com/esri/arcgis-pro-sdk/#previous-versions Double-click to install
... View more
10-03-2023
08:21 AM
|
1
|
0
|
473
|
POST
|
hi marco, can u try something like this: var lyr_params = new LayerCreationParams(....) {
ServiceCustomParameters = new Dictionary<string, string>(){
{"TOKENPROVIDERTYPE","1234567890abcdefgh...etc...."}
}
}; the dictionary can be any set of (string, string) key/value pairs fyi
... View more
09-19-2023
11:58 AM
|
0
|
3
|
616
|
POST
|
not from the UI. At some point u have to go onto the QueuedTask. Once on the QueuedTask u can call ArcGISPortal IsSignedOn()
... View more
09-18-2023
01:15 PM
|
0
|
0
|
298
|
POST
|
geometries are immutable. to convert 2d to 3d u will need a builder. In your specific example, you will need a PolygonBuilderEx . Note that is has a HasZ property which is get and set. There is also a constructor overload that takes a polyline as its input. Lots of examples here in the Geometry snippets. Ctrl-F "PolylineBuilderEx"
... View more
09-07-2023
10:49 AM
|
0
|
1
|
389
|
POST
|
If u want to change the property from the UI just change the definition of your property in the view model to be get and set - and make sure the binding is Two-way (which is the default)...so delete out the binding mode stuff (in your xaml) that u added for one-way. u want something like this in the vm....anyway, keep whittling away at it - sounds like u r almost there 😉 internal class CustomControl1ViewModel : CustomControl {
//public bool IsSelectedPremium => Module1.Current.IsSelectedPremium;
public bool IsSelectedPremium {
get => Module1.Current.IsSelectedPremium;
set
{
if (value != Module1.Current.IsSelectedPremium)
{
Module1.Current.IsSelectedPremium = value;
NotifyPropertyChanged();
}
}
}
... View more
09-05-2023
01:42 PM
|
0
|
1
|
568
|
POST
|
yes, sorry about that. the cast wont work. i forgot that the wrapper cannot be cast to the view model directly. The view model "itself" is held in an internal property. Change the code like so: internal class Module1 : Module {
//Add another property to your module for the custom control
public CustomControlViewModel1 CustomControlViewModel1 { get; set;}
internal class CustomControlViewModel1 : CustomControl {
//add a default ctor
public CustomControlViewModel1() {
//set it here in the ctor of your custom control vm
Module1.Current.CustomControlViewModel1 = this;
}
//call refresh on the module property - add a null check
//if CustomControlViewModel1 -is- null it means that it has not been
//instantiated yet - presumably because the ribbon tab it is sited on
//has never been activated in the session...in which case it does not
//need to be refreshed.
Module1.Current.CustomControlViewModel1?.Refresh();
... View more
09-05-2023
10:51 AM
|
0
|
1
|
586
|
POST
|
move the backing properties to the Module. The module is accessible from anywhere in the addin. Add a "refresh" method to your custom control view model that fires the property notification. internal class Module1 : Module {
private static Module1 _this = null;
public bool IsSelectedPremium { get; set; }
internal class CustomControlViewModel1 : CustomControl {
public bool IsSelectedPremium => Module1.Current.IsSelectedPremium;
public void Refresh() {
NotifyPropertyChanged("IsSelectedPremium");
}
internal class SomeOtherClassElseWhereInTheAddin {
public void SetCheckboxes(bool loggedIn) {
Module1.Current.IsSelectedPremium = loggedIn;
var custom_control_vm =
FrameworkApplication.GetPlugInWrapper("Acme_Custom_Control1")
as CustomControlViewModel1;
custom_control_vm.Refresh();
}
... View more
09-05-2023
08:46 AM
|
0
|
1
|
601
|
POST
|
The supported options for enabling/disabling editing are listed here: https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-Editing#enable-and-disable-editing
... View more
09-05-2023
08:19 AM
|
0
|
0
|
292
|
POST
|
unfortunately, it's a bug. Fixed in 3.1.2 and will be available in 3.2
... View more
08-29-2023
09:04 AM
|
0
|
1
|
277
|
POST
|
i think that button is part of the built-in menu for the table view control. The daml button is just there for shortcut keys. It's not actually on any menus - at least as near as i can tell. The only entries I found for that id were in Editing.daml....note that there is no refID for that button in any menus/groups etc. - just the shortcut. <shortcut refID="esri_editing_table_tableCopySelectedRowsButton" key="C" flags="Ctrl+Shift" onKeyUp="false"/>
<button id="esri_editing_table_tableCopySelectedRowsButton" caption="Copy" extendedCaption="" className="esri_editing_EditingModule:TableManager.CopySelectedRows" smallImage="CopySelectedRows16" largeImage="CopySelectedRows32"
loadOnClick="false">
<tooltip heading="Copy Selection">
Copy selected rows to the clipboard.<disabledText></disabledText>
</tooltip>
</button>
... View more
08-18-2023
10:25 AM
|
0
|
0
|
288
|
Title | Kudos | Posted |
---|---|---|
1 | Wednesday | |
1 | 04-10-2023 07:06 PM | |
2 | 4 weeks ago | |
1 | 03-18-2024 06:28 PM | |
1 | 03-19-2024 10:15 AM |
Online Status |
Online
|
Date Last Visited |
12m ago
|