Ok, I understand the concept of how it *should* work. That said I'm a 1
man development team. Would it really be worth it/practical for me to
create 40 methods to populate a registration form? Why is returning a
structure a "hack"?
Mark Kecko
Technology Director
MediaPost Communications
[EMAIL PROTECTED]
212-204-2002
[EMAIL PROTECTED] wrote:
>>So how do I create a getter to get an entire member if my current get
>>function doesn't do it? Say I want to populate an update member form?
>
>
> Ideally you populate each form field with individual getMethods
> #member.getfname()#
> #member.getlname()#
> etc....
>
> If you want a hack to return it in a structure, you would use something
> like this
>
> <cffunction name="getAllAttributes" access="public"
> output="false" returntype="struct">
> <cfreturn variables />
> </cffunction>
>
> Then in your application
> myMember=createObject("Component","memberObject").init(arguments.aid)
> <cfset myMemberAttributes=myMember.getAllAttributes()>
>
> Jason Cronk
> [EMAIL PROTECTED]
>
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49
Message: http://www.houseoffusion.com/lists.cfm/link=i:12:6746
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/12
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:12
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.12
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54