So I added the ftJoin library thingy that Blair mentioned in a
previous post to the article type and it's showing an "Open Library"
button and lists the issue names from the other module. I drag that
issue name over to the left column but when I click the "close"
button, the admin form screen reloads with the following error:

Error: date must be a date ().

The error occurred in E:\websites\wwwroot\farcry\core\packages\fourq
\gateway\DBGateway.cfc: line 562
Called from E:\websites\wwwroot\farcry\core\packages\fourq\gateway
\DBGateway.cfc: line 441
Called from E:\websites\wwwroot\farcry\core\packages\fourq\fourq.cfc:
line 515
Called from E:\websites\wwwroot\farcry\core\packages\types\types.cfc:
line 443
Called from E:\websites\wwwroot\farcry\core\admin\facade\library.cfc:
line 147

560 :     <cfset stField.value = "NULL" />
561 :   <cfelse>
562 :     <cfabort showerror="Error: #field# must be a date
(#propertyValue#).">
563 :   </cfif>
564 : </cfcase>

Now, there is a date field in the Article module/type - is that what's
bombing? Is there a way for me to add a little calendar button next to
the date field? Or is the error from something else?

Here's the articles type:
 <cfcomponent
    name="Articles"
    displayname="Articles"
    extends="farcry.core.packages.types.types"
    hint="Custom Type for Articles"
    bUseInTree="false"
    bObjectBroker="true"
    objectBrokerMaxObjects="1000">

  <!--- property definitions --->
  <cfproperty ftSeq="1"
    ftFieldSet="Article Details"
    name="issue"
    type="UUID"
    required="true"
    hint="Issue"
    ftLabel="Issue"
    ftType="UUID"
    ftJoin="issues"
    ftValidation="required" />

  <cfproperty ftSeq="2"
    ftFieldSet="Article Details"
    name="title"
    type="string"
    required="true"
    hint="Headline"
    ftLabel="Headline"
    ftType="string"
    ftValidation="required" />

  <cfproperty ftSeq="3"
    ftFieldSet="Article Details"
    name="date"
    type="date"
    required="true"
    hint="Date"
    ftLabel="Date"
    ftType="date"
    ftValidation="required" />

  <cfproperty ftSeq="4"
    ftFieldSet="Article Details"
    name="section"
    type="string"
    required="true"
    hint="Section"
    ftLabel="Section"
    ftType="string"
    ftValidation="required" />

  <cfproperty ftSeq="5"
    ftFieldSet="Article Details"
    name="sortid"
    type="numeric"
    required="false"
    hint="Sort ID"
    ftLabel="Sort ID"
    ftType="numeric" />

  <cfproperty ftSeq="6"
    ftFieldSet="Article Details"
    name="graphic"
    type="uuid"
    required="false"
    hint="Graphic"
    ftJoin="dmImage"
    ftLabel="Graphic"
    ftType="UUID" />

  <cfproperty ftSeq="7"
    ftFieldSet="Article Details"
    name="author"
    type="string"
    required="false"
    hint="Author"
    ftLabel="Author"
    ftType="string" />

  <cfproperty ftSeq="8"
    ftFieldSet="Article Details"
    name="articletext"
    type="longchar"
    required="false"
    hint="Article Text"
    ftLabel="Article Text"
    ftType="longchar" />

  <cfproperty ftSeq="9"
    ftFieldSet="Display"
    name="displayMethod"
    type="string"
    required="false"
    hint="Display method template"
    ftLabel="Display Method"
    ftType="webskin"
    ftprefix="displayPage" />

  <cfproperty name="status"
    type="string"
    required="true"
    default="draft"
    hint="status of the object" />

  <cfproperty name="commentlog"
    type="longchar"
    hint="Workflow comment log"
    required="no" />

</cfcomponent>

And here's the issues type:
 <cfcomponent
    name="Issues"
    displayname="Issues"
    extends="farcry.core.packages.types.types"
    hint="Custom Type for Issues"
    bUseInTree="false"
    bObjectBroker="true"
    objectBrokerMaxObjects="1000">

  <!--- property definitions --->
  <cfproperty ftSeq="1"
    ftFieldSet="Issue Details"
    name="title"
    type="string"
    required="true"
    hint="Issue Month"
    ftLabel="Issue Month"
    ftType="string"
    ftValidation="required" />

  <cfproperty ftSeq="2"
    ftFieldSet="Issue Details"
    name="year"
    type="string"
    required="true"
    hint="Issue Year"
    ftLabel="Issue Year"
    ftType="string"
    ftValidation="required" />

  <cfproperty ftSeq="3"
    ftFieldSet="Issue Details"
    name="covergraphic"
    type="uuid"
    required="false"
    hint="Cover Graphic"
    ftJoin="dmImage"
    ftLabel="Cover Graphic"
    ftType="UUID" />

  <cfproperty ftSeq="4"
    ftFieldSet="Issue Details"
    name="wrapcopy"
    type="longchar"
    required="false"
    hint="Wrap Copy"
    ftLabel="Wrap Copy"
    ftType="longchar" />

  <cfproperty ftSeq="5"
    ftFieldSet="Display"
    name="displayMethod"
    type="string"
    required="false"
    hint="Display method template"
    ftLabel="Display Method"
    ftType="webskin"
    ftprefix="displayPage" />

  <cfproperty name="status"
    type="string"
    required="true"
    default="draft"
    hint="status of the object" />

  <cfproperty name="commentlog"
    type="longchar"
    hint="Workflow comment log"
    required="no" />

</cfcomponent>


--~--~---------~--~----~------------~-------~--~----~
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