.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Using Quick Parts with document libary, template loses field association when moved

Posted By:      Posted Date: April 14, 2011    Points: 0   Category :C#
Using Quick Parts with document libary, losing association with columns
Hi, I hope someone can help.  Sorry for length
Office Sharepoint 2007 version with Office 2007

The Situation:
We have a workflow which is used to progress a set of Change Control procedures. This utalises a task list, where as each task is complete, the workflow writes the values gathered from the task forms into a word document.  We have a content type associated with a task list with a corresponding content type created on the document library list to hold the values that users enter.  We also use a word 2007 template which has quick parts added to it and its these quick parts that get populated with the user data as the workflow progresses.  So we can populate a customer change request form for users.  This is all deployed using a feature.

The problem:
In our test environment this works fine.  As the workflow progresses the document library columns get updated with the task list columns data, as expected, which in turn means the word document gets updated with the correct values.  All good!!
However, when we move the whole solution onto out live environment, (we do this using visual studio to package all code and depl

View Complete Post

More Related Resource Links

InfoPath / ActiveX error when using person selector field in Word template off SharePoint document l

I have created an out-of-the-box document library on a SharePoint 2010 site.  I left Microsoft Word Document selected as the Document Template.  I then added a person or group column and a multiple lines of text column to the document library. I then went into Library Settings --> Advanced Settings and clicked on Edit Template, opening the template in Word.  I created my template and added the two new columns to the document.  I did this using the Quick Parts --> Document Property --> [column name] feature under the Insert tab in Word.  I then saved the template back to SharePoint. Upon opening the template or creating a new document from the template, I get the following dialog box: --------------------------- Microsoft Office InfoPath --------------------------- One or more ActiveX controls could not be displayed because either: 1) Your current security settings prohibit running ActiveX controls on this page, or 2) You have blocked a publisher of one of the controls. As a result, the page might not display correctly. --------------------------- OK   --------------------------- I've searched around (I believe fairly extensively) and have not run into anyone else with the same issue.  Some have mentioned a similar error when creating a custom document information panel in InfoPath, and suggested lowered ActiveX security setti

How do I pre-populate document quick parts based on site metadata?


Anyone have any thoughts on how I would populate data into document quick parts?

The answer seems pretty simple with content types and such, but the complication is that I want to pull in contact information from a list local to the site in which the library resides.  For example:


A project site is created.  The company's contact information is copied down to the site via the site creation process.  A Letter Standard content type is managed throughout the site, and pulls the contact information from the list and populates the appropriate pieces within the document automatically.

Anyone done something similar to this?

Document set with default documents that use quick parts

Is it possible to have default documents that use quick parts?   If so how?  If not, how do I populate document properties when the set is created?

Custom Content Type is missed while restoring Document Libary template



I have a document library and i use a custom template "templateA" in it,This also inherits from "Folder" content type. When i'm restoring this template backup file to a new library,It missed the content type "templateA" and appears as "Folder" in all items.

I use a publishing site, and i created the content type in site level, I also created the document library in sub site level where i used the template,

Is there any work arround to get the custom content type in restored Libray.I use moss 2007.


Document Set, shared columns, Word Documents and quick parts


I have a document set with shared columns docset1, sharedcol1, sharedcol2.  My document set is made up of another content type (subdoctype1) that does not have sharedcol1, and sharedcol2, but they are shared via the doc set.

How do I add sharedcol1 and sharedcol2 to quick parts in the word doc?

If I create a document in the set of subdoctype1 and go to insert->quick part->Document Property I do not see the shared columns.  If I save the document and re-open it I do see the shared columns.  How can I add the shared columns to a template with no values?  It seem like I need an actual instance of the doc set with my sub-document type to exist before I can use it.

Dropdown Event (Template Field)



I have grid view control that includes a dropdown control in a template field.

I wish to execute some code when the value is changed in the dropdown list.  Can't figure out how to capture this event though?

Any suggestions?

How do you create an association between two different data sources in BDC web parts?



I have a SQL Server database with the customer details and an authenticated web service providing contact details of the selected customer.  How do i connect them using web part connections to retrieve and display the data.

Or is it possible to create a Primary key-Foreign Key relationship between two tables in different databases with a common column?



Creating a custom column with a link to document (other than the name field) in document library



I have a document library with the standard name column linking to the document. However, we'd like to create a custom field and have that link to the document (and edit item menu).

How is this best accomplished?

Thanks in advance!


How to write an event to manage permissions on a document while uploading, depending on custom field



I am trying to find a solution to manage permissions on a document, while uploading it into a document library. This event has to be fired if a custom field is populated (it's a check box field).

How to write an event for this, i tried writing ItemAdded event, but this is getting fired as soon as a document is uploaded, before coming to the page, where we populate all the fields and hit check in.

can i capture Check-in event.

Please advise.


Quick Note: Create Visual Web Parts by Using SharePoint 2010 Controls

In this exercise, you create a SharePoint 2010 visual Web Part in Visual Studio 2010 and then add a SharePoint ListViewByQuery control, a ASP.NET Label control, and a SharePoint DateTime control to it.

Quick Note: Using SharePoint Designer 2010 to Work with Web Parts

Learn to create an XSLT List View Web Part within SharePoint Designer 2010 that displays a list of employees on the Home page of local web site.

Quick Note: Create Visual Web Parts for SharePoint 2010

Learn to create and deploy Visual Web Parts that display hierarchical views of list items and SubWebs.

Quick Note: Connect Web Parts in SharePoint 2010

Learn to create and deploy two Web Parts and then connect them so that making in a selection in one displays that selection in the other.

Calculated date field displays differently in List View and Data View web parts

In SharePoint GUI I created a simple custom list with a calculated Date/Time field (Due).  The calculation is =[Created]+7.  I'm trying to display this data on a page using a DVWP.  But first, for testing purposes, I also created a second calculated Date/Time (TestCreate) field in my custom list that is simply =[Created]. In the List View from within SharePoint, the dates show as expected (for example): Created = 8/12/2010 3:45 PM Due = 8/19/2010 3:45 PM TestCreate = 8/12/2010 3:45 PM In SharePoint Designer, I added a Data View web part and the above three data elements (each configured to display mm/dd/yyyy hh:mm:ss tt).  I see the time displayed for the example list item as: Created = 8/12/2010 3:45:30 PM Due = 8/19/2010 10:45:00 AM TestCreate = 8/12/2010 10:45:00 AM I've tested a couple scenarios and the calculated fields always display five hours in the past (along with dropping the seconds).  It seems like the DVWP is returning the date in a different time zone (with no seconds).  The lcid is set right (1033).  I didn't see any time zone settings for the DVWP specifically.  I'm basically stuck.  Could someone help me figure this one out. Thanks.

How to modify dropdown document template list order when creating document library?

when creating a new document library, the first template is the one for word 2003. Can we change that to word 2007 one? thanks,

Document Library and Review Template

http://techsolutions.net/Blog/tabid/65/EntryId/17/Fab-40-Templates-for-MOSS-2010.aspx I have Installed the Document Library and Review Template from the above website. 1) The Discussion board for the document library is not working in sharepoint 2010. 2) The Discuss icon is not showing in document library list.  

how to read a custom dynamic data meta data attribute in a field template

All --Please help.I need to know how to read a custom dynamic data meta data attribute in a field template.I know how to do it in a page template because I have a handle to the meta table on the page.However, I do not know how to get a handle to the meta column at run time in a field template.Can you help?Please advise.Thank you.-- Mark Kamoski
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend