Hi,
When using the following code in hook.js I can use the logged in user in my SQL statements. But this does not seem to work in a mobile device.
beforelaunchapp : function(app){
var parmAdded = !Ext.isEmpty(app.get('params'));
if (app.get('type') === '*URL') {return true;}
if (!parmAdded){
app.set('params','userId=' + Valence.login.config.Runtime.getUserId());
app.commit();
}
},
Some suggestion how to fix this?
Kind regards,
Theo
When using the following code in hook.js I can use the logged in user in my SQL statements. But this does not seem to work in a mobile device.
beforelaunchapp : function(app){
var parmAdded = !Ext.isEmpty(app.get('params'));
if (app.get('type') === '*URL') {return true;}
if (!parmAdded){
app.set('params','userId=' + Valence.login.config.Runtime.getUserId());
app.commit();
}
},
Some suggestion how to fix this?
Kind regards,
Theo
Comment