|
POST
|
Hi all, I have read almost every topic about popups but still not figured out how to use my own Custom-popup-view controller instead of using AGSpopupViewController. There isn't a sample on github either. I m a beginner developer and trying to develop with swift. I would really be glad, if you have any sample or any of you developed and able to share. The reason i m trying to create my own popup controller is, i would like to add Relation table into the same popup, and add couple buttons in popup. Regards. Thanks in advance !
... View more
05-26-2016
02:43 AM
|
1
|
0
|
1397
|
|
POST
|
VIKRANT KRISHNA sorry for bothering but if you not gonna share it at least please say. still waiting. Thank you.
... View more
05-24-2016
07:25 AM
|
0
|
2
|
2114
|
|
POST
|
Hi Vikrant, I m really stuck, i really counted on your words. Please share your code as possible as soon. Or i will not be able to finish my work. thank you. Regards Ozcan
... View more
05-23-2016
12:16 AM
|
0
|
0
|
2114
|
|
POST
|
Hi Vikrant, i m still waiting, unfortunately i cannot move ahead to finish my project. Regards.
... View more
05-19-2016
11:28 PM
|
0
|
0
|
2114
|
|
POST
|
Hi Suganya Baskaran, Can you please share your code how you have achieved it, Couldn't find any sample related to it. I m using offline editing sample. Regards.
... View more
05-15-2016
11:48 PM
|
0
|
1
|
671
|
|
POST
|
I m new to iOS and trying to develop an application and have the same issue as yours and I couldn't achieve to create a custom view controller. If possible can you share your code on GitHub or send as zip. That would be a really life saver for me. Regards
... View more
05-13-2016
09:58 AM
|
0
|
7
|
2114
|
|
POST
|
In my application i need to connect all the Feature with the road to relate which feature belongs which road. There for in all feature i have a field called "YOLORTAHATTIID" and I m trying to fill this field with the road ID. Here is the Scheme: 1. Click on any Feature on the map 2. When popup comes, at the scene where YOLORTAHATTID is null and at this point we have no ID attached to YOLORTAHATTID 1. Select the road Icon. When we press on this button, we go back to map view and we select road feature 2. Then we get the ID attribute of the field, and return back to the popup with the "Road ID" filled into "YOLORTAHATTID" 3. and able to save it ! Here is my demonstration : Thanks for the help to : Gagandeep Singh I have created a function to dismiss the popup when clicked on maps icon, and rest is mystery for now func getTheID(){ self.popupsVC.dismissViewControllerAnimated(true, completion: nil) self.popupsVC.startEditingCurrentPopup() self.toggleGeometryEditUI() if tappedFeatures.count > 0 { print(tappedFeatures) } } Here is the sample application : GitHub - ozcan-durak/testApp Regards.
... View more
04-26-2016
02:01 AM
|
0
|
1
|
3919
|
|
POST
|
You are the best Singh, I have been trying this more than a week, Finally its done, I also tried an almost same approach and didnt work, here is code : var rightAddBarButtonItem:UIBarButtonItem = UIBarButtonItem(title: "Add", style: UIBarButtonItemStyle.Plain, target: self, action: #selector(ViewController.addTapped)) var rightSearchBarButtonItem:UIBarButtonItem = UIBarButtonItem(barButtonSystemItem: UIBarButtonSystemItem.Search, target: self, action: #selector(ViewController.searchTapped)) self.popupsVC.doneButton = self.navigationItem.setRightBarButtonItems([rightAddBarButtonItem,rightSearchBarButtonItem], animated: true) But thank you for sorting this out, You saved my day !
... View more
04-26-2016
12:13 AM
|
1
|
0
|
1167
|
|
POST
|
Is it possible to create a popup without using AGSpopupViewController with same functionallity like editing, moving and deleting feature in Swift. Or is it possible to extend it ? Why i require it : 1 - I would like to add extra button near (Move, Attachment) fields. But i cannot achieve it. 2 - I would like to append related record in popups. What i have already done: 1- create a tableview and displayed all feature //instantiate an object of the FeatureDetailsViewController
let storyboard = UIStoryboard(name: "Main", bundle: NSBundle.mainBundle())
let featureDetailsViewController = storyboard.instantiateViewControllerWithIdentifier(kFeatureDetailControllerIdentifier) as! FeatureDetailsViewController
//assign the feature to be presented in the details view
featureDetailsViewController.feature = callout.representedObject as! AGSGDBFeature
featureDetailsViewController.displayFieldName = "NAME"
//in case of an iPad present as a form sheet
if AGSDevice.currentDevice().isIPad() {
featureDetailsViewController.modalPresentationStyle = .FormSheet
}
self.navigationController?.presentViewController(featureDetailsViewController, animated: true, completion: nil)
} I can display all the data but cannot edit or delete it.
... View more
04-25-2016
04:33 AM
|
0
|
0
|
3145
|
|
POST
|
Hi Singh, Thank you for responding, I have used the done button, But not enough, because i needed to add more button and i couldnt find anymore wayaround. but just wondering about the part you said "To compensate for the original done button you can have a custom button with custom action to dismiss the popups container view controller." How can i add a custom button over there ? Thank you.
... View more
04-25-2016
04:33 AM
|
0
|
1
|
1167
|
|
POST
|
Can you please Explain how can i get the GLOBALID from FeatureTableLayer in swift. Thank you Faiyaz Khan
... View more
04-19-2016
10:47 AM
|
0
|
0
|
1775
|
|
POST
|
I m developing an application with ArcGIS SDK on iphone with Swift. Really appreciate you guys made almost everything easy for developers. I have 2 question if you can help with where i m really stuck at. First question : I m using your Offline Editing Feature Sample on github for swift. I would like to add a button apart from (Done & Action) but couldn't achieve that yet with “AGSPopupsContainerViewController” class. With the new button i would like to show “Related Record”. Or if there is a way to append the related record info under the same popup that would be better. Second question : When clicking on feature the callout popsup. I would like to display these . How can i call these within the callout. Thank you so much in advance. Regards
... View more
04-15-2016
04:21 AM
|
0
|
4
|
5325
|
|
POST
|
I have registered my layer as "Registered as versioned" with the "Register the selected objects with the option to move edits to base". I can publish the the data the feature server with "Sync" features on. Data can be used online, but when trying to "download the map" for "offline" use. The application logs says : Error Domain=NSCocoaErrorDomain Code=400 "Failed to create replica." UserInfo={NSURL=http://52.28.226.146/arcgis/rest/services/yyy/yyyy/FeatureServer/jobs/j57ac7b5825c446e0a9e29de2faee7700?f=json&token=QE3SFRWbxkrxEbwfgxz3w-54a8amIH1Rv7rcIAnrfGv1mM5C8pbi1QVr0rB_KjFC, responseJSON={ error = { code = 400; description = "Failed to create replica."; }; lastUpdatedTime = 1458648838000; replicaName = ""; resultUrl = ""; status = Failed; submissionTime = 1458648835000; }, NSLocalizedFailureReason=Failed to create replica.} And when checked "Arcgis server Manager" logs 2 error occurs : Error 1 Error executing tool.: ErrorMsg@SyncGPService:{"code":400,"description":"Failed to create replica."} Failed to execute (Create Feature Service Replica). Error 2 Error: An error occurred while adding an entry to the FEATUREDATASET_CLASSES or the FEATURECLASSES table. [Read only data or unversioned data cannot be replicated. Data versioned with the option to move edits to base cannot be replicated. GlobalIDs are required for two way and one way replica data. Creating one way replica using archiving requires archiving the replicated parent data.]. The achivement goal is : Publish a feature server to use on mobile for online/offline editing with versioned data and all changes and updates shown on service immediately. What i have already tried : Read the prepare offline map and feature documentation and made sure that i had Global ID When i do not use "Register the selected objects with the option to move edits to base" for data versioning option. Data is not displaying on the server when sync in offline mods. Why we need versioning : To be able to change and edit on Arcmap and webservices for multiple users. Thanks in advance.
... View more
03-22-2016
05:37 AM
|
0
|
3
|
4274
|
|
POST
|
I have registered my layer as "Registered as versioned" with the "Register the selected objects with the option to move edits to base". I can publish the the data the feature server with "Sync" features on. Data can be used online, but when trying to "download the map" for "offline" use. The application logs says : Error Domain=NSCocoaErrorDomain Code=400 "Failed to create replica." UserInfo={NSURL=http://52.28.226.146/arcgis/rest/services/yyy/yyyy/FeatureServer/jobs/j57ac7b5825c446e0a9e29de2faee7700?f=json&token=QE3SFRWbxkrxEbwfgxz3w-54a8amIH1Rv7rcIAnrfGv1mM5C8pbi1QVr0rB_KjFC, responseJSON={ error = { code = 400; description = "Failed to create replica."; }; lastUpdatedTime = 1458648838000; replicaName = ""; resultUrl = ""; status = Failed; submissionTime = 1458648835000; }, NSLocalizedFailureReason=Failed to create replica.} And when checked "Arcgis server Manager" logs 2 error occurs : Error 1 Error executing tool.: ErrorMsg@SyncGPService:{"code":400,"description":"Failed to create replica."} Failed to execute (Create Feature Service Replica). Error 2 Error: An error occurred while adding an entry to the FEATUREDATASET_CLASSES or the FEATURECLASSES table. [Read only data or unversioned data cannot be replicated. Data versioned with the option to move edits to base cannot be replicated. GlobalIDs are required for two way and one way replica data. Creating one way replica using archiving requires archiving the replicated parent data.]. The achivement goal is : Publish a feature server to use on mobile for online/offline editing with versioned data and all changes and updates shown on service immediately. What i have already tried : Read the prepare offline map and feature documentation and made sure that i had Global ID When i do not use "Register the selected objects with the option to move edits to base" for data versioning option. Data is not displaying on the server when sync in offline mods. Why we need versioning : To be able to change and edit on Arcmap and webservices for multiple users. Thanks in advance.
... View more
03-22-2016
05:36 AM
|
1
|
1
|
2361
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-26-2016 02:43 AM | |
| 1 | 03-22-2016 05:36 AM | |
| 1 | 04-26-2016 12:13 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:24 AM
|