You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 8 Next »
Submit buttons are aesthetically similar to normal buttons but their behaviour differs from normal buttons with respect to the following:
<textarea label="input.workout_comments"> <binding variable="uWorkout"> <attribute name="comments"/> </binding> </textarea> <submit label="button.save_workout" action="saveWorkout"/>
unit Workouts; Workout uWorkout; void init() { uWorkout = Workout:new(); } . . . DSL_VIEWS saveWorkout() { uWorkout.endTstamp = Date:now(); uWorkout.save(); return DSL_VIEWS.Workouts; }
button.save_workout = Save workout
Add Comment
Add Comment