Supplying a column value from the library name

Michael Broschat
  • Supplying a column value from the library name Michael Broschat

    The value of a column is the name of the library in which the document is being inserted. Users are objecting to supplying a value when the value is already known.

    Seems to me there are two responses to this: remove the column (and rely upon the document library name) or automatically choose the library name from the dropdown of library names. If the latter, how might that be done (without code)?

  • You might be able to do this with a Workflow in SharePoint Designer, which is triggered when the document is added to the library, and sets a field (your metadata field) to the name of the current list.

list column-data
Related questions and answers
  • If I group by a column in a library or list, the name of the column is displayed prior to the value, i.e., ColumnName:ColumnValue or in my case, Discipline:Civil, Discipline:Electrical etc. how can I hide the Column name so that the the group headings are cleaner? I'm using MOSS 2007 TIA Dean

  • columns. If I put in the FieldRef the internal name for lookup column no 14 or above, it is not working anymore. Why? If I don't use LookupId='TRUE' and do this: (use the value of the lookup and not the id) <Query> <Where> <Eq> <FieldRef Name='Relaterat_x0020_till_x0020_avtal' /> <Value Type='Lookup'>Test avtal</Value>.... Then I've added each content type to the Tasks list. After that I've added each lookup site column to the corresponding list content type. So far so good. I've built a custom WebPart that displays task items

  • ; I've got the XSLT above and it does provide output but with the following values in the Distance Column: 2 3,5 -1,3 0 I get a result different from NaN but not the sum, only the first value...-template> </xsl:when> <xsl:otherwise> <xsl:value-of select="format-number($res + number(translate($currnode/@*[name() = $attr-type...:internal"> <xsl:output method="html" indent="no"/> <xsl:decimal-format NaN=""/> <xsl:template match="/"> <xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row

  • Has anybody upgraded an old custom field type to use the new XSL transform in SharePoint 2010? I have a multi-column field type, and want the Display pattern to render the 2nd "column", which contains a hyperlink. My CAML render pattern looks like: <RenderPattern Name="DisplayPattern"> <Switch> <Expr> <Column /> </Expr> <Case Value...:variable name="url"> <xsl:value-of select="substring-before(substring-after(substring-after($thisNode/@*[name()=current()/@Name],';#'),';#'),';#')"/> </xsl:variable> <

  • I have a document library with a document template (docx) in which several Quick Parts are defined. The Quick Parts link to column data in the document library. How do I create the document by filling in the column data on a NewForm, thus without opening the document template itself? Thus: Click new -> go to a page with the NewForm -> fill in the fields -> click OK -> Voila a new Document in the library with the provided metadata.

  • I have a document library using a document set content type. I can create a new document set through the UI and it works perfectly. I'm now trying to create a document set in this library... for the set looks like a folder instead of the document set icon clicking on the document set doesn't show the document set home page, it just behaves like a normal document library running CAML queries shows that both internal fields HTML File Type and ProgId should be SharePoint.DocumentSet but instead they are blank changing a field value on the document set folder doesn't propogate to its contents

  • I am new to PowerShell and would like to achieve the following tasks on a SharePoint 2010 Document library: 1) Using PowerShell, how can I display the List of Documents in a simple Document Library. 2) While traversing through the documents list, how can I modify the value of a custom added column in the Document Library?

  • uses a DataFormWebPart which contains xsl stylesheet. It has a 'Complete Task' button as below: <td><input type="button" name="btnMarkSubmited" value="Complete Task" onclick="javascript: {ddwrt... have tried adding a content editor webpart and used jquery to update a a form field value when the button is clicked as such $(document).ready(function (){ $("input[type=button][value='Complete Task...;/table> </xsl:template> <xsl:template name="dvt_1.formactions"> <td nowrap="nowrap" class="ms-vb"> <input type="button" value="Save Draft" name="btnSave

  • In a custom list there is a column / field defined as “Name (with presence)”. In my modified aspx page, I want to do an ‘xsl if’ statement to check if the value from this field is the same as the current user. <xsl:if test="@MyField = $UserID"> ... code here ... </xsl:if> But the compare fails because the content from the MyField is something like : <span>...='javascript:' onclick='IMNImageOnClick();return false;' class='ms-imnlink'> <img name='imnmark' title='' border='0' height='12' width='12' src='/_layouts/images/blank.gif' alt

Data information