Re: compare using cfcase
I know this is not a direct answer to your question, but in your scenario you should not be using cfcase. You should be using cfif/cfelse since there are only two possible conditions. Also remember that the Compare function is case-sensitive. -Mike Chabot On Tue, Jan 11, 2011 at 2:08 PM, Orlini, Robert wrote: > > Hi, > > I have to compare 2 values. I'm suing the cfacase and compare functions. I > have them comapring well if they either less than in one comparision or > equal to in another. > > How would I combine the cfcase to test whether the values are equal or less > than? I tried . but I figured > that would not work. > > See below. > > Thanks. > RO > HWW > > > > > > >String 1 is less than String 2 >The strings are not equal > > >String 1 is equal to String 2 >The strings are equal! > > > > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340641 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: compare using cfcase
Jason, That is what I have already suggested, but for some reason it is throwing an error. It is definitely valid syntax for a CFCASE statement. Which version of CF are you using. can you show us the exact error and section of code it relates to, On Tue, Jan 11, 2011 at 8:22 PM, Jason Fisher wrote: > > OR just use the list nature of CFCASE: > > > > string 1 is neither equal nor greater > > > string 1 is equal or greater > > > > > From: "Michael Grant" > Sent: Tuesday, January 11, 2011 2:59 PM > To: "cf-talk" > Subject: Re: compare using cfcase > > Try setting a var and then using _that_ in your cfcase. > > > > > > > > > > > String 1 is less than or equal to String 2 > The strings are not equal > > > String 1 is gt than String 2 > > > This is the default case > > > > > On Tue, Jan 11, 2011 at 2:44 PM, Orlini, Robert > wrote: > > > > > OK, but I have not done that in the code below. I just want to do a less > > than or equal comparison. Can that be done using CFCASE? > > > > Can it be or > > > > RO > > > > -Original Message- > > From: "Russ Michaels" > > Sent: Tuesday, January 11, 2011 2:38pm > > To: "cf-talk" > > Subject: RE: compare using cfcase > > > > > > If you have > > > > > > > > And > > > > > > Then you are duplicating the condition as you have 1 in both cfcases. > > > > The value must only appear once. > > > > Russ > > > > -Original Message- > > From: Orlini, Robert [mailto:rorl...@hwwilson.com] > > Sent: 11 January 2011 19:29 > > To: cf-talk > > Subject: RE: compare using cfcase > > > > > > No Russ, > > > > Here is the full code below. I would like one of the fields to test for > eq > > to or gt: > > > > > > > > > expression = #comparison#> > > > >String 1 is less than String 2 > >The strings are not equal > > > > > >String 1 is equal to or gt than String 2 > >The strings are equal! > > > > > >String 1 is greater than String 2 > >The strings are not equal > > > > > >This is the default case > > > > > > > > > > RO > > > > -Original Message- > > From: "Russ Michaels" > > Sent: Tuesday, January 11, 2011 2:22pm > > To: "cf-talk" > > Subject: RE: compare using cfcase > > > > > > Have you got multiple CFCASES with the same value ? > > > > > > -Original Message- > > From: Orlini, Robert [mailto:rorl...@hwwilson.com] > > Sent: 11 January 2011 19:19 > > To: cf-talk > > Subject: Re: compare using cfcase > > > > > > Thanks Russ, > > > > That gives me an error (below) when I tried to > check > > whether String 1 is equal to or greater than String 2 > > > > "Context validation error for tag CFCASE. > > The CFSWITCH has a duplicate CFCASE for value "1.0". > > ColdFusion cannot determine the line of the template that caused this > > error. > > This is often caused by an error in the exception handling subsystem. " > > > > RO > > > > -Original Message- > > From: "Russ Michaels" > > Sent: Tuesday, January 11, 2011 2:13pm > > To: "cf-talk" > > Subject: Re: compare using cfcase > > > > > > you mean CFCASE not CFACASE :-) > > > > to condition multiple values use a list > > > > > > > > > > Russ Michaels > > > > www.bluethunderinternet.com : Business hosting services & solutions > > www.cfmldeveloper.com: ColdFusion developer community > > www.michaels.me.uk : my blog > > www.cfsearch.com : ColdFusion search engine > > ** > > *skype me* : russmichaels > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340640 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: trying to pass ajax complex strings within another form
> > After that I wanted to click the top submit button that submits all > > > the other form elements to the action page. This of course generates > > > an error that says element data undefine. > > > > It looks like you're binding to an id of #submit, but the submit > button doesn't have an id="submit", so the ajax call doesn't work. > > Then you need to make sure to return false; inside that same jquery > handler, so that it doesn't try posting the form without the ajax call. > > > Will Hi Will, I have to apologize. I hadn't put the newest files on my server. They should be there now. There are two submit buttons. The one below the fieldset is the one tied to the ajax call. When clicked, it will loop throught the collection and display the results in a list. Then once thats done the submit above the fieldset is the one tied to the page form. When you click that the same error is generated. Again, I know I'm not describing my desired outcome very well, but ideally the values of BOTH forms should somehow be passed to the builderAction.cfm template.I am completely lost with this jQuery and ajax at the moment, but trying to work it out since I love how this particular application worksthe dynamic list I mean. btw, We have a mutual friend. Mr. Sexton! lol ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340639 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: trying to pass ajax complex strings within another form
> After that I wanted to click the top submit button that submits all > the other form elements to the action page. This of course generates > an error that says element data undefine. > It looks like you're binding to an id of #submit, but the submit button doesn't have an id="submit", so the ajax call doesn't work. Then you need to make sure to return false; inside that same jquery handler, so that it doesn't try posting the form without the ajax call. Will ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340638 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
trying to pass ajax complex strings within another form
Hi, im just beginning to learn structs and arrays. Someone gave me this bit of jQuery/ajax code that dynamically creates lists. I am able to input data in the forms inputs and click submit to display the results in an unordered list, which is exactly what I want. The problem is, the whole template I have this on is a form that passes FORM.variables to my action page, then this page then creates an html file with all the elements saved. I know that sounds confusing, and I know I'm not expressing whats going on well enough, so let me post the URL so it can be seen in action. http://www.teed-younger.com/pagebuilder/template.cfm The code in question is near the bottom of the page within the fieldset. Type in some data in the vendor and product inputs then click submit. You will see those inputs displayed in a list with the vendor formatted as a heading 2 tag. After that I wanted to click the top submit button that submits all the other form elements to the action page. This of course generates an error that says element data undefine. Is there not a way to save that list that was created so that it can be passed and displayed throughout the application? If this is confusing, believe me, its confusing me as well. I had another way of doing this, but was very problematic for the user. SO someone suggested and gave me this code to use. Thanks for any tips or help on this. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340637 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: compare using cfcase
OR just use the list nature of CFCASE: string 1 is neither equal nor greater string 1 is equal or greater From: "Michael Grant" Sent: Tuesday, January 11, 2011 2:59 PM To: "cf-talk" Subject: Re: compare using cfcase Try setting a var and then using _that_ in your cfcase. String 1 is less than or equal to String 2 The strings are not equal String 1 is gt than String 2 This is the default case On Tue, Jan 11, 2011 at 2:44 PM, Orlini, Robert wrote: > > OK, but I have not done that in the code below. I just want to do a less > than or equal comparison. Can that be done using CFCASE? > > Can it be or > > RO > > -Original Message- > From: "Russ Michaels" > Sent: Tuesday, January 11, 2011 2:38pm > To: "cf-talk" > Subject: RE: compare using cfcase > > > If you have > > > > And > > > Then you are duplicating the condition as you have 1 in both cfcases. > > The value must only appear once. > > Russ > > -Original Message- > From: Orlini, Robert [mailto:rorl...@hwwilson.com] > Sent: 11 January 2011 19:29 > To: cf-talk > Subject: RE: compare using cfcase > > > No Russ, > > Here is the full code below. I would like one of the fields to test for eq > to or gt: > > > > expression = #comparison#> > >String 1 is less than String 2 >The strings are not equal > > >String 1 is equal to or gt than String 2 >The strings are equal! > > >String 1 is greater than String 2 >The strings are not equal > > >This is the default case > > > > > RO > > -Original Message- > From: "Russ Michaels" > Sent: Tuesday, January 11, 2011 2:22pm > To: "cf-talk" > Subject: RE: compare using cfcase > > > Have you got multiple CFCASES with the same value ? > > > -Original Message- > From: Orlini, Robert [mailto:rorl...@hwwilson.com] > Sent: 11 January 2011 19:19 > To: cf-talk > Subject: Re: compare using cfcase > > > Thanks Russ, > > That gives me an error (below) when I tried to check > whether String 1 is equal to or greater than String 2 > > "Context validation error for tag CFCASE. > The CFSWITCH has a duplicate CFCASE for value "1.0". > ColdFusion cannot determine the line of the template that caused this > error. > This is often caused by an error in the exception handling subsystem. " > > RO > > -Original Message- > From: "Russ Michaels" > Sent: Tuesday, January 11, 2011 2:13pm > To: "cf-talk" > Subject: Re: compare using cfcase > > > you mean CFCASE not CFACASE :-) > > to condition multiple values use a list > > > > > Russ Michaels > > www.bluethunderinternet.com : Business hosting services & solutions > www.cfmldeveloper.com: ColdFusion developer community > www.michaels.me.uk : my blog > www.cfsearch.com : ColdFusion search engine > ** > *skype me* : russmichaels > > > > > > > > > > > > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340636 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: compare using cfcase
Try setting a var and then using _that_ in your cfcase. String 1 is less than or equal to String 2 The strings are not equal String 1 is gt than String 2 This is the default case On Tue, Jan 11, 2011 at 2:44 PM, Orlini, Robert wrote: > > OK, but I have not done that in the code below. I just want to do a less > than or equal comparison. Can that be done using CFCASE? > > Can it be or > > RO > > -Original Message- > From: "Russ Michaels" > Sent: Tuesday, January 11, 2011 2:38pm > To: "cf-talk" > Subject: RE: compare using cfcase > > > If you have > > > > And > > > Then you are duplicating the condition as you have 1 in both cfcases. > > The value must only appear once. > > Russ > > -Original Message- > From: Orlini, Robert [mailto:rorl...@hwwilson.com] > Sent: 11 January 2011 19:29 > To: cf-talk > Subject: RE: compare using cfcase > > > No Russ, > > Here is the full code below. I would like one of the fields to test for eq > to or gt: > > > > expression = #comparison#> > >String 1 is less than String 2 >The strings are not equal > > >String 1 is equal to or gt than String 2 >The strings are equal! > > >String 1 is greater than String 2 >The strings are not equal > > >This is the default case > > > > > RO > > -Original Message- > From: "Russ Michaels" > Sent: Tuesday, January 11, 2011 2:22pm > To: "cf-talk" > Subject: RE: compare using cfcase > > > Have you got multiple CFCASES with the same value ? > > > -Original Message- > From: Orlini, Robert [mailto:rorl...@hwwilson.com] > Sent: 11 January 2011 19:19 > To: cf-talk > Subject: Re: compare using cfcase > > > Thanks Russ, > > That gives me an error (below) when I tried to check > whether String 1 is equal to or greater than String 2 > > "Context validation error for tag CFCASE. > The CFSWITCH has a duplicate CFCASE for value "1.0". > ColdFusion cannot determine the line of the template that caused this > error. > This is often caused by an error in the exception handling subsystem. " > > RO > > -Original Message- > From: "Russ Michaels" > Sent: Tuesday, January 11, 2011 2:13pm > To: "cf-talk" > Subject: Re: compare using cfcase > > > you mean CFCASE not CFACASE :-) > > to condition multiple values use a list > > > > > Russ Michaels > > www.bluethunderinternet.com : Business hosting services & solutions > www.cfmldeveloper.com: ColdFusion developer community > www.michaels.me.uk : my blog > www.cfsearch.com : ColdFusion search engine > ** > *skype me* : russmichaels > > > > > > > > > > > > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340635 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: compare using cfcase
OK, but I have not done that in the code below. I just want to do a less than or equal comparison. Can that be done using CFCASE? Can it be or RO -Original Message- From: "Russ Michaels" Sent: Tuesday, January 11, 2011 2:38pm To: "cf-talk" Subject: RE: compare using cfcase If you have And Then you are duplicating the condition as you have 1 in both cfcases. The value must only appear once. Russ -Original Message- From: Orlini, Robert [mailto:rorl...@hwwilson.com] Sent: 11 January 2011 19:29 To: cf-talk Subject: RE: compare using cfcase No Russ, Here is the full code below. I would like one of the fields to test for eq to or gt: String 1 is less than String 2 The strings are not equal String 1 is equal to or gt than String 2 The strings are equal! String 1 is greater than String 2 The strings are not equal This is the default case RO -Original Message- From: "Russ Michaels" Sent: Tuesday, January 11, 2011 2:22pm To: "cf-talk" Subject: RE: compare using cfcase Have you got multiple CFCASES with the same value ? -Original Message- From: Orlini, Robert [mailto:rorl...@hwwilson.com] Sent: 11 January 2011 19:19 To: cf-talk Subject: Re: compare using cfcase Thanks Russ, That gives me an error (below) when I tried to check whether String 1 is equal to or greater than String 2 "Context validation error for tag CFCASE. The CFSWITCH has a duplicate CFCASE for value "1.0". ColdFusion cannot determine the line of the template that caused this error. This is often caused by an error in the exception handling subsystem. " RO -Original Message- From: "Russ Michaels" Sent: Tuesday, January 11, 2011 2:13pm To: "cf-talk" Subject: Re: compare using cfcase you mean CFCASE not CFACASE :-) to condition multiple values use a list Russ Michaels www.bluethunderinternet.com : Business hosting services & solutions www.cfmldeveloper.com: ColdFusion developer community www.michaels.me.uk : my blog www.cfsearch.com : ColdFusion search engine ** *skype me* : russmichaels ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340634 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: compare using cfcase
If you have And Then you are duplicating the condition as you have 1 in both cfcases. The value must only appear once. Russ -Original Message- From: Orlini, Robert [mailto:rorl...@hwwilson.com] Sent: 11 January 2011 19:29 To: cf-talk Subject: RE: compare using cfcase No Russ, Here is the full code below. I would like one of the fields to test for eq to or gt: String 1 is less than String 2 The strings are not equal String 1 is equal to or gt than String 2 The strings are equal! String 1 is greater than String 2 The strings are not equal This is the default case RO -Original Message- From: "Russ Michaels" Sent: Tuesday, January 11, 2011 2:22pm To: "cf-talk" Subject: RE: compare using cfcase Have you got multiple CFCASES with the same value ? -Original Message- From: Orlini, Robert [mailto:rorl...@hwwilson.com] Sent: 11 January 2011 19:19 To: cf-talk Subject: Re: compare using cfcase Thanks Russ, That gives me an error (below) when I tried to check whether String 1 is equal to or greater than String 2 "Context validation error for tag CFCASE. The CFSWITCH has a duplicate CFCASE for value "1.0". ColdFusion cannot determine the line of the template that caused this error. This is often caused by an error in the exception handling subsystem. " RO -Original Message- From: "Russ Michaels" Sent: Tuesday, January 11, 2011 2:13pm To: "cf-talk" Subject: Re: compare using cfcase you mean CFCASE not CFACASE :-) to condition multiple values use a list Russ Michaels www.bluethunderinternet.com : Business hosting services & solutions www.cfmldeveloper.com: ColdFusion developer community www.michaels.me.uk : my blog www.cfsearch.com : ColdFusion search engine ** *skype me* : russmichaels ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340633 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: compare using cfcase
No Russ, Here is the full code below. I would like one of the fields to test for eq to or gt: String 1 is less than String 2 The strings are not equal String 1 is equal to or gt than String 2 The strings are equal! String 1 is greater than String 2 The strings are not equal This is the default case RO -Original Message- From: "Russ Michaels" Sent: Tuesday, January 11, 2011 2:22pm To: "cf-talk" Subject: RE: compare using cfcase Have you got multiple CFCASES with the same value ? -Original Message- From: Orlini, Robert [mailto:rorl...@hwwilson.com] Sent: 11 January 2011 19:19 To: cf-talk Subject: Re: compare using cfcase Thanks Russ, That gives me an error (below) when I tried to check whether String 1 is equal to or greater than String 2 "Context validation error for tag CFCASE. The CFSWITCH has a duplicate CFCASE for value "1.0". ColdFusion cannot determine the line of the template that caused this error. This is often caused by an error in the exception handling subsystem. " RO -Original Message- From: "Russ Michaels" Sent: Tuesday, January 11, 2011 2:13pm To: "cf-talk" Subject: Re: compare using cfcase you mean CFCASE not CFACASE :-) to condition multiple values use a list Russ Michaels www.bluethunderinternet.com : Business hosting services & solutions www.cfmldeveloper.com: ColdFusion developer community www.michaels.me.uk : my blog www.cfsearch.com : ColdFusion search engine ** *skype me* : russmichaels ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340632 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: compare using cfcase
Have you got multiple CFCASES with the same value ? -Original Message- From: Orlini, Robert [mailto:rorl...@hwwilson.com] Sent: 11 January 2011 19:19 To: cf-talk Subject: Re: compare using cfcase Thanks Russ, That gives me an error (below) when I tried to check whether String 1 is equal to or greater than String 2 "Context validation error for tag CFCASE. The CFSWITCH has a duplicate CFCASE for value "1.0". ColdFusion cannot determine the line of the template that caused this error. This is often caused by an error in the exception handling subsystem. " RO -Original Message- From: "Russ Michaels" Sent: Tuesday, January 11, 2011 2:13pm To: "cf-talk" Subject: Re: compare using cfcase you mean CFCASE not CFACASE :-) to condition multiple values use a list Russ Michaels www.bluethunderinternet.com : Business hosting services & solutions www.cfmldeveloper.com: ColdFusion developer community www.michaels.me.uk : my blog www.cfsearch.com : ColdFusion search engine ** *skype me* : russmichaels ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340631 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Coldfusion Code Review Tool
>Can anyone recommend any good tool that can be used for Coldfusion Code >Reviews? >I tried Sonar but could'nt find coldfusion plugin for the same. > I built one a couple of years back. You'd need to have some knowledge of Regexs to use it. It uses a MySQL DB. http://willtomlinson.wordpress.com/2008/07/03/announcing-code-scanner-10/ Will ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340630 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: compare using cfcase
Thanks Russ, That gives me an error (below) when I tried to check whether String 1 is equal to or greater than String 2 "Context validation error for tag CFCASE. The CFSWITCH has a duplicate CFCASE for value "1.0". ColdFusion cannot determine the line of the template that caused this error. This is often caused by an error in the exception handling subsystem. " RO -Original Message- From: "Russ Michaels" Sent: Tuesday, January 11, 2011 2:13pm To: "cf-talk" Subject: Re: compare using cfcase you mean CFCASE not CFACASE :-) to condition multiple values use a list Russ Michaels www.bluethunderinternet.com : Business hosting services & solutions www.cfmldeveloper.com: ColdFusion developer community www.michaels.me.uk : my blog www.cfsearch.com : ColdFusion search engine ** *skype me* : russmichaels ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340629 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: compare using cfcase
you mean CFCASE not CFACASE :-) to condition multiple values use a list Russ Michaels www.bluethunderinternet.com : Business hosting services & solutions www.cfmldeveloper.com: ColdFusion developer community www.michaels.me.uk : my blog www.cfsearch.com : ColdFusion search engine ** *skype me* : russmichaels ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340628 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
compare using cfcase
Hi, I have to compare 2 values. I'm suing the cfacase and compare functions. I have them comapring well if they either less than in one comparision or equal to in another. How would I combine the cfcase to test whether the values are equal or less than? I tried . but I figured that would not work. See below. Thanks. RO HWW String 1 is less than String 2 The strings are not equal String 1 is equal to String 2 The strings are equal! ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340627 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Element is undefined in a Java object of type class [Ljava.lang.String; referenced as
You could also set application.administrationGateway in the 'psuedo-constructor', outside of any methods in Application.cfc. On Tue, Jan 11, 2011 at 10:43 AM, Greg Morphis wrote: > > This morning I started getting these errors referencing a variable in > Application.cfc: application.administratorGateway.. > "Element ADMINISTRATORGATEWAY is undefined in a Java object of type > class [Ljava.lang.String; referenced as" > It's in the onApplicationStart method so when the application started > it should have been created. > I bounced the server and everything returned to normal, but what could > have caused this and is there a way around it? > Should I check in the onRequest method to see if they exist and if not > create them? > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340626 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Element is undefined in a Java object of type class [Ljava.lang.String; referenced as
This morning I started getting these errors referencing a variable in Application.cfc: application.administratorGateway.. "Element ADMINISTRATORGATEWAY is undefined in a Java object of type class [Ljava.lang.String; referenced as" It's in the onApplicationStart method so when the application started it should have been created. I bounced the server and everything returned to normal, but what could have caused this and is there a way around it? Should I check in the onRequest method to see if they exist and if not create them? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340625 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Coldfusion Code Review Tool
I believe codecop is still available on riaforge.org. Sent from my iPhone On Jan 11, 2011, at 5:48 AM, dev losh wrote: > > Can anyone recommend any good tool that can be used for Coldfusion Code > Reviews? > I tried Sonar but could'nt find coldfusion plugin for the same. > > Thanks, > Devlosh > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340624 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Coldfusion Code Review Tool
Hi, Have a look at his http://www.google.com/enterprise/marketplace/viewListing?productListingId=5143210+12982233047309328439 If you do not have a google apps account then you can signup for a free one at www.cfmldeveloper.com -- Russ Michaels www.bluethunderinternet.com : Business hosting services & solutions www.cfmldeveloper.com: ColdFusion developer community www.michaels.me.uk : my blog www.cfsearch.com : ColdFusion search engine ** *skype me* : russmichaels ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340623 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Coldfusion Code Review Tool
Can anyone recommend any good tool that can be used for Coldfusion Code Reviews? I tried Sonar but could'nt find coldfusion plugin for the same. Thanks, Devlosh ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340622 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm