It would be unusual to provide access to the debug records to any user other than the developer (globeadmin). As kev1n says, it would be helpful to know what you have in mind.
If you just want to examine debug records whilst accessing the application as a user (rather than as globeadmin) then all you need to do is have two browsers open. In one of them, open the nuBuilder application as globeadmin and in the other, login with the user account. That way you can see the debug records generated by the user account.
You can put nuDebug(nuHash()); in the BE PHP of the 'home' form and that will show you the user_id of the logged in user, for that session as well as other information.
kev1n wrote:Hi,
Could you describe a bit what you want to do exactly?
I have SQL-qwr for Browse:
SELECT mtabel.* FROM mtabel
where
manager_id='#USER_ID#'
and some records with manager_id='globeadmin'
ans some records with manager_id='man1'
If my login is "globeadmin" I get right records. But if login is "man1" I have no records.
I can't test value #USER_ID# under login "man1"
Thanks a lot for helping with #USER_ID# and SQL source! Now everything works perfectly!
kev1n wrote:#USER_ID# contains the primary key (zzzzsys_user_id) of the table
zzzzsys_user and not the login name.
If manager_id contains the login name, you need a join with the zzzzsys_user table.
The SQL is then going to look something like this: