moss

WSPBuilder and Code behind for a Sharepoint Masterpage

I created a code behind file for a custom master page in visual studio. I hooked everything up manually; safe control and custom cas policy. Everything works great! I then wanted to put this into a sharepoint solution using WSPBuilder for better deployment. I created WSP solution, added my class file and changed the output directory to ...

Get Directory Path to 12 Hive programmatically

Is there any way to get the directory path of the 12 Hive programmatically? I am creating a feature which delivers a file to the XML directory in the 12 hive, and I don't want to hardcode the directory path in my code. Is there any Object Model property which exposes the 12 Hive directory path string as a property? ...

SharePoint: How do I create a new list from a list template?

I've created a list template based on an Issue list and it is saved in the List Template Gallery. Now how do I create a new list based on this template? ...

Temporary Folder/Location for SharePoint

Hi, I have added a menu item in ECB of document of document library. On click of that menu i want to copy that document to my application. For this purpose i need to create a temporary file of the document on the same machine where SharePoint server is installed. Now the problem is that where should i create the temporary file. One solu...

Accessing SPWorkflowStatus from an SPListItem

I'm trying to hide/show items based off of their workflow being "Approved" using MOSS 2007. Logically, SPWorkflowStatus would be a property of SPWorkflow or SPListItem. But its not, and I'm striking out everywhere. Any help would be great. The workflow is not a custom built workflow, just one created with the MOSS UI. Thanks Mark fo...

WSS Web Part password in Tool Pane

I have a password that I want to store as property in a Web Part that can be set via the tool pain. Currently it is a String and can be clearly read. How would I go about making it * out? If this is the wrong way to be doing this what would you advice to do instead? ...

WSS Sharing Properties between Web Parts

Is it possible to share properties between different web parts? I would like a user to only enter there user name and password in one web part and it be accessible in other parts. ...

How to get the URL for a SharePoint Discussion Board entry?

How do you retrieve the URL for a discussion board item? That is, the URL displayed when you mouse over the subject line (once the list has been added to the page as a web part). ...

In a meeting workspace get all agenda items from a list programmatically.

I want to get all items from a specific list in recurring meeting workspace. I tried to execute the following CAML: <Query> <Where> <IsNotNull> <FieldRef Name='ID' /> </IsNotNull> </Where> </Query> But it only displays data for the upcoming meeting. However when I open list, from actions menu I can choose ...

Mysterious SharePoint MOSS page templates appearing in site collection

Hi I have previously created a couple of page layouts in SharePoint designer and used these throughout a site collection. Everythings was fine. When choosing create page, I would be able to choose the from the following templates: (WCM Page)Stock Control Page (WCM Page)Sub Site Home Page Now in addtion some mysterious page layouts ha...

Synchronizing Sharepoint and Active Directory Groups?

Not sure if this belongs here or on Serverfault. I have a Sharepoint installation and several Active directory domains. In each domain, I have some Security groups. I need to create Sharepoint groups that contain those Active Directory groups, but I need to inlude the actual users instead of just the security group. (So in I have Group...

Parser error when trying to wrap child controls

I have developed a server control inherited from WebControl that wraps any number of child controls and changes their output. The control class is very simple and only contains the RenderContents method. Here is an example of how it has been placed on the page. (Not included: registration of control namespaces.) The intention here is th...

Sharepoint - Fields appears twice on View / New Item

I have a problem in a SharePoint list - some fields appear twice on the Display form, New Item form and on the list settings page. Both fields have the same ID and the same property page (same URL), so hiding one hides the other. Using SharePoint Manager I can only see one field, but maybe I looked at the wrong places? Has anyone experie...

Program custom permission level

Hello. Can i program custom base permission level? There are many available in SPBasePermissions like UseRemoteAPIs Use SOAP, WebDAV, or Microsoft Office SharePoint Designer 2007 interfaces to access the Web site. ViewFormPages View forms, views, and application pages, and enumerate lists. ViewListItems View items in lists, doc...

Is there a way to put get the URL of the site in creation in the ONET.XML file?

I have a custom site definition, in an ONET.XML file. Can I get the URL and/or the Site name of the site that is being created and use it as a parameter/moniker in the onet.xml file? Something like this: <Modules> <Module Name="Default" Url="" Path=""> <File Url="default.aspx" NavBarHome="True"> <AllUsersWebPart WebP...

In MOSS, can you add a Publishing Image field to an Announcements list?

Using Sharepoint MOSS 2007, I want to add a Publishing Image field to my Announcements list which I am using for news. Is this possible? Should I make a new list type that instead inherits from Publishing Page? Ultimately, I want to display the contents of this list using a Content Query Web Part. Thanks. ...

Exporting and importing subscriptions to SharePoint-hosted reports that were created in SQL Server Reporting Services

I came across this question in related questions which basically asks the same thing. Is there a way of exporting and importing subscriptions to SharePoint-hosted reports that were created in SQL Server Reporting Services? Scenario: During report re-deployments, reports are deleted and re-created, and the associated subscriptions are de...

WSS Features and Data Storage

When developing complex features for SharePoint, what is the recommended method of data storage? Should you constrain yourself to SP Lists and all the limitations that come with that, or use your own database, or create tables within the SP database? ...

How do I set a friendly name for SharePoint custom property enums?

I have a simple web part with a custom enum property (which SharePoint renders for me as a dropdown). Is there a way to render friendly names for the enum values? I have tried System.ComponentModel.DescriptionAttribute, but it does not seem to work. I also tried Microsoft.SharePoint.WebPartPages.FriendlyNameAttribute, but it canno...

Preserve SharePoint display formatting on my custom SPGridView

Hello. I'v used SharePoint:SPGridView control in aspx page to display data as I would like it (It's as simple as two column grid with no filtering/grouping or whatsoever). But how do I inherit formatting, so my SPGridView would look something like default sharepoint list? It now appears as: ...