Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Forms / January 2004

Tip: Looking for answers? Try searching our database.

What permission to access a hidden item

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Max Carussi - 28 Jan 2004 14:12 GMT
I've created a hidden item into a public folder which should be used as a
storage point for counters. Now users who are granted to create and delete
items in this folder (and they can)cannot modify properties on this hidden
item. The Item is accessed by script code from a custom form.
Ken Slovak - [MVP - Outlook] - 28 Jan 2004 15:04 GMT
Was the hidden item created using CDO in the Folder.HiddenMessages
collection? If so there is no access to that collection either from
the Outlook UI or from the Outlook object model.

If you created the item in a different way please explain how you did
so and if the item is visible to the users of that folder.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginners Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm

> I've created a hidden item into a public folder which should be used as a
> storage point for counters. Now users who are granted to create and delete
> items in this folder (and they can)cannot modify properties on this hidden
> item. The Item is accessed by script code from a custom form.
Max Carussi - 28 Jan 2004 16:07 GMT
Hi ken,

yes I used the indications you gave me in a previous thread abd I created
this hidden item with CDO using the hiddenmessages collection.
I'm accessing the Item from the script with CDO. But I had to give users
'Owner' permission to the folder otherwise they couldn't modify the custom
property holding the counter value.
Max Carussi - [JAD - MS Platform]

> Was the hidden item created using CDO in the Folder.HiddenMessages
> collection? If so there is no access to that collection either from
[quoted text clipped - 18 lines]
> hidden
> > item. The Item is accessed by script code from a custom form.
Ken Slovak - [MVP - Outlook] - 28 Jan 2004 16:40 GMT
So what is the question then? A hidden item by definition is never
seen in the UI.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginners Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm

> Hi ken,
>
[quoted text clipped - 4 lines]
> property holding the counter value.
> Max Carussi - [JAD - MS Platform]
Max Carussi - 29 Jan 2004 08:59 GMT
Hi Ken,

the user creates a new folder entry by posting a custom form. When the form
is posted the script code inside it (within the write event) looks for a
specific hidden item (it uses CDO to perform this operation) in the same
folder whose message class is "IPC.Counters", reads a custom property named
counter and increments it.
I gave the users permission to read,write and delete any items in the folder
but not the ability to delete or add subfolders to this folder.
It happened that the hidden item couldn't be updated. So I extended the
permission to 'Owner' and now it works fine.
The fact is that I'd prefere not to give such a wide permission o prevent
the user to accidentally remove the folder or add subfolders to it or change
the folder permissions.

Max

> So what is the question then? A hidden item by definition is never
> seen in the UI.
[quoted text clipped - 18 lines]
> > property holding the counter value.
> > Max Carussi - [JAD - MS Platform]
Ken Slovak - [MVP - Outlook] - 29 Jan 2004 15:35 GMT
Did you try one of the "publishing" permissions?

I suppose another alternative would be to use a specific dynamic logon
to CDO instead of a piggy-backed logon. In that case you could use
logon information that has permissions as Owner. You could encrypt
that information in the registry or an INI file or something and read
it in and decrypt it on the fly so it wouldn't be hard coded into the
form code.

See some of the different logon code samples at
www.cdolive.com/cdo5.htm for examples of using different logons in
CDO.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginners Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm

> Hi Ken,
>
[quoted text clipped - 12 lines]
>
> Max
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.