The Query Related Records tool demonstrates how to query for the related records of a feature by using the feature's pop-up information.
... In Fiddler when it sends off to the rest to do the query of related records, it correctly sends to the Host gisadv02. However, the next two lines show it trying to access clientaccesspolicy.xml and crossdomain.xml, and both cause problems because it is sending to the host gisadv2. It has stripped out the 0.Any suggestions on how/where to fix this??
It has stripped out the 0.
I have exactly the same problem, the "0" is removed from the server name.Thanks for helping,Roger
private void QueryTask_ExecuteRelationshipQueryCompleted(object sender, RelationshipEventArgs e) { // queryResult used once the results layer is initialized queryResult = e.Result; // Create a new url for the related table using the querytaskUrl and the RelatedTableId. string resultsUrl = relatesLayer.Url; string[] splitResultUrl = resultsUrl.Split('/'); resultsUrl = resultsUrl.Replace(splitResultUrl.Last<string>(), ""); resultsUrl = resultsUrl.Insert(resultsUrl.Length, relationInfo.tableId.ToString());
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.