PDA

View Full Version : Problem in url config of JSON reader



prasad508211
24 Jul 2010, 2:34 AM
Hi,
I have the following code in my application :

var currLoggedinUserDesc = 'accounts'

var loggedinUsrDesc = new Ext.data.JsonStore({
autoLoad:true,
url : '${createLink(controller:${currLoggedinUserDesc},action:'getLoggedinUsrDesc')}',
fields: ['usrDesc','usrNm']
});

I am not able to assign controller a variable called currLoggedinUserDesc but I am not been able to do that. Please Help
Thanks.

Condor
25 Jul 2010, 5:24 AM
Which server-side language is this? Wouldn't it be better to ask this question on a forum about that language?