[Helma-user] Collection items dependent of logged-in user?

Andy Hessling andy.hessling at googlemail.com
Fri Aug 18 17:23:39 CEST 2006


Hi,

I have a question regarding the MySQL filter functionality/best
practice in types.properties. These filters work just fine, I have
collections of objects attached to my HopObject and can narrow down
the selection of these objects by having a filter specify column
constraints in the local/foreign table, or have static constraints
like "not null". Now, is there any way I can access JS variable
contents inside this type.properties file? I want to make the
collection dependent on the current user that is logged in my system.
If I could reference the session object for example, that could work.
Comparing the columns "userID" in the collection's DB table with the
user ID of the user whos currently logged in.

Any thoughts?


Thanks,
Andy


More information about the Helma-user mailing list