Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

client variables - quick confirmation

Participant ,
Jul 03, 2008 Jul 03, 2008
Can someone confirm something with client variables...


1. <cfparam name=client.colour value="blue"> in application.cfm
2. On a web page <cfset client.colour="red"> and the same page confirms this when I cfoutput the value
3 If I check that value on yet another page, it should be red, shouldn't it ? But, instead its blue

I'm having a major problem with cfclientstore=myDSN where it points to an Access2007 database via an ODBC socket connection.
TOPICS
Getting started
355
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Jul 03, 2008 Jul 03, 2008
quote:

Originally posted by: Dax Trajero
Can someone confirm something with client variables...


1. <cfparam name=client.colour value="blue"> in application.cfm



It should like,

<cfparam name="Client.colour" default="blue"> in your application.cfm
(quotes missing in the name attribute and also change your "value" attribute as "default")

then have a try again...
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jul 03, 2008 Jul 03, 2008
sorry about that, my application.cfm does actually use the correct format
<cfparam name="client.colour" default="blue">

I'm still getting the problem - does anyone else use MS Access 2007 ? When I look at the database it's storing "blue" but when I'm changing the value in another page with <cfset client.colour="red"> its not storing this change in the access database

I've tied upgrading CF from 8.0 to 8.01 with still no joy
I read Adobe's advice on a lack of Access 2007 driver, and used the ODBC socket instead but still no joy

Is there anything in my cfapplication that could be messing around ?

<cfapplication
name="Catalogue"
clientmanagement="Yes"
sessionmanagement="Yes"
setclientcookies="Yes"
sessiontimeout="#CreateTimeSpan(0, 0, 360, 0)#"
applicationtimeout="#CreateTimeSpan(0, 0, 360, 0)#"
clientstorage="cfclientstore"
loginstorage="session">
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Jul 03, 2008 Jul 03, 2008
Hi,

Since you are using ODBC drivers you must manually create the necessary CDATA and CGLOBAL database tables in your MS Access DB..

Make sure that you have those in your DB before proceeding..
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jul 03, 2008 Jul 03, 2008
LATEST
Yes, I did manually create them. They exist - and when I check them, they store "blue" for client.colour

I'm going to completely re-install CF from scratch again. Any problems and I'll head back here.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources