Jump to content
Software FX Community

ColdFusion MX + ChartFx = Gack


User (Legacy)

Recommended Posts

I have been testing a current application for future migration to the 

ColdFusion MX platform and am rapidly coming to the conclusion that

ColdFusion MX and Chartfx cannot work together. Currently, we have an

application that works fine in ColdFusion 5, which sometime this next

fiscal year will need to be migrated to ColdFusion MX. Unfortunately,

none of the charting code I have tested works correctly on ColdFusion

MX. This is even after applying that latest service packs to MX and

Chartfx.

Typically, It gives some sort of bogus "Method Name Not Found" error.

As an illustration, let me give an example. I took the code from one of

your examples in the support site titled "Changing Fonts" below:

<!--- Include this file so we can use all the ChartFX constants --->

<CFINCLUDE TEMPLATE="/Include/CfxIE.cfi">

<!--- Create the ChartFX Server Object --->

<CFOBJECT ACTION="Create" NAME="Chart" CLASS="ChartFX.WebServer">

<!--- Set the UserAgent property to allow browser detection --->

<CFSET Chart.UserAgent=#HTTP_USER_AGENT# >

<!---The samples look better in white--->

<CFSET Chart.RgbBk=16777215>

<CFSET Chart.Rgb2DBk=16777215>

<CFSET Chart.Chart3D=FALSE>

<CFSET Chart.Gallery = BAR>

<CFSET Chart.AxesStyle = CAS_FLATFRAME>

<!---Change Y axis Font--->

<CFSET Axis=Chart.GetArrayProp("Item",AXIS_Y,Chart.Axis)>

<CFSET Font = Axis.Font>

<CFSET Font.Name = "Courier New">

<CFSET Font.Size = 8>

<CFSET Font.Bold = True>

<!---Change Top Title Font--->

<CFSET Font = Chart.TopFont>

<CFSET Font.Name = "Verdana">

<CFSET Font.Size = 10>

<CFSET Chart.SetArrayProp("Title",CHART_TOPTIT,"Chart Title")>

<CFOUTPUT> #Chart.GetHtmlTag("500","350")# </CFOUTPUT>

Running this code generates the error below:

An exception occurred during method selection process for Method NAME

The cause of this exception was that there are no methods with the

specified method name and argument types.

Please check your function and try again.

The Error Occurred in C:\CFusionMX\wwwroot\Chartfx_test\font_demo.cfm:

line 27

25 : <CFSET Axis=Chart.GetArrayProp("Item",AXIS_Y,Chart.Axis)>

26 : <CFSET Font = Axis.Font>

27 : <CFSET Font.Name = "Courier New">

28 : <CFSET Font.Size = 8>

29 : <CFSET Font.Bold = True>

If you comment out the offending line, it will just error out again on

the next one and so on. I have found several properties that will

produce this same error message. Admittedly, the font one is not a show

stopper, but not being able to set axis mins and maxs is.

So, right now I am currently at a loss as far as how to proceed and am

curious for any input softwarefx support would have on the issue of

ColdFusion MX support.

Chris Denslow

Link to comment
Share on other sites

Hello,

We just published an article on our support web site that explains how to

properly set a font in ChartFX Internet 5.5 using ColdFusion. Here is a

link to that article. http://support.softwarefx.com/kb/143/1/053.htm

JT

Tech. Support

561-392-2023

"Chris Denslow" <cdenslow@hgl.com> wrote in message

news:Xns929467E0FE73Fcdenslowhglcom@198.172.137.122...

> I have been testing a current application for future migration to the

> ColdFusion MX platform and am rapidly coming to the conclusion that

> ColdFusion MX and Chartfx cannot work together. Currently, we have an

> application that works fine in ColdFusion 5, which sometime this next

> fiscal year will need to be migrated to ColdFusion MX. Unfortunately,

> none of the charting code I have tested works correctly on ColdFusion

> MX. This is even after applying that latest service packs to MX and

> Chartfx.

>

> Typically, It gives some sort of bogus "Method Name Not Found" error.

> As an illustration, let me give an example. I took the code from one of

> your examples in the support site titled "Changing Fonts" below:

>

> <!--- Include this file so we can use all the ChartFX constants --->

> <CFINCLUDE TEMPLATE="/Include/CfxIE.cfi">

>

> <!--- Create the ChartFX Server Object --->

> <CFOBJECT ACTION="Create" NAME="Chart" CLASS="ChartFX.WebServer">

>

> <!--- Set the UserAgent property to allow browser detection --->

> <CFSET Chart.UserAgent=#HTTP_USER_AGENT# >

>

> <!---The samples look better in white--->

> <CFSET Chart.RgbBk=16777215>

> <CFSET Chart.Rgb2DBk=16777215>

> <CFSET Chart.Chart3D=FALSE>

> <CFSET Chart.Gallery = BAR>

> <CFSET Chart.AxesStyle = CAS_FLATFRAME>

>

> <!---Change Y axis Font--->

> <CFSET Axis=Chart.GetArrayProp("Item",AXIS_Y,Chart.Axis)>

> <CFSET Font = Axis.Font>

> <CFSET Font.Name = "Courier New">

> <CFSET Font.Size = 8>

> <CFSET Font.Bold = True>

>

> <!---Change Top Title Font--->

> <CFSET Font = Chart.TopFont>

> <CFSET Font.Name = "Verdana">

> <CFSET Font.Size = 10>

> <CFSET Chart.SetArrayProp("Title",CHART_TOPTIT,"Chart Title")>

>

