While creating a record programmatically, record gets successfully
inserted into table but category doesn't show up in admin, although it
is present in the table. Here is the code (we are on farcry v.6.)
<cfset oCategory =
CreateObject("component",application.types.dmCategory.typepath)>
<cfset catEnglishID = oCategory.getCategoryByName('English').objectID>
<cfset oArticle =
CreateObject("component",application.types.ctArticle.typepath)>
<cfset stRecords = structNew()>
<cfset stRecords.title = 'test'>
<cfset stRecords.objectID = createUUID()>
........................
<cfset stRecords.secArticle = listAppend(qArticles.secArticle,
catEnglishID)>
----------------------
<cfset newArticle =
oArticle.createData(stProperties=stRecords,user='user')>
What may be the reason?
Thanks.
Aram
--
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: [email protected]
To unsubscribe, email: [email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry