sharepoint-designer

SharePoint Designer Reformatting HTML on the fly, able to disable?

陌路散爱 提交于 2019-12-06 08:06:55
问题 Before I tear what is left of my hair out I have been trying to modify some master pages in SharePoint Designer and whenever I make HTML markup changes it reformats them as it see's fit. For example, I am trying to make the code readable so I am moving items to their own lines and such. As soon as I save it moves everything back to a single line of code. This was a problem that I had with VS2003 & VS2005, until VS2005 SP1. Unfortunately this makes it very cumbersome to ever read or decipher

SPContext.Current.FormContext.OnSaveHandler not firing when SPControlMode is New

牧云@^-^@ 提交于 2019-12-06 04:11:57
I've got a web part that I'm using to add some custom controls to the New, Edit and Display forms for a SharePoint ListItem. I added a handler for SPContext.Current.FormContext.OnSaveHandler to update the item. I add my web part to the Edit and New forms using SharePoint Designer and hide (set IsVisible=False) for the DataFormWebPart that's put in by default. Everything works fine when editing an item. My OnSaveHandler function is called and I update the SPListItem. The problem is with a new item. The OnSaveHandler function is not called unless I have the DataWebFormPart visible. I make no

Is there a good reference SharePoint's databinding syntax?

丶灬走出姿态 提交于 2019-12-06 01:42:58
问题 I'm putting asp server-controls into my SharePoint XSLT using SharePoint Designer. I've found it's really handy for pre-populating values into the form, or providing a different experience than the SharePoint defined layout (hidden fields, etc). For example, I can use a asp:TextBox control instead of the SharePoint:FormField control if I define it as such: <xsl:stylesheet ... xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"> <xsl:param name="Name" /> <xsl:template match

SharePoint designer workflow not changing after publish

て烟熏妆下的殇ゞ 提交于 2019-12-05 18:50:37
问题 I'm working on SharePoint workflow (SharePoint 2010) in SharePoint designer 2010. I was published it many times without problems. But after many publishes (I thing 30) SharePoint stop to changing workflow (I published it without any error and I can find new workflow release in SharePoint web interface). I published new version (with new commands) but workflow still use old one. But when I modified one of commands which was in workflow previously the modification will appear in next run. I

SharePoint Designer Reformatting HTML on the fly, able to disable?

穿精又带淫゛_ 提交于 2019-12-04 12:26:11
Before I tear what is left of my hair out I have been trying to modify some master pages in SharePoint Designer and whenever I make HTML markup changes it reformats them as it see's fit. For example, I am trying to make the code readable so I am moving items to their own lines and such. As soon as I save it moves everything back to a single line of code. This was a problem that I had with VS2003 & VS2005, until VS2005 SP1. Unfortunately this makes it very cumbersome to ever read or decipher what the HTML markup is. Does anyone know how to disable this automatic reformatting of HTML in

Is there a good reference SharePoint's databinding syntax?

亡梦爱人 提交于 2019-12-04 05:42:35
I'm putting asp server-controls into my SharePoint XSLT using SharePoint Designer. I've found it's really handy for pre-populating values into the form, or providing a different experience than the SharePoint defined layout (hidden fields, etc). For example, I can use a asp:TextBox control instead of the SharePoint:FormField control if I define it as such: <xsl:stylesheet ... xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"> <xsl:param name="Name" /> <xsl:template match="/"> <!-- omitted for clarity --> <asp:TextBox id="txtName" runat="server" Text="{$Name}" __designer

Sharepoint Conditional fields in Edit.aspx

匆匆过客 提交于 2019-12-03 21:32:30
I would like to display certain meta data fields in the edit form based on the value of a fields. Example: Users upload a document to the Doclib to be approved by there manager. They are allowed to change the meta data Name,Case No, Location until the item is approved by the manager. Once the item is approved I would like to set Name and Case Number to read only. What is the best way to meet this requirement? If approved = yes set Name and Case No = Read only Else do nothing. I have tried this method for about 5 hours. I believed this may be different for ModerationStatus. Might require

In sharepoint designer's workflow editor how do I get the workflow initiators username?

谁都会走 提交于 2019-12-03 07:47:34
In Sharepoint designer's workflow editor I wish to retrieve the username/name of the work flow initiator (i.e. who kicked it off or triggered the workflow) - this is relatively easy to do using 3rd party products such as Nintex Workflow 2007 (where I would use something like {Common:Initiator}) - but I can't seem to find any way out of the box to do this using share point designer and MOSS 2007. Update It does not look like this rather obvious feature is supported OOTB, so I ended up writing a custom activity (as suggested by one of the answers). I have listed the activities code here for

Change SharePoint Library URL

五迷三道 提交于 2019-12-03 05:09:38
问题 How do you change the URI of a SharePoint library? Based on Google searching, most people say that changing the name of a library in Designer (via right click->rename) will result in the URI change, but it is only changing the name for me. I am using SharePoint 2010 Foundation and these are the steps I am following: In Designer, navigate to List and Libraries Right click library -> rename Notice that name changes Notice that URI does not change This is one of the resources I found claiming

Change SharePoint Library URL

痞子三分冷 提交于 2019-12-02 17:35:37
How do you change the URI of a SharePoint library? Based on Google searching, most people say that changing the name of a library in Designer (via right click->rename) will result in the URI change, but it is only changing the name for me. I am using SharePoint 2010 Foundation and these are the steps I am following: In Designer, navigate to List and Libraries Right click library -> rename Notice that name changes Notice that URI does not change This is one of the resources I found claiming that this works: change URL spelling/case on sharepoint library In SharePoint Designer just navigate to