sharepoint

How to use XSLT 1.0 or XPath to manipulate an HTML string

社会主义新天地 提交于 2019-12-25 04:52:04
问题 This is my problem: The code snippet below (inside the <xsl:choose> ) does not reliably strip <p> , <div> or <br> tags out of a string using a combination of the substring-before() and substring() functions. The string I'm trying to format is an attribute of a SharePoint SPS 2003 list item - text inputted via a rich text editor. What I ideally need is a catch-all <xsl:when> test that will always just grab the text within the string before a line break (effectively the first paragraph). I

Sharepoint 2010 Project package: Cannot add a new project output assembly to the package

≯℡__Kan透↙ 提交于 2019-12-25 04:42:56
问题 When creating a Sharepoint 2010 project in VB.NET and wanting to deploy an additional referenced assembly you cannot add a new project output assembly to the package. To replicate the issue: Open Sharepoint 2010 project in Visual Studio 2010 Open "package\package.Package" Select "Advanced" In the Additional Assemblies area select "Add | Add assembly from Project Output..." This error is then presented: Cannot add a new project output assembly to the package. The path is not of a legal form.

access sharepoint group item columns

旧街凉风 提交于 2019-12-25 04:42:35
问题 if we want to access a sharepoint list and get data in a item we can access like this: foreach (SPListItem item in itemcoll) { string modified = item["Modified"].ToString(); } Similarly, to access a Sharepoint Group SPGroup programmatically, how to do this? I want the modified column value for each user who joined a spgroup. 回答1: Your question is about querying information of some user in some group. In particular you are interested in the "modified" date of the user or when he/she joined a

CSS :hover in Sharepoint works in Chrome but not IE8( or 7 compat)

筅森魡賤 提交于 2019-12-25 04:36:11
问题 I have a DataFormWebPart rendering: <th class="MenuItem"> <xsl:attribute name="onclick" >window.location="<xsl:value-of select="substring-before(@URL, ', ')" ></xsl:value-of>"</xsl:attribute> <xsl:value-of select="@Comments" disable-output-escaping="yes" /> </th> With CSS like: .MenuItem { background-color:aqua; border: thick red solid; border-top: 0; border-bottom: 0; padding:.25em; padding-left:1em; padding-right:1em; } .MenuItem:hover { background-color:green; } In IE the :hover is getting

Sharepoint WSP Solutions and page URL's

对着背影说爱祢 提交于 2019-12-25 04:34:52
问题 I’ve been playing about with wsp solutions and a question has occurred to me about how to access an aspx file that is located on the file system from within the sharepoint web application. For instance, here is my visual studio explorer view… alt text http://abbeylegal.com/downloads/alp%20solution%20image.jpg You can see the aspx file I’ve created, when I browse to this file in my sharepoint web application the URL is http://example.org/alplogin.aspx What if I wanted this web page to be

Sharepoint create site navigation through programming

不问归期 提交于 2019-12-25 04:29:24
问题 I have a requirement in sharepoint where I want to Create the top link navigation based on excel file. Means The site navigation structure (along with parent site subsite under parent site) is mention in excel file. I need to read that structure and based on modify the navigation in sharepoint. Please can any one tell me is it possible to configure navigation in such a way. If yes then please tell me how to achive it. FYI: I am using MOSS 2007. thanks in advance sachin katkar 回答1: If this is

Client Object Model access to Custom User Properties

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-25 04:17:30
问题 I've setup up a custom user property via central admin and set the value on a couple of my users. That said when I query the User Information List using Query Builder I'm not seeing values for the field. I've even tried specifying the fields to return via ViewFields. Anyone have any experience with this? Any other suggestions? Thanks! Casey 回答1: i've also searched a while, but the closed i came to was this... i ended up using the UserProfileService instead, like described in this article. 来源:

Access 2013 Web App - multi value lookup

为君一笑 提交于 2019-12-25 04:07:45
问题 I'm creating a personal Access 2013 Web App on Sharepoint. I want to make a form for a table that will lookup an ID number based on multiple criteria. The table describes projects with some fields, we'll call them location, category, and units. relating_table: id location category units 1 france maintenance hours then my project table would have id fk_id teamid whatever 1 1 x y 2 1 z a I want to set up my form so the user can choose "france" "maintenance" and "hours" and the form will know to

Setting preview image for Sharepoint 2010 custom web template

和自甴很熟 提交于 2019-12-25 03:53:30
问题 I have a custom Sharepoint 2010 Web Template and I would like to set a custom preview image for it in the Sharepoint add site gallery. Example (I wanna set a custom image for the "Project Template Site" custom web template): Note: I already tried setting the ImageUrl property of the WebTemplate element (http://msdn.microsoft.com/en-us/library/ff408392.aspx) and it is not working.. 回答1: I've managed to solve my problem. Apparently the ImageUrl property of the template element only works with

Silverlight Web Part not loading until user clicks on page

泄露秘密 提交于 2019-12-25 03:45:12
问题 I am maintaining a Silverlight 4 application that runs as Web Part in SharePoint. However, I have an issue with loading it in Internet Explorer (versions 10 & 11). The user must click on the web page or hit tab for the Silverlight web part to actually load. However, this is not an issue in Chrome. There is a silverlight.js script runs when the page initially loads, but it appears (in Fiddler) that the XAP isn't getting called until the user clicks or or hits tabs on the page. So far, I have