Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Displaying the "View Properties" view of a document

0 views
Skip to first unread message

Navin Pai

unread,
Sep 9, 2004, 10:55:27 AM9/9/04
to
Given the URL of a document in a document library that is in a portal site,
how can I "build up" the URL to the "View Properties" page using the object
model? For exmple, the URL of the "View Properties" page of one of my
documents is:

http://<server>/sites/test/DocLib/Forms/DispForm.aspx?ID=6&Source=http://<server>/sites/test/DocLib/Forms/AllItems.aspx?RootFolder=/sites/test/DocLib/MyFolder&View={26CA25F3-1D86-4C96-82D6-5758E71F31B7}&RootFolder=/sites/test/DocLib/MyFolder

There are at least 5 components here:
1. The server relative URL of the document's root folder (which I know, i.e.
/sites/test/DocLib/MyFolder)
2. The URL to the display form
(http://<server>/sites/test/DocLib/Forms/DispForm.aspx)
3. An ID (of the doc? 6, in this case)
4. The URL to the "AllForms.aspx" page
(http://<server>/sites/test/DocLib/Forms/AllItems.aspx)
5. Some sort of a view GUID (i.e.{26CA25F3-1D86-4C96-82D6-5758E71F31B7} )

I know the first item above. How do I get the other 4, starting with the URL
of the document? I have the SPFile object to work with.

Thanks for any help.


0 new messages