User Variables Not Being Set

Post here your questions about Actionscript and Java server side extensions development.

Moderators: Lapo, Bax

Post Reply
coolboy714cp
Posts: 323
Joined: 06 Feb 2010, 02:45
Contact:

User Variables Not Being Set

Post by coolboy714cp »

In my extension I have the following coding:

Code: Select all

...
uVars.headItem = sHeadItem;
uVars.bodyItem = sBodyItem;
...
_server.setUserVariables(userObj, uVars);
The sHeadItem variable receives a value from a database, as well as the sBodyItem.
The userObj and uVars are not null, so I don't see why the user variables aren't being set.
I know they are not being set because I don't see the update on the AdminTool.

Can anyone tell me what they think might be the problem?
BigFIsh
Posts: 1698
Joined: 25 Feb 2008, 19:26
Location: New Zealand

Post by BigFIsh »

Try casting the variables with String, Boolean or Number

i.e. String(uVars.sHeadItem)
Smartfox's forum is my daily newspaper.
coolboy714cp
Posts: 323
Joined: 06 Feb 2010, 02:45
Contact:

Post by coolboy714cp »

Alright, thanks! It works fine now.
Post Reply