Data Structure

9 views
Skip to first unread message

Skellington

unread,
Jul 27, 2011, 2:04:08 PM7/27/11
to DataMgr
Hello,
I would like to use the insert record function but I'm not using a
form struct. What do I need to do to specify the data struct so that I
can take advantage of this feature?

Thanks,
Charlie

Kym Kovan

unread,
Jul 28, 2011, 4:23:07 AM7/28/11
to dat...@googlegroups.com

this is one way to do it (copied from the first bit of code I saw so I
kludged the naming):-

<cfset theQueryDataArguments = StructNew() />
<cfset theQueryDataArguments.aFieldName = 0 />
<cfset theQueryDataArguments.anotherFieldName = arguments.aValue />
<!--- and save a new control entry --->
<cfset setStuff =DataMgr.InsertRecord(tablename="theTableName",
data=theQueryDataArguments) />

Is that what you wanted?

--

Yours,

Kym


Reply all
Reply to author
Forward
0 new messages