try ((BaseObject)data.getUser()).getPrimaryKey()
and if you want it as a String you can use getPrimaryKeyAsString or just
call .toString on the result.
john mcnally
Frank Villarreal wrote:
>
> Can someone please tell me why the following code is returns a null string?
>
> <snip>
> RunData data = (RunData)request.getAttribute("rundata");
> User user = data.getUser();
> String strUserID =(String) user.getPerm("USER_ID");
> </snip>
>
> ... at this point strUserID = null!!!
>
> Turbine is accessing a MSSQLServer 7 database and the USER_ID field in table
> TURBINE_USER is an "int" datatype - also an identity
> column(autoincrementing).
>
> What is really bizarre, is that when I call the getPerm(String) method for
> all other fields, the values are returned. It seems that only the USER_ID
> field is returning null. And yes, the database record-field does contain a
> non-null value.
>
> Please help! I've exhausted the mailing archive, source code, and online
> docs ... still can't find an answer...
>
> -Frank
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]