I realized that then I was calling q4:contentobject create the r_objectid that was being returned was not same objectid that was being assigned to the actual object being created. To narrow things down -- and make sure my script was not the culprit -- I created a very simple script that just creates a content object:
<cfimport taglib="/farcry/fourq/tags/" prefix="q4">
<cfscript>
stSect = structNew();
stSect.title = "testing";
stSect.label = "testing";
</cfscript>
<q4:contentobjectcreate typename="#application.types.mcSection.typePath#" stProperties="#stSect#" r_ObjectID="rSectID">
<cfoutput>
Section: #rSectID#
</cfoutput>
The rSectID variable returned above does not match the objectID of the object that gets created. Lines 34-37 of the 4q:contenobjectcreate tag look to me like they should be creating a new UUID if I don't pass one in my struct )and pass it back to me if I ask for it.) There is no record for the rSectID in the refObjects table, either.
Let me know if I've been ambiguous and I'll clarify.
Tom Cornilliac wrote:
Hmmm... Looks like there's some kinda problem with the typename.
Try this:
<cfscript> q4 = createObject("component", "farcry.fourq.fourq"); typename = q4.findType(stObj.aBody[1]); writeoutput(typename); </cfscript>
Put this in with that code you sent. I'm curious what you get for typename.
~tom
On Tue, 30 Nov 2004 10:00:26 -0600, Phil Truesdale <[EMAIL PROTECTED]> wrote:
Here you go Tom. I tried passing the type info in with the contentobject call too, same deal. This is the FC code. Let me know if you want the equivalent Spectra code as well.
<cfsetting enablecfoutputonly="yes"> <!--- import tag library ---> <cfimport taglib="/farcry/fourq/tags/" prefix="q4"> <cfoutput> This is the UUID for the first array element: #stObj.aBody[1]#
<cfdump var="#stObj.aBody#">
<!--- this breaks, but if I call it directly (not in another objects handler, it works. Ultimately, I plan to loop over these and display them ---> <q4:contentobject objectid="#stObj.aBody[1]#">
</cfoutput>
<cfsetting enablecfoutputonly="no">
Tom Cornilliac wrote:
I currently use the Spectra tag of the same way in the way that I'm attempting to in FarCry.
Can you post some example code?
~tom
--- You are currently subscribed to farcry-dev as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/
--- You are currently subscribed to farcry-dev as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
