|Merge FormDatas [message #1404103]
||Tue, 29 July 2014 15:45
| Dennis Geesen
Registered: June 2014
Since I did not found anything I can (re)use, may be someone has some hints for me:
I want to map one FormData into another one. Or you can also say: Fill one FormData with data of another FormData.
For example, I have a CustomerFormData (with fields like Street, City) and a UserFormData (also with fields Street and City).
Now, I want to set the fields of CustomerFormData using the values from the UserFormData without defining each mapping by hand. Therefore, the mapping of street and city should be automatically done instead of explicitly calling
Thus, I want to automatically match and bind values from one formData into another.
I think, it is similar to the binding while using SQL.selectInto...
Although I can iterate through the fields by hand, this does not recognize nested fields etc... So, may be someone has a better approach or already a solution what to use?
PS: and yes, I know that it is possible to use abstract classes/templates for common fields...
Powered by FUDForum
. Page generated in 0.02809 seconds