Hello!
I'm trying to create a widget that gets information about a existing feature in the map and then creates a new feature, in another designated layer, with some attribute values already filled based on the data acquired from the selected feature.
I've already accomplished the part of selecting the feature from which to acquire the desired data, but I'm wondering if there is a simple way to invoke an editing feature template / form for the new feature, just like the Edit or SmartEditor widgets do, popullating it automatically with the acquired data.
Any suggestions?
Thank you in advance.
Carlos,
As you are the developer building the widget and its UI it would be very simple for you to create the form elements that are needed for your feature creation form and populate then forms dijits with the retrieved values and then use the FeatureLayer.applyEdits([graphics]) method on a click event of your widgets add button. As far a some auto-magical form being built for you, No that part is up to you as the developer.
Hi Robert,
Yes, it is easy to create a customized form for the task. I was just wondering if there was an easy way to reuse the code / classes of the mentioned widgets, that are tested and work very well.
Thank you for your inputs.