Code violation letter.
Would like to have a widget that builds a letter to be printed.
The user can find the violation on the map and click on a link that generates the letter based off of the information in the violation. Or just open the widget and select the violation via the widget interface.
The letter would already be written and fields such as name, address, violation would be populated based off of the violation that was selected.
Not familiar with building a custom widget so I am not sure where to start.
Any help is appreciated.
Thanks!
-Chris
Chris,
Custom widget development like this starts with a basic templated widget guide:
Then you can select the violation from a list of violations in the widget that you would populate using a simple Query and QueryTask of your map service that contains this info (for examples of that you would look at Query samples in the JS API). Once your query is complete you would take the attributes from the selected violation and add them as html text elements to your letter/report. Now the letter\report is where you are now stepping into an area where a beginner or intermediate JS/web developer will most likely be completely lost, that is more of an advanced developer experience level. Your best bet is to hire a consultant for this task.
Did you every write this widget?