Geoff thanks, now i got the createData function right, i am not
experienced in using structures and arrays yet so that gives me a bit
of a handicap at the moment, at the other hand it's a perfect time to
learn right now.
Based on your advice i changed the "get polling data" code like this,
is that the right way to do it (asking anyone that knows):
<!--- get the pollingdata --->
<cfset obj =
createObject('component',application.stcoapi.polling.typePath) />
<cfset stprops_polling = structNew() />
<cfset stprops_polling = obj.getData(stobj.pollingobjectid) />
<cfdump var="#stprops_polling#">
And also i don't understand how to check on if a user ip is already in
the pollingvotes as i need to search in multiple records to check if
that is so, i now have:
<!--- check if voter allready voted for this poll --->
<cfset obj =
createObject('component',application.stcoapi.pollingvotes.typePath) />
<cfset stprops_pollingvotes = structNew() />
<cfset stprops_pollingvotes = obj.getData(stobj.pollingobjectid) />
<cfdump var="#stprops_pollingvotes#">
How can i change this so i search on the "userip" field between the
records of table pollingvotes.
Sean also thanks for your insight.
Thanks
On Oct 23, 3:20 pm, Sean Coyne <[EMAIL PROTECTED]> wrote:
> > 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.
>
> You cant use the CF 8 array and struct short hand like that. [ ]
> creates an array, and { } creates a struct, but you need to do so in a
> cfset, you can do it inline.
>
> Sean
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---