AdvancedForm Component (Undo,Redo,Reset)

July 12th, 2006

It came up recently about how to clear out a Form after submitting data to a backend. The basic idea was to reset the form to the initial values. Well, then I got thinking that the solution to that problem also lends it self to make a history of changes. Thats where the Undo/Redo features come into play.

You can set the history change size with the “undoHistorySize” attribute. The rest is taken care for you. What ever values are set upon creation of the Form will be the values used when you click on the Reset button. To fire the reset all you need to do is call the “resetForm()” method of the AdvancedForm component.

The Advanced Form component provides Reset, Undo and Redo functionality.

Undo and Redo are accessed by pressing “ctrl-Z” and “ctrl-Y” repsectively.

The current component supports TextInput, TextArea, NumericStepper, RadioButton, CheckBox, and ComboBox. They must
be children of the Form or Form.FormItem components.

AdvancedForm component page.

Entry Filed under: Adobe Flex, Rich Internet Applications

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


Disclaimer: I work as a Flash/Flex Developer for Adobe Systems Incorporated. The opinions expressed here represent my own and not those of my employer.

My Amazon.com Wish List

Calendar

July 2006
S M T W T F S
« Jun   Aug »
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

Most Recent Posts


Flex.org - The Directory for Flex