I've tried and tried to get my client side expressions to recognize a published session variable and all I get is parsing errors and javascript errors.
If I enter in SESSION.GROUP = "Administrators" into my hide/show expression I receive a "Error converting to Javascript". In my "Published Session Variables" I have: SESSION.GROUP
I don't know if I'm doing something wrong or if I have a bug on my particular system but this is really annoying if I want to fine tune permissions.
The only way I can get anything to work is to do it through the query like this:
I am able to set an argument to my session variable without an issue. I then need to pull it into a fake field so that I can get at it from the client side.
Anyway, since I can get at it from the query I sure should be able to get at it by publishing it right?
Any insight would be appreciated.
UPDATE: the variable names, session.user and session.group appear to be no-nos. They seem to conflict with alpha's own session variables.
If I enter in SESSION.GROUP = "Administrators" into my hide/show expression I receive a "Error converting to Javascript". In my "Published Session Variables" I have: SESSION.GROUP
I don't know if I'm doing something wrong or if I have a bug on my particular system but this is really annoying if I want to fine tune permissions.
The only way I can get anything to work is to do it through the query like this:
Code:
SELECT blogcomments.commentid, blogcomments.entryid, blogcomments.userid, blogcomments.comment, blogcomments.approved, blogcomments.datetime, security_AllowedUsers.UserSecId, security_AllowedUsers.[First] AS [First], security_AllowedUsers.Last, :usergroup AS secgroup FROM blogcomments blogcomments INNER JOIN security.AllowedUsers security_AllowedUsers ON blogcomments.userid = security_AllowedUsers.Userid WHERE approved = 1 OR (approved IN (0, 1, 2) ) AND :usergroup = 'Administrators'
Anyway, since I can get at it from the query I sure should be able to get at it by publishing it right?
Any insight would be appreciated.
UPDATE: the variable names, session.user and session.group appear to be no-nos. They seem to conflict with alpha's own session variables.
Comment