Finding owner of an object
Greetings, I have a folder of files (think the FileLibrary example), where files may be owned by different people. In a ZPT I would like to limit the set of files that are displayed to those owned by the current user. I can't find a way to get the owner of a given object: what am I missing? For example, I use container.Submissions.objectValues('File') to get the set of files in the Submissions folder. Is there a method I can call on each File object to get its owner? TIA, -tree -- Tom Emerson Basis Technology Corp. Software Architect http://www.basistech.com "Beware the lollipop of mediocrity: lick it once and you suck forever"
Tom Emerson wrote at 2003-3-4 00:13 -0500:
I have a folder of files (think the FileLibrary example), where files may be owned by different people. In a ZPT I would like to limit the set of files that are displayed to those owned by the current user. I can't find a way to get the owner of a given object: what am I missing?
For example, I use
container.Submissions.objectValues('File')
to get the set of files in the Submissions folder. Is there a method I can call on each File object to get its owner?
You can do it in the management interface (ZMI), right? Then, there is a method and you can find it out yourself by looking at the ZMI source. Dieter
participants (2)
-
Dieter Maurer -
Tom Emerson