> <CFOUTPUT> #Chart.GetHtmlTag("500","350")# </CFOUTPUT>

>

> Running this code generates the error below:

>

> An exception occurred during method selection process for Method NAME

> The cause of this exception was that there are no methods with the

> specified method name and argument types.

> Please check your function and try again.

>

> The Error Occurred in C:\CFusionMX\wwwroot\Chartfx_test\font_demo.cfm:

> line 27

>

> 25 : <CFSET Axis=Chart.GetArrayProp("Item",AXIS_Y,Chart.Axis)>

> 26 : <CFSET Font = Axis.Font>

> 27 : <CFSET Font.Name = "Courier New">

> 28 : <CFSET Font.Size = 8>

> 29 : <CFSET Font.Bold = True>

>

> If you comment out the offending line, it will just error out again on

> the next one and so on. I have found several properties that will

> produce this same error message. Admittedly, the font one is not a show

> stopper, but not being able to set axis mins and maxs is.

>

> So, right now I am currently at a loss as far as how to proceed and am

> curious for any input softwarefx support would have on the issue of

> ColdFusion MX support.

>

> Chris Denslow

>

Link to comment
Share on other sites

Ok, that fixes the fonts issue.  But I have several other properties

that just are not working correctly. For example:

Setting Axis Maximum Values

Setting Axis Minimum Values

Setting Axis Step Values

Setting the position of the series legend box (ie SerLegBoxObj.Docked -

TGFP_Bottem)

Are there going to be articles on these as well? Is the designer

application going to be changed to generate code more compatible with

coldfusion mx in the future? Also, is there somewhere we can get

additional numeric values for fonts? There are very few in the standard

includes.

"SFX Tech Support" <support@softwarefx.com> wrote in message

news:JP56KmZZCHA.3136@webserver1.softwarefx.com...

> Hello,

>

> We just published an article on our support web site that explains how to

> properly set a font in ChartFX Internet 5.5 using ColdFusion. Here is a

> link to that article. http://support.softwarefx.com/kb/143/1/053.htm

>

> JT

> Tech. Support

> 561-392-2023

>

> "Chris Denslow" <cdenslow@hgl.com> wrote in message

> news:Xns929467E0FE73Fcdenslowhglcom@198.172.137.122...

> > I have been testing a current application for future migration to the

> > ColdFusion MX platform and am rapidly coming to the conclusion that

> > ColdFusion MX and Chartfx cannot work together. Currently, we have an

> > application that works fine in ColdFusion 5, which sometime this next

> > fiscal year will need to be migrated to ColdFusion MX. Unfortunately,

> > none of the charting code I have tested works correctly on ColdFusion

> > MX. This is even after applying that latest service packs to MX and

> > Chartfx.

> >

> > Typically, It gives some sort of bogus "Method Name Not Found" error.

> > As an illustration, let me give an example. I took the code from one of

> > your examples in the support site titled "Changing Fonts" below:

> >

> > <!--- Include this file so we can use all the ChartFX constants --->

> > <CFINCLUDE TEMPLATE="/Include/CfxIE.cfi">

> >

> > <!--- Create the ChartFX Server Object --->

> > <CFOBJECT ACTION="Create" NAME="Chart" CLASS="ChartFX.WebServer">

> >

> > <!--- Set the UserAgent property to allow browser detection --->

> > <CFSET Chart.UserAgent=#HTTP_USER_AGENT# >

> >

> > <!---The samples look better in white--->

> > <CFSET Chart.RgbBk=16777215>

> > <CFSET Chart.Rgb2DBk=16777215>

> > <CFSET Chart.Chart3D=FALSE>

> > <CFSET Chart.Gallery = BAR>

> > <CFSET Chart.AxesStyle = CAS_FLATFRAME>

> >

> > <!---Change Y axis Font--->

> > <CFSET Axis=Chart.GetArrayProp("Item",AXIS_Y,Chart.Axis)>

> > <CFSET Font = Axis.Font>

> > <CFSET Font.Name = "Courier New">

> > <CFSET Font.Size = 8>

> > <CFSET Font.Bold = True>

> >

> > <!---Change Top Title Font--->

> > <CFSET Font = Chart.TopFont>

> > <CFSET Font.Name = "Verdana">

> > <CFSET Font.Size = 10>

> > <CFSET Chart.SetArrayProp("Title",CHART_TOPTIT,"Chart Title")>

> >

> > <CFOUTPUT> #Chart.GetHtmlTag("500","350")# </CFOUTPUT>

> >

> > Running this code generates the error below:

> >

> > An exception occurred during method selection process for Method NAME

> > The cause of this exception was that there are no methods with the

> > specified method name and argument types.

> > Please check your function and try again.

> >

> > The Error Occurred in C:\CFusionMX\wwwroot\Chartfx_test\font_demo.cfm:

> > line 27

> >

> > 25 : <CFSET Axis=Chart.GetArrayProp("Item",AXIS_Y,Chart.Axis)>

> > 26 : <CFSET Font = Axis.Font>

> > 27 : <CFSET Font.Name = "Courier New">

> > 28 : <CFSET Font.Size = 8>

> > 29 : <CFSET Font.Bold = True>

> >

> > If you comment out the offending line, it will just error out again on

> > the next one and so on. I have found several properties that will

> > produce this same error message. Admittedly, the font one is not a show

> > stopper, but not being able to set axis mins and maxs is.

> >

> > So, right now I am currently at a loss as far as how to proceed and am

> > curious for any input softwarefx support would have on the issue of

> > ColdFusion MX support.

> >

> > Chris Denslow

> >

>

>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...