This might provide a starting point for easily populating the form.

http://masonhq.com/?FiltersAndHTMLFillInForm



Louis-David Mitterrand wrote:

>Hi,
>
>I have a component containing a form used for creation and modification. 
>When called for modification this component first queries the database 
>to populate the form elements.
>
>Ideally what I'd like to do is avoid putting '-default=>$database_value' 
>on all form inputs and simply populate them as if the component had been 
>called with %ARGS containing the data with the expected effect on all 
><%args> variables. 
>
> From the <%init> of a component is there a way to inject data so that 
>all <%args> variables are instantiated?
>
>Thanks,
>
>  
>


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to