Yeah, almost. Users can save preferences but I cannot use the simple method
you describe, because the same thig happens on different pages. I mena users
can save preferences for different pages and the same object has to handle
all of them. So, I really need to save for user x preference for page y a
whole bunch of parameters amongst which a couple of functions.



-----Original Message-----
From: Raymond Camden [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 04, 2003 8:48 PM
To: CF-Talk
Subject: RE: WDDX and UDF

Are you saying that based on user input, you would need to call a
function but you don't know which at runtime? If your options are
limited (let's say 3 differnet UDFs), you could use a simple cfif
block...

<cfif foo is 1>
        <cfset x = goo()>
<cfelseif foo is 2>
        <cfset x = moo()>
<cfelseif foo is 3>
        <cfset x = doodoo()>
</cfif>

Or, you can consider writing one UDF and passing the option (foo above)
to the UDF.

=======================================================================
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc

Email    : [EMAIL PROTECTED]
WWW      : www.camdenfamily.com/morpheus
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda

> -----Original Message-----
> From: D. Delcomminette [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 04, 2003 10:34 AM
> To: CF-Talk
> Subject: RE: WDDX and UDF
>
>
> Ouuuuuuuups ..... I wish my English was better .............
>
> I do not want to store anything as a function, but I have to!
> Because some parameters amongst others are just the function
> the user chooses to places at some point .
>
> Can't find how to explain it in another way.
>
> Thanks for your patience.
>
> Dominique
>
>
> -----Original Message-----
> From: webguy [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 04, 2003 8:00 PM
> To: CF-Talk
> Subject: RE: WDDX and UDF
>
> Ok understand that. But what I don't understand is why you
> need to store the preferences as a function.
>
> Can't you just store the "struc of array of struct" ?
>
> WG
>
> > -----Original Message-----
> > From: DDE [mailto:[EMAIL PROTECTED]]
> > Sent: 04 February 2003 15:42
> > To: CF-Talk
> > Subject: RE: WDDX and UDF
> >
> >
> > OK, I'll try to explain a bit more , but I can't give full details
> > otherwise it will become to complex.
> > I have a struc of array of struct and so on ...
> > A part of is a description of columns appearing in a dhtml
> table. For each
> > column, I have a name, a datatype, a filter value ......
> and an optional
> > reference to formatting function ...
> > Most of those data can be customized per user. That's the reason
> > why I have
> > to save it somewhere, and I choose to save in a user
> related table of my
> > database. I tried to store just the name of the function as
> a string, but
> > than I have other problems in the object managing the all stuff.
> >
> > Hope you get a better idea.
> >
> > Thanks Dominique
> >
> >
> >
> >
> > -----Original Message-----
> > From: webguy [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 04, 2003 6:16 PM
> > To: CF-Talk
> > Subject: RE: WDDX and UDF
> >
> > Typo..
> >
> > > if you do a = myfunction(a,b,c);  ... "a" will contain the return
> > > code, unless you return the struct of array of struct (as
> a struct),
> > > which you should be able to store as wddx
> >
> > should read
> >
> > if you do a = myfunction(a,b,c);  ... "a" will contain the return
> > code.
> >
> > if you return the struct of array of struct (as a
> struct),you should
> > be able to store as wddx
> >
> > WG
> >
> >
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to