I have a few issues with an extended dmFile.  my custom dmfile code is
at the end of this message..

I am running 4.0.9 I've put them in my own order of priority, I really
hope someone can help

If you review my dmfile.cfc below, you'll see I have added some catXXX
properties as well as 2 properties called pubtype and pubdivision that
use the category tree.

So I create a new object set pubdivision, pubtype (these use "selects"
to grabe a single choice from thecategory tree (see cfc below).

I check off a catApplication and catProduct. and save.

I look at the record in the DB and it looks good,

there's an appropriate acategoryid in the columns pubdivision,
pubtype, catApplication and catProduct, and catFile is empty.

Everything is fine... So I "edit" the newly create object and I get
weird results on edit screen.

1. pubdivision and pubtype are correctly "default selected'
2. My category tree for catApplication DOES NOT HAVE anything checked
and it should
3. My category tree for catProduct DOES NOT HAVE anything checked and
it should
4. The catFile Category tree shows my pubdivision and pubtype's
checked, eventhough it should not.

If at this point I just save it, then look at the DB, I get:

1. pubtype & division are still correct, 1 categoryID in each
2. catFile is now populated with pubtype and division ids above
(obviously cause I saved it, though they should not have been checked
to begin with

3. catApplication now has incorrect categoryID representing the
pubtype and division.


I am sure I must be overlooking something, but I cant figure it out..

4. lastly, since I am extending dmFile and specify the catFile
property with no ftSeq and ftFieldSet, shouldnt that overrride the
core dmFile and NOT display the "categorisation" form fields?




Issue  - I thought it was fixed, but maybe not yet...  the - and _
characters are being removed from the uploaded file name

<cfcomponent extends="farcry.core.packages.types.dmFile"
displayname="File" bfriendly=1  hint="File objects" bUseInTree="1">

<!--- added these properties to file storage management, may need to
swith to cats --->
<cfproperty ftSeq="3" ftFieldset="File Details"
name="filename"       type="string" default=""
ftLabel="File"                    required="no"   ftType="file"
ftDestination="" ftSecure="false" hint="The name of the file to be
uploaded" />
<cfproperty ftSeq="4" ftFieldset="File Details"
name="pubrevision"    type="string" default=""
ftLabel="Revision"                required="no"
hint="Document Revision Code">
<cfproperty ftSeq="5" ftFieldset="File Details"
name="pubdivision"    type="string" default=""
ftLabel="Division"                required="yes"  ftType="category"
ftalias="file_division" ftRenderType="dropdown"
ftDropdownFirstItem="Select" ftSelectMultiple="false" hint="The
division owning the file" />
<cfproperty ftSeq="6" ftFieldset="File Details"
name="pubtype"        type="string" default="" ftLabel="Publication
Type"        required="yes"  ftType="category"
ftalias="file_categories"     ftRenderType="dropdown"
ftDropdownFirstItem="Select" ftSelectMultiple="false" hint="The type
of publication, datasheet, appnote, whitepaper" />
<cfproperty ftSeq="7" ftFieldset="File Details"
name="catApplication" type="string" default=""
ftLabel="Applications"            required="no"   ftType="category"
ftalias="application_segments" hint="Application relationship"
fthelptitle=" " fthelpsection="Select the appropriate application
segments is any." />
<cfproperty ftSeq="8" ftFieldset="File Details"
name="catProduct"     type="string" default=""
ftLabel="Products"                required="no"   ftType="category"
ftalias="product_categories"   hint="Product Relationship."
fthelptitle=" " fthelpsection="Select the appropriate product
categories if any." />

<cfproperty name="catFile" type="string" default="" required="no" />

<cfproperty ftSeq="26" ftFieldSet="File Security" name="lGroups"
type="string" default="6" ftLabel="Allowed Policy Groups"
required="no"  ftType="list" ftRenderType="checkbox"
ftSelectMultiple="true" ftListData="getGroups" hint="Security groups
allowed to use this file" fthelptitle=" "
                        fthelpsection="To be used in the future leave as 
anonymous unless
instructed." />

<cffunction name="getGroups" displayname="gets a list of dmGroups">
                <cfset var qGroups = QueryNew("groupId,groupName") />
                <cfquery datasource="#application.dsn#" name="qGroups">
                        SELECT PolicyGroupId as [value]
                                , PolicyGroupName as [name]
                        FROM dmPolicyGroup
                        ORDER BY PolicyGroupName
                </cfquery>
                <cfreturn qGroups />
</cffunction>

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