sharepoint

Sharepoint custom workflow: calling an external method

Hi all I have a custom workflow local service. I want to invoke a method defined in the service from a sharepoint workflow. is that possible cause I always receive an exception that workflow runtime can't load the dll of the local service thanks ...

attach event to sharepoint multiline textbox having text type "Enhance Rich Text"

Hi All, I have to attach OnKeyPress event to the SharePoint multiline column with text type as "Enhance Rich Text". Following is the jscript code that I am using <script> var ele=document.getElementById(inpID); if(ele!=null){ ele.onkeypress=function(){calLen(this);}; } function calLen(obj) { if(obj.value.lengt...

Show web part based on permissions

So, I'm grabbing data from a sharepoint 2007 announcements list, and displaying it on another site. I need to make sure that the web part that I created is not displayed for people who don't have permissions for the site I'm getting the data from. How do I "disable" the web part if a user doesn't have permissions? I've tried this.enable...

Version SharePoint WSP

Has any one tried to version WSP in SharePoint 2010? Thanks, ...

Unable to open file from sharepoint document library

I have created a document library in my machine and uploaded a few image files. But later when i try to open them in document library, it shows a page not found 404 error. What could be the reason? The same thing works in another machine's document library ...

Problem in Calling External method from sharepoint workflow.

Hi all I have a custom sharepoint workflow with visual studio 2008 I use the call external method activity to invoke a method defined in a local service once the workflow starts I find that the status is error received. the log has the following exception: System.InvalidOperationException: Could not find service of type 'xxxxxxx...

PlaceHolderMain controlling td width of hard-coded values

In my custom .master page I have the following code: <asp:ContentPlaceHolder id="PlaceHolderMain" runat="server" Visible="true" /> This prints out the main content of my page. It contains this structure <table ID="OuterZoneTable" width="100%"> <tr>...</tr> <tr id="OuterRow"> <td width="80%" id="OuterLeftCell">...</td>...

Missing safe control entry

I've got a working hello-world like webpart for my SPS3.0 I can compile, pack and deploy it using VS2008, makecab.exe and stsadm. So I know the theory of deploying sharepoint webparts. My problem: After I inserted an additional .webpart file, an elements.xml and a feature.xml to deploy the .webpart file and get knowledge about adding...

RenderPattern headache with WSS 3.0 Document Library

Hi All, I'm trying to define the DisplayPattern of a custom field to do as follow. It's a simple text field used in document libraries, but i want the text entered to be displayed as a link to the document in the list view. <URL Cmd="Display"> gives me the display form, but I want the link to actually download/open the document... I c...

Holiday Approval /tracking

Hi, Has anyone implemented a holiday workflow approval / tracking list in MOSS Sharepoint 2007? Can anyone suggests other solutions? The solution below works fine but I am specifically looking for a way to lookup manager of the user who created the holiday request list item in the workflow. I have followed this link http://www.u2u.in...

MOSS query the SiteUserInfoList list

Hi, I want to know how I can connect to the SiteUserInfoList using U2U CAML Builder tool, I know I can do it in code. But want to be able to quickly query it through the tool so I can bring back the values it holds. Or a better question... where is the SiteUserInfoList information held in the content database (mysites or site content d...

Failed to create feature receiver object from assembly/FileNotFound...

During solution deployments & Feature activation, I am facing an on/off issue where the system is unable to find & load the FeatureReceiver class. Mostly it is file not found exception (even though the assembly is there in the GAC). I checked over the net and this seems it a common issue with solutions (wsp) packaging DLL to be GACed. (B...

Sharepoint - End date minus Start date = Years??

Hi, I am needing to calculate the number of years between two fields; Field A Start Date (dd/mm/yyyy) Field B End Date (dd/mm/yyyy) Field C Calc formula display difference between Field A and B in years and months i.e 5.2 Thanks all. ...

Enumerate all folders in a SharePoint list recursively

Is it possible to get a list of all folders in a SharePoint document library, using SPQuery? Something you could get in file system, if you opened Windows command prompt and ran dir /b /A:D /S The problem is, if you create a simple SPQuery and set the viewAttributes to Scope='RecursiveAll', the result set contains items, but not th...

Sharepoint Error: [COMException (0x80004005): Cannot complete this action.

Hi, I've created a site basic definition that uses different master and default pages. Everything works quite well except for whenever I create a new site based on the definition I receive the following error when browsing to the new site: [COMException (0x80004005): Cannot complete this action. Please try again.] Please try again.] ...

SharePoint's CAML query the "Created By" field with username

Hey, I have a form for administrators where they insert a user name ("domain\name") and the code gets and sets some information out of it. It's a huge project and some of the lists contain the username as a string ("domain\name"), but some lists only count on the "Created By" column, which is auto-created. I want to know what's the fa...

Copying web part pages within SharePoint

Hi, I'm trying to copy some web part pages (aspx) from one library into another. Reason is that I've got sites which are created dynamiccally. I also want to add some content (based on several rules) to those sites, which include aspx web part pages. The deployment works fine, but the web part pages are empty in the target site. As I...

How to find missing web part ?

Does anybody know how to find offending web part which causes this error ? “A Web Part or Web Form Control on this Web Part Page cannot be displayed or imported because it is not registered on this site as safe.” I have inherited an old SharePoint 2003 portal site which uses custom web parts. I know what this error means. I also know ...

Re-inheriting permissions from parent SharePoint list

So I know how to break inheritance from a list (SPList.BreakRoleInheritance(true)), but how do you reinherit from it's parent programmatically? Thanks ...

SharePoint 2010 PerfromancePoint Services scorecard not showing numbers for hirarchies

I am trying to create a scorecard in SharePoint 2010 PerfromancePoint dashboard designer. I had a very similar dashboard in performancePoint 2007 working fine. Basically, I have created a KPI which uses my analysis services cube as the data source. In the scorecard I just use this KPI. Let's say it is Total Sales Actual and Target. The n...