POST
|
It is difficult to tell from what you posted. But Grid has HorizontalOptions and Margin settings. These work together to line up a grid on a page
... View more
07-08-2024
11:50 AM
|
0
|
0
|
111
|
POST
|
If you go to Manage NuGet Packages from your Project in Visual Studio you can see what version of the Runtime you have. You could also look in the project file itself, it shows the version Licensing can be done a different ways. If you are online, you can have users log on. This is the most straight forward This would authenticate and then they could do what their license allows. As example, if a Viewer users logged in, and you wrote code to edit features in a service, it would fail. Because the Viewer cannot edit data. For offline apps it is possible to get an offline key. This is something that needs to be discussed with your esri rep. Yes, it is possible to do things and leave the watermark. This is basically making a conscience decision to use unlicensed software.
... View more
06-04-2024
09:29 AM
|
0
|
0
|
414
|
POST
|
To reiterate, in branch versioning there is only one level. Default can have many children, but no grandchildren. So your projects are created directly off Default, it is not possible to have the PlanRoot. You are not describing how you take work offline (Field Maps, in-house app, etc.). For what you describe, this should be possible. But I have never tried, so this is theory. If you create a branch version for a project you would then generate services that point to that version. Your in-house or web editors would then use those services for editing. You could then go offline with replicas created from that service. The field changes would sync back to the version of the service. For this process you would need a service (or set of services) for each version. Every time you create a new project you will have to generate a set of services for that project. If there are half a dozen projects this seems doable, if you have 100s of ongoing projects, it seems to me it would be difficult to manage.
... View more
05-10-2024
06:51 AM
|
0
|
0
|
310
|
POST
|
It seem the error is because in my Maui startup I was setting a default API key .UseArcGISRuntime(config => config.UseApiKey("API KEY")); Replaced with: .UseArcGISRuntime(); And now it works. Not sure why, but remove the default key has resolved the issue
... View more
05-06-2024
02:28 PM
|
0
|
1
|
360
|
POST
|
After some additional research I found a MAUI sign in sample MauiSignin. This includes setting Persistence property on AuthenticationManager AuthenticationManager.Current.Persistence = await CredentialPersistence.CreateDefaultAsync(); Unfortunately, this did not resolve the issue. I still fail trying to query the service layer even though it would seem that everything is set correct and I have permissions
... View more
05-06-2024
01:58 PM
|
0
|
0
|
363
|
POST
|
First thing is that in branch version it is only a single level tree, unlike traditional versioning which could have multiple levels. So in your description 'operational elements' would have to be default. I have never done what you describe, usually when you define the service you indicate that it will either create versions when a offline replica is created, or it will not. We generally use a model that we do not create versions when maps go offline and then sync back to default. Looking at your link I am interested myself to know that if I use that parameter in the Url if I could take a branch that is not default offline. That would be an interesting thing to be able to do in some of our workflows
... View more
05-06-2024
01:52 PM
|
0
|
0
|
352
|
POST
|
I am migrating an app from Xamarin to Maui, currently focused on iOS. I have the Authentication setup and things appear to work, however, when trying to query a service table I get what seems to be authentication issues. I even added an extra authentication specific to the service and while I get a valid credential and add to AuthenticationManager I still get an apparent authentication error. Error: "You do not have permissions to access this resource or perform this operation."
Source: "System.Private.CoreLib"
at Esri.ArcGISRuntime.Http.HttpDispatcher.SendAsync(HttpRequestMessage request, HandlerOptions options, CancellationToken cancellationToken)
at Esri.ArcGISRuntime.Internal.RequestHandler.IssueRequestAndRespond(CoreRequest request) Code //I am already authenticated to AGOL, but added this for testing. It does fire an OAuth window
//The credential is valid, I can even use the token from debugger to access service
var credential = await AuthenticationManager.Current.GenerateCredentialAsync(new Uri(_configuration.AppSettings.ProjectFeatureLayerUrl));
AuthenticationManager.Current.AddCredential(credential);
var table = new ServiceFeatureTable(new Uri(_configuration.AppSettings.ProjectFeatureLayerUrl));
await table.LoadAsync(); //THIS LINE FAILS, was added for testing
var parameters = new QueryParameters { WhereClause = $"{_configuration.AppSettings.FieldNames.TrackingStatus} ='Project Created'", ReturnGeometry = true, MaxFeatures = 1000 };
var results = await table.QueryFeaturesAsync(parameters, QueryFeatureFields.LoadAll); //If does have the LoadAsync this fails As noted: In the debugger I can grab the token and use in a browser to access that service, so it seems I am getting a valid credential. It seems though, that the AuthenticationManager is not being queried for credentials. Thanks -Joe
... View more
05-06-2024
12:25 PM
|
0
|
3
|
388
|
POST
|
Ended up being basically the same. The one 'trick' was that you cannot use the Navigate methods on the WebView2 but need to set the Source property _webView.Source = new Uri(authorizeUri); The WebView2 needs to initialize, and getting the initialization methods to work was giving my fits. But setting Source will also call the initialization methods in the background. Much better look Thanks for the help @dotMorten_esri
... View more
04-19-2024
10:22 AM
|
0
|
0
|
569
|
POST
|
I am using the old WPF one. I started looking into the WebView2 after seeing this and am having a hard time implementing in the pattern of how the OAuthAuthorizeHandler is implemented in it's own class. Do you know of an example using Webview in the OAuthAuthorizeHandler? I will play around with it a little more and see if I can get it to work
... View more
04-19-2024
06:38 AM
|
0
|
2
|
579
|
POST
|
I can shrink my window so there is not as much blank space but it is really small. And very different size from how it renders on a web page.
... View more
04-18-2024
01:18 PM
|
0
|
0
|
605
|
POST
|
I am setting up an app in WPF. In the past all Windows WPF apps I have deployed have used Windows or SAML authentication and so have never had an actual login dialog. Setting this app with standard ArcGIS Enterprise credentials and the dialog looks very poor. The returned login is very small. Is there any way to change this size? I don't see anything that allows that control. But this looks very poor Thanks -Joe
... View more
04-18-2024
12:10 PM
|
0
|
6
|
661
|
POST
|
Don't even get that far, this is just trying to load the template at the very start, before I could even make changes
... View more
04-08-2024
08:35 AM
|
0
|
1
|
283
|
POST
|
I was trying to use CloudFormation and get errors trying to import the esri templates. Using this template: https://arcgisstore.s3.amazonaws.com/1110/templates/arcgis-enterprise-allinone.template.json I get the following errors This makes it impossible to use. Thanks -Joe
... View more
04-06-2024
12:36 PM
|
0
|
3
|
387
|
POST
|
What I do as have a method to log onto the portal. This cannot be done using the ChallangeHandler, you have to do yourself. But this allows having a full portal login to the Portal itself, instead of specific resource protected readonly string ServerUrl = "https://www.arcgis.com/sharing/rest";
//protected readonly string ServerUrl = "https://machine.domain.loc/portal/sharing/rest";
public async Task<ArcGISPortal> OpenPortalAsync(bool refresh = false)
{
try
{
if ( _portal == null )
{
var credential = await AuthenticationManager.Current.GenerateCredentialAsync(new Uri(ServerUrl));
RefreshToken(credential);
AuthenticationManager.Current.AddCredential(credential);
_portal = await ArcGISPortal.CreateAsync(new Uri(ServerUrl));
PortalUser = _portal.User;
ConnectionStatus = ConnectionStatus.Connected;
}
else
{
if ( !refresh ) return _portal;
var token = (TokenCredential)await AuthenticationManager.Current.GetCredentialAsync(
new CredentialRequestInfo { ServiceUri = new Uri(ServerUrl) }, false);
if ( token != null ) await token.RefreshTokenAsync();
}
return _portal;
}
catch (Exception e)
{
_log.Debug(e.Message);
ConnectionStatus = ConnectionStatus.NotConnected;
return null;
}
}
... View more
01-24-2024
10:00 AM
|
1
|
0
|
428
|
POST
|
Curious what version of XCode you have installed on your build mac. This sounds like an XCode 15 issue as opposed to a Mobile API issue. With XCode 15 you will definitely see issues on iOS 16.x
... View more
12-28-2023
08:52 AM
|
0
|
0
|
418
|
Title | Kudos | Posted |
---|---|---|
1 | 01-24-2024 10:00 AM | |
1 | 08-03-2023 04:14 AM | |
1 | 11-30-2023 10:39 AM | |
1 | 11-10-2023 12:40 PM | |
1 | 11-07-2023 01:16 PM |
Online Status |
Offline
|
Date Last Visited |
a month ago
|