Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

zzsys_user_id in objects

Locked
zazzium
Posts: 84
Joined: Mon Jul 04, 2011 12:52 am

zzsys_user_id in objects

Unread post by zazzium »

I cant get a user ID with #zzsys_user_id# in subform object SQL ..according to wiki it should work.
Any ideas?

Edit: Actually I cant get any Session Hash Variables in objects SQL (and Default Value SQL)

Thanks,
zazz
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: zzsys_user_id in objects

Unread post by admin »

zazzium,

It seemed to work for me (I also tried another user's login and that worked too).
Capture.PNG
Does this graphic help?

Steven
You do not have the required permissions to view the files attached to this post.
zazzium
Posts: 84
Joined: Mon Jul 04, 2011 12:52 am

Re: zzsys_user_id in objects

Unread post by zazzium »

oh no.. i'm screwed

Image
this test should display 'globeadmin'

..i have messed up something
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: zzsys_user_id in objects

Unread post by admin »

zazzium,

I'm not sure whats going on.

It works for me in text and textarea.
(it will only work for new records)
Capture.PNG


Steven
You do not have the required permissions to view the files attached to this post.
zazzium
Posts: 84
Joined: Mon Jul 04, 2011 12:52 am

Re: zzsys_user_id in objects

Unread post by zazzium »

Its embarrassing but my PHP register globals was turned off.
(I'm surprised that I havent encountered any other side-effects from that)
After turning it on, Session Hash Variables working fine in object SQL.

Thanks Steven for your replies!
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: zzsys_user_id in objects

Unread post by admin »

.
Locked