Just guessing now really. You can send me you code if you want and I will give it a look over.
On 5/4/07, Andrew Scott <[EMAIL PROTECTED]> wrote: > > But hang on a second.... > > AJ, before I do it at the CF level I have that <input type="checkbox" .... > /> but it is not going into the DB first of all, so how can I display it > back at the CF level? > > and besides <cfif bAllowLink>checked="checkd"</a> is displaying it at the > CF level. > > > On 5/4/07, AJ Mercer <[EMAIL PROTECTED]> wrote: > > > > I think you will still need to do it at the ColdFusion level so Farcry > > can display the form correclty, ie, check the box. > > > > > > On 5/4/07, Andrew Scott < [EMAIL PROTECTED] > wrote: > > > > > > In the DB I set them to false, before you sent this and still no go. > > > > > > > > > > > > On 5/4/07, AJ Mercer < [EMAIL PROTECTED] > wrote: > > > > > > > It may be that bAllowLink needs a default in cfparameter (false), > > > > without one the fields will be set to null by the DBMS. > > > > > > > > On 5/4/07, Andrew Scott <[EMAIL PROTECTED] > wrote: > > > > > > > > > > No I am not using plp, just a straight forward dmNavigation.cfcin > > > > > the types directory. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Andrew Scott > > > > > Senior Coldfusion Developer > > > > > Aegeon Pty. Ltd. > > > > > www.aegeon.com.au > > > > > Phone: +613 8676 4223 > > > > > Mobile: 0404 998 273 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > *From:* [email protected] [mailto: > > > > > [EMAIL PROTECTED] *On Behalf Of *AJ Mercer > > > > > *Sent:* Friday, 4 May 2007 3:16 PM > > > > > *To:* [email protected] > > > > > *Subject:* [farcry-dev] Re: Still need an answer to checkboxes in > > > > > custom types > > > > > > > > > > > > > > > > > > > > are you using PLP? > > > > > it has a debug attribute - set this to true and it will output > > > > > what is in the PLP structure. > > > > > > > > > > On 5/4/07, *Andrew Scott* < [EMAIL PROTECTED]> wrote: > > > > > > > > > > No, > > > > > > > > > > > > > > > > > > > > The field exists, it's just not storing the selected value. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Andrew Scott > > > > > Senior Coldfusion Developer > > > > > Aegeon Pty. Ltd. > > > > > www.aegeon.com.au > > > > > Phone: +613 8676 4223 > > > > > Mobile: 0404 998 273 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > *From:* [email protected] [mailto: > > > > > [EMAIL PROTECTED] *On Behalf Of *AJ Mercer > > > > > *Sent:* Friday, 4 May 2007 2:58 PM > > > > > > > > > > > > > > > *To:* [email protected] > > > > > *Subject:* [farcry-dev] Re: Still need an answer to checkboxes in > > > > > custom types > > > > > > > > > > > > > > > > > > > > Not as such - at the time the object was created the new field did > > > > > not exist and there for is not in the PLP file. When a new version of > > > > > that > > > > > object is created, it gets the new field. > > > > > > > > > > > > > > > Was this your issue? > > > > > > > > > > On 5/4/07, *Andrew Scott* <[EMAIL PROTECTED]> wrote: > > > > > > > > > > So it's a bug in the core then? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Andrew Scott > > > > > Senior Coldfusion Developer > > > > > Aegeon Pty. Ltd. > > > > > www.aegeon.com.au > > > > > Phone: +613 8676 4223 > > > > > Mobile: 0404 998 273 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > *From:* [email protected] [mailto: > > > > > [EMAIL PROTECTED] *On Behalf Of *AJ Mercer > > > > > *Sent:* Friday, 4 May 2007 2:39 PM > > > > > > > > > > > > > > > *To:* [email protected] > > > > > *Subject: *[farcry-dev] Re: Still need an answer to checkboxes in > > > > > custom types > > > > > > > > > > > > > > > > > > > > Here is a thought - are you working on an existing object > > > > > (dmNavigation)? > > > > > > > > > > I remember banging my head against the monitor (in the CRT monitor > > > > > days!) trying to figure why my mods would not work on existing > > > > > objects but > > > > > did on new ones. Turned out to do with the PLP storeage. The old > > > > > objects did > > > > > not have an entry for my new field. It all came good when I created a > > > > > new > > > > > version of an existing object. > > > > > > > > > > On 5/4/07, *Andrew Scott* <[EMAIL PROTECTED]> wrote: > > > > > > > > > > Yes, > > > > > > > > > > > > > > > > > > > > I did follow that route too, but it doesn't store anything in the > > > > > tables when I do > > > > > > > > > > > > > > > > > > > > <input type="checkbox" name="bAllowLink" id="bAllowLink" value="1" > > > > > <cfif bAllowLink>checked="checked"</cfif>> > > > > > > > > > > > > > > > Andrew Scott > > > > > Senior Coldfusion Developer > > > > > Aegeon Pty. Ltd. > > > > > www.aegeon.com.au > > > > > Phone: +613 8676 4223 > > > > > Mobile: 0404 998 273 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > *From:* [email protected] [mailto: > > > > > [EMAIL PROTECTED] *On Behalf Of *AJ Mercer > > > > > *Sent:* Friday, 4 May 2007 12:15 PM > > > > > *To:* [email protected] > > > > > *Subject:* [farcry-dev] Re: Still need an answer to checkboxes in > > > > > custom types > > > > > > > > > > > > > > > > > > > > In this example, the input does not have a value attribute > > > > > maybe something like this would work > > > > > <input type="checkbox" name="bAllowLink" id="bAllowLink" value="1" > > > > > <cfif bAllowLink>checked="checked"</cfif>> > > > > > > > > > > You will also need to define a default value of 0 (zero) in case > > > > > the check box is not checked > > > > > > > > > > > > > > > I am assuming you have deployed you new type. > > > > > > > > > > On 5/4/07, *Andrew Scott* <[EMAIL PROTECTED]> wrote: > > > > > > > > > > I am still trying to find a solution to extending a type, with a > > > > > checkbox. > > > > > > > > > > > > > > > > > > > > I know that in V3.01 that the core uses the DBGateway to decide > > > > > what to do, my question is this I can't make changes to the core as > > > > > the > > > > > system is on a hosted server. So I need to be able to put a checkbox > > > > > into > > > > > the extended type, and have it save to the database and populate when > > > > > the > > > > > type is then displayed. > > > > > > > > > > > > > > > > > > > > I followed the wiki directions, to create and extend the > > > > > dmNavigation and placed > > > > > > > > > > > > > > > > > > > > <input type="checkbox" name="bAllowLink" id="bAllowLink" <cfif > > > > > bAllowLink>checked="checked"</cfif>> > > > > > > > > > > > > > > > > > > > > The problem is that the dbgateway cracks it because the > > > > > properyValue doesn't exist, and if it does it cracks it because it > > > > > can't > > > > > convert on to a Boolean. > > > > > > > > > > > > > > > > > > > > Someone out there must know how to do this, surely. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Andrew Scott > > > > > Senior Coldfusion Developer > > > > > Aegeon Pty. Ltd. > > > > > www.aegeon.com.au > > > > > Phone: +613 8676 4223 > > > > > Mobile: 0404 998 273 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > If you are not living on the edge, > > > > > You are taking up too much space. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > If you are not living on the edge, > > > > > You are taking up too much space. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > If you are not living on the edge, > > > > > You are taking up too much space. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > If you are not living on the edge, > > > > > You are taking up too much space. > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > If you are not living on the edge, > > > > You are taking up too much space. > > > > www.aegeon.com.au > > > > Phone: +613 8676 4223 > > > > Mobile: 0404 998 273 > > > > > > > > > > > > > > -- > > If you are not living on the edge, > > You are taking up too much space. > > www.aegeon.com.au > > Phone: +613 8676 4223 > > Mobile: 0404 998 273 > > > > > > -- If you are not living on the edge, You are taking up too much space. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
