Property promotion/demotion is a process that promotes/demotes data stored in document (or file) into columns in the SharePoint document library; some would call it a synchronization process. Anyway, it is quite convenient to have that sort of copying back and forward between file and column whenever a value changes in either of them.
More on the process can be read here:
In this first post I´m going to use the method described by Eric Kraus (in the link above) that uses SharePoint Designer to accomplish this.
- Create an instance of a Form Library through the UI. (I call mine Books)
Open SPD and add a file called Properties.xfp to Books/Forms
- Add the following content to the file and save it.
- Through the UI, navigate to your library and add/upload a new file. The content should look something like:
Try modifying the xml directly and through the editform.aspx and see the promotion/demotion between them.
<?xml version="1.0" encoding="utf-8" ?> <Fields FormAggregation="true"> <Field Type="Text" DisplayName="ISBN" Name="ISBN" Node="Book/ISBN" /> <Field Type="Text" DisplayName="Title" Name="Title" Node="Book/Title" /> <Field Type="Text" DisplayName="Last Name" Name="LastName" Node="Book/Author/LastName" /> <Field Type="Text" DisplayName="First Name" Name="FirstName" Node="Book/Author/FirstName" /> <Field Type="DateTime" DisplayName="Published" Name="Published" Node="Book/Published" /> </Fields>
<?xml version="1.0" encoding="UTF-8"?> <Book> <ISBN>0735622825</ISBN> <Title>Microsoft Office SharePoint 2007 Administrator's Companion</Title> <Author> <LastName>English</LastName> <FirstName>Bill</FirstName> </Author> <Published></Published> </Book>
Summary: This works great if you first create the library and then modify it through SPD. If you would like to use a feature, this method won´t work. My next post will deal with that.