|
POST
|
Thanks, we're using Xamarin, so this impacts iOS, Android and UWP.
... View more
09-22-2017
10:58 AM
|
0
|
9
|
1957
|
|
POST
|
MMPKs work as well, so it's just runtime content that relationships don't appear to be working. The RelationshipInfos are there, but a call to QueryRelatedFeaturesAsync returns nothing. Is this a bug or just not supported? Thanks.
... View more
09-22-2017
10:32 AM
|
1
|
11
|
3955
|
|
POST
|
Quick update: using an offline replica geodatabase works, just not a runtime content geodatabase (ArcMap, 10.4).
... View more
09-22-2017
07:13 AM
|
0
|
12
|
3955
|
|
POST
|
Jennifer, I'm finding that QueryRelatedFeaturesAsync() is not working with an offline database, at least one that is created as runtime content using ArcMap. What are the requirements for the offline geodatabase to contain relationships? Do it need to come from Pro? I'll try an offline replica next, and post back my results.
... View more
09-22-2017
06:47 AM
|
0
|
13
|
3955
|
|
POST
|
Thanks Jennifer, I managed to get this working with the help of minerjoe. I didn't realize it was a collection within the collection, but I'm pleased that it is now working. Thanks again.
... View more
09-20-2017
11:09 AM
|
1
|
0
|
3955
|
|
POST
|
Wow, thanks Joe, that was confusing the you know what out of me. While this doesn't seem close to what Esri has in their samples or documentation, I do see what you mean now and can get to the actual features. Doesn't seem like best implementation to me, but at least it does seem to work. Thanks so much for your time and help, it is much appreciated.
... View more
09-19-2017
07:20 PM
|
0
|
0
|
757
|
|
POST
|
var relFtrs = await table.QueryRelatedFeaturesAsync (ftr as ArcGISFeature);
foreach (RelatedFeatureQueryResult r in relFtrs) {
//Get the feature and load the attributes
???
//This is the original feature passed into QueryRelatedFeaturesAsync
var originalFtr = r.Feature;
//This gets set to the expected related table
var relatedTable = r.RelatedTable;
//The KeyField property of this is the field name of the original feature key field
var relInfo = r.RelationshipInfo;
//These are the fields from the expected related table
var flds = r.Fields;
} I'd be interested to hear if anyone has gotten this working, as it appears in the cases I have been trying that this code is not working (although I'm also totally confused at the implementation of this). Issues: - I get a collection of objects returned from QueryRelatedFeaturesAsync, but it is not clear how to get the actual related feature / attributes. - The originalFtr above is the feature object passed into QueryRelatedFeaturesASync. Is this by design I wonder? - The RelatedTable is correct, so I thought I could use the RelationshipInfo to just manually get the related records, but the KeyField property is the original feature field not, not the field name needed for the RelatedTable. Why not just provide the foreign key field here?? - The Fields are the correct fields, the ones expected from the RelatedTable. - I could get the RelatedTableId from the RelationshipInfo, but that's the Id in that specific dataset, so if you have mixed data (online and runtime content), then you'll get the wrong layer. Even if I get the layer, I don't know the key field?!? Any feedback or comments would be greatly appreciated. Something that should have been a simple task has turned into much more of a production to implement. Maybe I'm missing something though, I sure hope so.... Thanks.
... View more
09-19-2017
10:56 AM
|
0
|
2
|
888
|
|
POST
|
Jennifer, do you have a sample that works on iOS/Android/UWP? I don't see that the RelatedFeatureQueryResult is a feature set, so not quite sure how to get to the feature/attributes in that collection. Thanks.
... View more
09-16-2017
08:24 AM
|
0
|
16
|
3955
|
|
POST
|
Jennifer, thanks for the sample, but I'm a bit confused on how to actually implement what I need. What I'm looking to do is actually be able to get the related features, and I expected the RelatedFeatureQueryResult.Feature property to be the related feature, but it is the original feature used to query the related records. For example, I have owner data (point), which is related to a parcel (polygon), which is related to property data (table). I get the owner data when a point is clicked on the map, so I have that feature. That is used to call QueryRelatedFeaturesAsync. What I want to be able to do is iterate the collection of RelatedFeatureQueryResult objects and get the property data, but I can't quite seem to figure out how to get the parcel feature object from this collection, so I can then get all of the records that are related to the parcel. Any help would be appreciated, thanks.
... View more
09-14-2017
06:36 AM
|
0
|
0
|
3955
|
|
POST
|
Not really a Runtime question, but I'm not aware of any cross platform components that will do this for you. You'll probably need to implement for each OS. Google search for 'Xamarin Forms Url Scheme iOS' (Android, UWP). Here are some links I found helpful: Receive data - UWP app developer | Microsoft Docs App Links for iOS - Xamarin App Links for Android with Rivits - Xamarin
... View more
08-15-2017
03:18 AM
|
0
|
0
|
1369
|
|
POST
|
Little more on this issue: I created a new emulator to test a "clean" v100.1 version of the app and well....it worked. Maybe there are some remnants that remained after using v100, then rebuilding the app with v 100.1. I'll try to reproduce again tomorrow by creating a clean emulator, building and using the v100 app, then upgrading and deploying the v100.1 app to the same device. I'll be sure to post the results here.
... View more
07-02-2017
07:29 AM
|
0
|
1
|
2583
|
|
POST
|
Tracked the issue down to when a feature service is added, here is some code I pulled out that shows the issue. //Create the feature layer and add to the map
string url = "https://services.arcgis.com/V6ZHFr6zdgNZuVG0/ArcGIS/rest/services/DamageAssessment/FeatureServer/0";
FeatureLayer ftrLayer = new FeatureLayer (new Uri (url));
ftrLayer.Loaded += (object sender, EventArgs e) => {
//Make sure the layer is loaded
if (ftrLayer.FeatureTable.LoadStatus == Esri.ArcGISRuntime.LoadStatus.FailedToLoad) {
if (ftrLayer.FeatureTable.LoadError != null)
Device.BeginInvokeOnMainThread (() => {
ToastHelpers.ShowError ("Layer Load Error", "An error occurred while loading the layer '" + ftrLayer.Name + "'.\n\n" + ftrLayer.FeatureTable.LoadError.Message, 7);
});
else
Device.BeginInvokeOnMainThread (() => {
ToastHelpers.ShowError ("Layer Load Error", "An error occurred while loading the layer '" + ftrLayer.Name + "', but the error message does not give any details. Please contact your application administrator for assistance.", 7);
});
}
};
if (ftrLayer.LoadStatus != Esri.ArcGISRuntime.LoadStatus.Loaded)
await ftrLayer.LoadAsync ();
this.EsriMapView.Map.OperationalLayers.Add (ftrLayer); Checking the LoadError gives this: ftrLayer.FeatureTable.LoadError {System.EntryPointNotFoundException: CoreRT_Request_getHttpOperation at (wrapper managed-to-native)…} System.EntryPointNotFoundException Attached are some logs from HockeyApp and Xamarin Studio. Hopefully something here helps, if not, let me know what else you need. Thanks for your help.
... View more
07-02-2017
07:02 AM
|
0
|
1
|
2583
|
|
POST
|
Yes, I am building for Xamarin.Forms using Xamarin Studio on a Mac. Testing for far has only been in an emulator. The same exact code works when I run in v100, but fails in v100.1. I'm debugging/testing on a Samsung Galaxy S8 emulator using Genymotion, API 24. I have the following architectures enabled: armeabi, armeabi-v7A, x86. I tried to enable arm64-v8a but got an error that Runtime does not support this architecture. I have Android SDK Tools 25.2.5 installed and Android SDK Platform-tools 25.0.3. Using Xamarin.Forms v 2.3.3.152-pre2. Again, same code works in v100 in the same emulator, but not in v100.1 I'll try to pull out the code and/or send along a sample app to repro the issue. Thanks.
... View more
07-02-2017
06:39 AM
|
0
|
2
|
2583
|
|
POST
|
Same issue here, upgrade worked straight away on iOS and UWP, but map never loads on Android. Have not had time to investigate where things seem hosed, but will do so and post more info here.
... View more
07-01-2017
03:14 AM
|
0
|
0
|
2583
|
|
POST
|
To use the Runtime SDK, you'll need to use the Forms option. I use a Mac, but have done work on UWP using Windows / Visual Studio.
... View more
06-30-2017
07:51 AM
|
0
|
0
|
998
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-20-2017 11:09 AM | |
| 1 | 09-22-2017 10:32 AM | |
| 1 | 06-20-2017 07:32 AM | |
| 1 | 04-07-2017 03:32 AM | |
| 3 | 12-19-2019 12:58 PM |
| Online Status |
Offline
|
| Date Last Visited |
03-11-2025
09:48 AM
|