Ok this is how i had to be:

<!--- set the polling vote --->

<cfset obj =
createObject('component',application.types.pollingvotes.typePath) />

<cfset obj.answer1 = "1">

<cfset obj.createData(stProperties=obj) />


On Oct 22, 11:12 pm, Marco van den Oever <[EMAIL PROTECTED]>
wrote:
> You're right it had to be obj.createData instead of just createData.
>
> Also i had to remove the [ ] because it gave me a "missing argument"
> error.
>
> Now the records getting inserted, just need to figure out why answer1
> is not set to 1.
>
> Thanks!
>
> On Oct 22, 10:46 pm, "Tomek Kott" <[EMAIL PROTECTED]> wrote:
>
> > first glance, shouldn't it be obj.createData? not createData by itself?
> > Other than that, and assuming you extended createData to include the answer1
> > as a function input, I don't know...
>
> > Tomek
>
> > On Wed, Oct 22, 2008 at 4:40 PM, Marco van den Oever <
>
> > [EMAIL PROTECTED]> wrote:
>
> > > I have this code:
>
> > > <!--- set the polling vote --->
>
> > > <cfset obj =
> > > createObject('component',application.types.pollingvotes.typePath) />
>
> > > <cfset createData(stProperties=obj, [answer1="1"]) />
>
> > > What's wrong?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"farcry-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/farcry-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to