On Oct 23, 10:10 am, Marco van den Oever <[EMAIL PROTECTED]>
wrote:
> 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) />

Should be something like:
<!--- set the polling vote --->
<cfset obj = createObject('component',
application.stcoapi.pollingvotes.typePath) />
<cfset stprops = structNew() />
<cfset stprops.answer1 = "1">
<cfset obj.createData(stProperties=stprops) />

Note application.types is deprecated.. should use application.stcoapi.
Note your structure of properties should be a separate structure.
Hijacking the public scope of "obj" would be a very bad thing.

geoff
http://www.daemon.com.au/
--~--~---------~--~----~------------~-------~--~----~
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