How to apply masterpage for document library in SharePoint 2013
Hi,
is it possible to change the master page in library level.
DO you mean JUST at the library level? If so, there's no way that I know of as Master Pages are applied to Sites at a whole. They then have Page Layouts added, which tell SharePoint where to load the content, which is where your document library
would be.
What do you hoping to achieve?
Steven Andrews
SharePoint Business Analyst: LiveNation Entertainment
Blog: baron72.wordpress.com
Twitter: Follow @backpackerd00d
My Wiki Articles:
CodePlex Corner Series
Please remember to mark your question as "answered" if this solves (or helps) your problem.
Similar Messages
-
Set unique file name for document library in SharePoint 2013
Hi,
I have document library in the sharepoint 2013 with two dropdown fields-dept name,dept id.
My requirement is to create a namiing convention for each file uploded in the document library.
So the naming convention should be "deptname-deptid-filename-Id".
I tried this naming convention using workflow as below-
In this case ,first I attach the file and then it asks for dept name & id,Whwn i input these value,it shows error message as this file is modified by you at this point of time.On cancel it saves the attached file but does not save the deptname and dept
id.
please help if any idea or suggestion.
Thank you.The only way I've ever seen this work while adding a new file is to use an Event Reciever. Build an Event
Receiver that fires whenever a file is added and have the code change the name of the file from whatever the user titled it to the naming convention you are using.
Paul Stork SharePoint Server MVP
Principal Architect: Blue Chip Consulting Group
Blog: http://dontpapanic.com/blog
Twitter: Follow @pstork
Please remember to mark your question as "answered" if this solves your problem. -
ID in Document library in SharePoint 2013
Hi,
I have an document library in SharePoint 2013.I uploaded some documents to document library for testing.Now I deleted these testing documents.And when user starts adding documents,the id of the document is not started from 1.
So how I will get the id starting from 1.
Any help?
Thank you.Save the list as a template and recreate the list usign this template. ID columns will always keep incrementing
and will never be reused. -
Third party tool for document preview in sharepoint 2013
Hello,
we are looking for third party tool which provide preview of any documents in documnet library in sharepoint 2013. So when users just hover over the document, they can see the preview. Do
any of you please provide a good suggetion in case if you have used in the past? In my research I came across
Knowledgelake and harepoint. Also I think there is one Metalogix but I know for sure it a way too costly. So please help if you know who does this job with a fair amount of price.
Thanks.I've found Ontolica Preview to be adequate for this. Reasonable product and supports a lot of formats
http://www.sharepointreviews.com/component/content/article/69-sharepoint-auditing/202-Ontolica-BehaviorTracking-for-SPS-2003-.pdf
Might also be worth spending some time on SharePointreviews.com for other suggestions
http://www.sharepointreviews.com/
Steven Andrews
SharePoint Business Analyst: LiveNation Entertainment
Blog: baron72.wordpress.com
Twitter: Follow @backpackerd00d
My Wiki Articles:
CodePlex Corner Series
Please remember to mark your question as "answered" if this solves (or helps) your problem. -
I have an Access 2013 Web App in my Sharepoint 2013 online website. It contains a query to report on its data (several, actually, but let's keep it simple). I want to connect an Excel spreadsheet to the query, visualise the data in pivot tables/graphs/whatever,
save the spreadsheet in a Document Library, and let other team site Sharepoint users open the spreadsheet (preferably in Excel online, but with Excel client if it has to be) and see/copy the data, refreshed with the latest information from the Access Web App.
Simple, surely!
The way I'm doing it at the moment is to create an ODC file to connect to the cloud-based Access 2013 database, save that ODC in a Data Connection Library in the SP site, and use the saved ODC file as data source in the Excel spreadsheet. This works and
successfully keeps everything 'in the cloud' but I can't get it to refresh in Excel Online, and if I open the spreadsheet in Excel Client I have to enter the database password every time to refresh it. I don't really want to issue this password to everyone
who might want to view the data. There must be a better way than this ODC method, I suspect.
Googlings on this have led down various blind alleys - Excel Services, PowerPivots, Web Parts - but I'm stuck on which to follow through. Please, someone, point me to an article/book/website that explains how to do this step-by-step in simple language..
thanks
JonathanI don't see any quick way of achieving it - at least there's no such functionality exists in SharePoint. All you can do, develop an event receiver that will update the fields in the list item once the excel file is added/updated. You can use OpenXml API
to manipulate the excel file.
Thanks,
Sohel Rana
http://ranaictiu-technicalblog.blogspot.com -
How to configure Search for a site in sharepoint 2013?
Hi,
I had a document library.
1)I want to configure search so that I can search documents from previous month, quarterly, half year, year, and all documents is possible.
2)Search results are organized with most recent documents at the top.
3)Search results have year as refiner that can be used to show results only from specified year (In library we have field with year when document create)
To achieve this what I have chane in site settings->search
and what I have to write for Result Types, Query Rules
ThanksHi,
Following are the steps you need to perform for creating the search center.
http://blogs.technet.com/b/tothesharepoint/archive/2013/10/30/set-up-a-search-center-in-sharepoint-2013.aspx (About Search)
1. Create the site collection by navigating to the CA(Central Admin) & select the Enterprise Search Center Template.
2. Create Content Source -> Navigate to the Search Service application->Create the content source if the content comes from other content farm (if different farm accout if it same add the site Collection URL in default Content Source. ( make
sure the crawl account must have full read permission)
http://blogs.technet.com/b/tothesharepoint/archive/2013/10/31/how-to-create-a-search-center-site-collection-and-enable-crawling-of-your-content-in-sharepoint-2013.aspx (Create
Search Center)
3. Once you add url in the content source and run the full crawl.
4. Navigate to the Search center created at step 1 and try to search with the document name. you will see the document.
http://blogs.technet.com/b/tothesharepoint/archive/2013/11/06/how-to-configure-the-search-results-web-part-to-use-a-new-result-source-in-sharepoint-2013.aspx (Go
to the document Library and configure the result source)
5. To configure the refiner please follow this post. You will see the modified refiner to refine your search http://blogs.technet.com/b/tothesharepoint/archive/2013/11/07/plan-to-use-refiners-on-a-search-results-page-in-sharepoint-2013.aspx)
Let me know if you req. any other information.
Regards,
Basant Pandey
http://sharepointfordeveloper.blogspot.com -
Get/retreive managed metadata column value from Document Library using SharePoint 2013 JSOM
Hi,
I am trying to retrieve managed metadata column (NewsCategory) value in SharePoint 2013 Document library using JSOM.
I get "Object Object" rather than actual value.
I tried:-
var newsCat = item.get_item('NewsCategory');
alert(newsCat) //Displays [Object Object]
var newsCatLabel = newsCat.get_label();
var newsCatId = newsCat.get_termGuid();
But, I get the error "Object doesn't support property or method get_label()"
I also tried :-
var newsTags = item.get_item(' NewsCategory ');
for (var i = 0; i < newsTags.get_count() ; i++) {
var newsTag = newsTags.getItemAtIndex(i);
var newsTagLabel = newsTag.get_label();
var newsTagId = newsTag.get_termGuid();
Even now I get the error "Object doesn't support property or method get_count()"
I have included " NewsCategory " in the load request:- context.load(items, 'Include(File, NewsCategory)');
Any idea what the issue is? Do I have to add any *.js file using $.getScript?
I added following .js files
var scriptbase = _spPageContextInfo.webServerRelativeUrl + "/_layouts/15/";
$.getScript(scriptbase + "SP.Runtime.js", function () {
$.getScript(scriptbase + "SP.js", function () {
$.getScript(scriptbase + "SP.Core.js", function () {
Thanks in Advance,Hi Patrick,
I already added those references. I just pasted the parts of script snippet in my initial post. To avoid confusion I am pasting here complete script.
2.1.1.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
var scriptbase = _spPageContextInfo.webServerRelativeUrl + "/_layouts/15/";
$.getScript(scriptbase + "SP.Runtime.js", function () {
$.getScript(scriptbase + "SP.js", function () {
$.getScript(scriptbase + "SP.Core.js", function () {
function getdata() {
var context = new SP.ClientContext.get_current();
var web = context.get_web();
var list = web.get_lists().getByTitle('Documents');
var camlQuery = new SP.CamlQuery();
var filterCategory = 'Solutions';
var IDfromTaxonomyHiddenList = 15;
camlQuery.set_viewXml('<View><Query><Where><Eq><FieldRef LookupId="TRUE" Name="'+filterCategory+'" /><Value Type="ID">' + IDfromTaxonomyHiddenList +'</Value></Eq></Where></Query></View>');
/*the above CAML query successfully gets all the list items matching the criteria including "NewsCategory" managed metadata column values
But when I try to display the value it retrieved it ouputs/emits Object Object rather than actual values */
var items = list.getItems(camlQuery);
context.load(items, 'Include(File,NewsCategory)');
context.executeQueryAsync(
Function.createDelegate(this, function (sender, args) {
if (items.get_count() > 0) {
var listItemEnumerator = items.getEnumerator();
while (listItemEnumerator.moveNext()) {
var oListItem = listItemEnumerator.get_current();
var file = oListItem.get_file();
var name = file.get_name();
var newsCat = oListItem.get_item('NewsCategory'); alert(newsTags.constructor.getName());
alert(newsCat) //Displays [Object Object]
var newsCatLabel = newsCat.get_label(); // Here it errors out with message "Object doesn't support property or method get_label()"
var newsCatId = newsCat.get_termGuid();
} //end while
}//end if
Function.createDelegate(this, function (sender, args) {
alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
ExecuteOrDelayUntilScriptLoaded(getdata, "SP.Core.js");
</script>
In the above script "var name = file.get_name(); " gets the exact file name.
But the line "var newsCat = item.get_item('NewsCategory');
alert(newsCat) //Displays [Object Object] rather than actual value.
Issue resolved replace "oListItem.get_item('NewsCategory');" with oListItem.get_item('NewsCategory').get_label();"
Thanks -
Retrieve all folder & sub folder from document library in sharePoint 2013
Hi,
I want to retrieve all the folder and sub folder from document library and bind it to the dropdownlist using server object model.
I used the below query to get all folder and sub folder.\
query.Query = @"<Query><Where><Eq><FieldRef
Name='FSObjType' /><Value Type='Lookup'>1</Value></Eq></Where></Query>";
query.ViewAttributes
="Scope='RecursiveAll'";
query.ViewFields
= "<FieldRef Name='Title'/>";
query.ViewFieldsOnly
= true;
but when I bind result with the dropdownlist,it displays the output as below
Please Help
Thank YouHi,
Thanks for posting your issue, Kindly try out below mentioned CAML query to get all the Folders and Subfolders from Document Library
<Query>
<Where>
<Contains>
<FieldRef Name='FileLeafRef' />
<Value Type='Text'>token</Value>
</Contains>
</Where>
<OrderBy><FieldRef Name='FileDirRef' /></OrderBy>
</Query>
<ViewFields>
<FieldRef Name='ID' />
<FieldRef Name='LinkFilename' />
<FieldRef Name='FileDirRef' />
<FieldRef Name='FileLeafRef' />
</ViewFields>
<QueryOptions>
<ViewAttributes Scope='Recursive' />
<OptimizeFor>FolderUrls</OptimizeFor>
</QueryOptions>
Also, check out below mentioned URLs to fix this issue
https://social.msdn.microsoft.com/Forums/office/en-US/35e799a1-9360-46e5-8719-dd35fdace7ea/filter-document-library-folder-through-caml-query?forum=sharepointdevelopmentlegacy
http://www.ktskumar.com/blog/2009/07/retrieve-all-folders-from-list/
I hope this is helpful to you, mark it as Helpful.
If this works, Please mark it as Answered.
Regards,
Dharmendra Singh (MCPD-EA | MCTS)
Blog : http://sharepoint-community.net/profile/DharmendraSingh -
Hi Team,
I am trying to move the .pdf files from drop-off library to custom library.
For the above requirement i am writing content organizer rule condition like (On Group: Document content types & Type: Document)
Property: Name
Operator: Ends with
value: .pdf
and Setting value in target location like
/sites/MS/ProductGuides
How to solve the issue
If help appriciated
Regards,
DhayaHi Dhaya,
I created a Content Organizer rule like this:
When uploading a .pdf file to the Drop Off library, it is moved to the destination library immediately:
I suggest you create a similar rule as above for another test to see if the issue still persists.
Thanks
Patrick Liang
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Document Preview in SharePoint 2013 without office webapps
Hi,
A friend of mine was asking if there is an option OOB or any third party which would provide the option to preview the document in the document library without Office webapps, (His client has SharePoint 2013)
Any suggestions are appreciated....!
Satyam...The same question posted here - go through the thread
http://social.technet.microsoft.com/Forums/sharepoint/en-US/38794517-2eeb-46df-b781-77e634c69b1b/third-party-tool-for-document-preview-in-sharepoint-2013?forum=sharepointadmin#a0310766-399b-4f66-a762-e6394b1770e0
Regards,
Pratik Vyas | SharePoint Consultant |
http://sharepointpratik.blogspot.com
Posting is provided AS IS with no warranties, and confers no rights
Please remember to click Mark As Answer if a post solves your problem or
Vote As Helpful if it was useful. -
How to create a document library in Sharepoint Online using Powerpoint?
I've been trying to create a document library in Sharepoint Online via pwoershell and I've been trying to see if anyone else has the code but the only scripts i could find are for Sharepoint 2010 on-premise and it's not compatible with Sharepoint 2013.
Can anyone help me?
Thanks!
Dearbhla BradleyIt's SharePoint Client-side Object Model. Here are few references:
http://msdn.microsoft.com/en-us/library/office/jj193041(v=office.15).aspx
http://msdn.microsoft.com/en-us/library/office/dn268594(v=office.15).aspx
These postings are provided "AS IS" with no warranties, and confers no rights. -
How to apply license for SSM 7.5 & Netweaver CE 7.1?
How to apply license for SSM 7.5 & Netweaver CE 7.1?
My application server java in SAPMMC: appear message: no valid license found.
Acually we already bought license and download,
So, how to solve this license problem?Chamnap,
When your NetWeaver license expires, it can be restarted, but will only run for 1/2 hour, to allow installing a new license.
Step 1- Start NetWeaver CE from the control console
Step 2 - Log on to NetWeaver Administrator http:///[server]:50000/nwa and go to Configuration tab then Infrastructure sub-tab, then Licenses
Step 3 - Make note of your System Number and Active Hardware Key in the System Parameters section
Step 4 - Navigate to the Service Marketplace http://service.sap.com/licensekey
Step 5 - You are looking for SAP Business Suite - SAP Products with ABAP Stack, Without ABAP stack (WEB AS Java-J2EE Engine) SAP Enterprise Portal link
Step 6 - Fill in your Hardware Key and System # - Make sure you choose this License Type: J2EE Engine - Web Application Server Java (it is not the default selection)
Step 7 - A message at the bottom of the page will note a new key has been generated and you can Download the txt file needed (you also receive an email with the info as well)
Step 8 - (Restart NetWeaver CE - if its timed-out) On the Licenses page of nwa click Install from File > Browse to the txt doc you downloaded and ADD
You now have the new license install. Make note of the date to schedule the time for any future updates, so that service is not interrupted.
If you cannot access the license key on the Service Marketplace you will need to contact your SAP account representative.
Regards,
Bob -
Hi,
I have site with contains many document library each contains many MS Office and Pdf files. We have provided document library level access rights. While users click the file name, "Prompting the credentials while click MS office documents in document
library in SharePoint Foundation 2010".
Its annoying the user.
How could i resolve this? Its for all users.
Note: only for MS Office file. other files are opening correctly.
Kind Regards
Poomani SankaranHi,
According to your post, my understanding is that you got the promote issue when clicked the documents in the library of the SharePoint foundation server.
The issue may be caused that the Kerberos authentication is misconfigured, you can change to NTLM to check whether it works.
http://www.techrepublic.com/blog/smb-technologist/prevent-unwanted-credentials-prompts-with-sharepoint-document-libraries/
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support -
Hi I have a requirement to create a list item in Contracts List when a document is uploaded in Contracts Vendor library.
Contracts List will
have columns - Contract Name ( title column), Contract Number, Contract Start date and end date.
Contracts Vendor library will have Contract
Name,Contract NUmber.
User will select the Contract Name from drop down ( this is look up column linked to Contract Name in Contract
List).When user uploads document in Contract Vendor library then item should be created in Contract List with selected Contract Name and
Contract number .
Contracts and Contracts Vendor are related by look up Contract Name. Contract Name is internally a title column in
Contracts List.
Issue1 :
Since Contract number is look up column, while I am creating item the Contract name is not getting updated in
Contracts List. I have to use sharepoint designer workflow to achieve this task. Title colum or Contract Name shows no title.
Issue 2:
One
more issue I am facing is that Contracts List has Section and Division cascaded drop downs when i select values from section and division
dropdowns and save item in Contracts list the values are getting saved in Contract List.
Could anyone suggest me how to handle this ? I am
attaching the screenshots of the list and library structure. TRuly appreciate your help.
Below are screenshots of the list structureHi,
According to your post, my understanding is that you wanted to update a title column in list that is a lookup column to document library in sharepoint designer workflow 2010.
I try to reproduce the issues as follows:
Create a custom list named Contracts List, add columns: Contract Name ( title column), Contract Number(Number), Contract Start date(Data and Time) and Contract End date (Data and Time).
Create a document library named Contracts Vendor library, add columns: Contract Name(Lookup), Contract NUmber(Lookup).
Create a workflow associated to the Contracts Vendor library.
Add action: Create List Item.
5. Start the workflow automatically when an item is created.
6. Upload a document, select the Contract Name and Contract NUmber, the workflow will be started automatically.
7. Open the Contracts List, an item will be added with the Contract Name and Contract Number in the Contracts Vendor library.
Thank you for your understanding.
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
Hi,
The requirement is to create ""Document Sets in Bulk" using JSOM. I am using the following posts:-
http://blogs.msdn.com/b/mittals/archive/2013/04/03/how-to-create-a-document-set-in-sharepoint-2013-using-javascript-client-side-object-model-jsom.aspx
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/1904cddb-850c-4425-8205-998bfaad07d7/create-document-set-using-ecma-script
But, when I am executing the code, I am getting error "Cannot read property 'DocumentSet' of undefined "..Please find
below my code. I am using Content editor web part and attached my JS file with that :-
<div>
<label>Enter the DocumentSet Name <input type="text" id="txtGetDocumentSetName" name="DocumentSetname"/> </label> </br>
<input type="button" id="btncreate" name="bcreateDocumentSet" value="Create Document Set" onclick="javascript:CreateDocumentSet()"/>
</div>
<script type="text/javascript" src="//ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.2.min.js"> </script>
<script type="text/javascript">
SP.SOD.executeFunc('sp.js','SP.ClientContext','SP.DocumentSet','SP.DocumentManagement.js',CreateDocumentSet);
// This function is called on click of the “Create Document Set” button.
var ctx;
var parentFolder;
var newDocSetName;
var docsetContentType;
function CreateDocumentSet() {
alert("In ClientContext");
var ctx = SP.ClientContext.get_current();
newDocSetName = $('#txtGetDocumentSetName').val();
var docSetContentTypeID = "0x0120D520";
alert("docSetContentTypeID:=" + docSetContentTypeID);
var web = ctx.get_web();
var list = web.get_lists().getByTitle('Current Documents');
ctx.load(list);
alert("List Loaded !!");
parentFolder = list.get_rootFolder();
ctx.load(parentFolder);
docsetContentType = web.get_contentTypes().getById(docSetContentTypeID);
ctx.load(docsetContentType);
alert("docsetContentType Loaded !!");
ctx.executeQueryAsync(onRequestSuccess, onRequestFail);
function onRequestSuccess() {
alert("In Success");
SP.DocumentSet.DocumentSet.create(ctx, parentFolder, newDocSetName, docsetContentType.get_id());
alert('Document Set creation successful');
// This function runs if the executeQueryAsync call fails.
function onRequestFail(sender, args) {
alert("Document Set creation failed" + + args.get_message());
Please help !!
Vipul JainHello,
I have already tried your solution, however in that case I get the error - "UncaughtSys.ArgumentNullException: Sys.ArgumentNullException:
Value cannot be null.Parameter name: context"...
Also, I tried removing SP.SOD.executeFunc
from my code, but no success :(
Kindly suggest !!!
Vipul Jain
Maybe you are looking for
-
Inconsistencies with file saving and PDF naming
Sometimes when I save a file (or export a PDF) the assumed location is where I opened the file. Other times it the assumed location is the last place I saved a file. There does not seem to be any consistency. Also, when I save a PDF, the automatic
-
ATP control in ABAP code, product allocation
Hello, Scenario is like this: I am creating sales order for 10 PC of material. Material is fully available on unrestricted stock but product allocation is allowing me to use only 3 PC of material. Question: I am searching for ABAP code which tells me
-
I can't delete or change my songs in my ipod classic when connect to itunes??
please help, its like i can't make any changes to it at all, where as in the old itunes i could
-
How many OC clusters can in installed / implemented on a node & RAC DBS
In a cluster, How many OC clusters can be installed and How many RAC Database can a single OC cluster can support. Can i share single VG & LV to manager two OC clusters each with one RAC Database. Thanks in Advance. Regards Satish
-
Greetings I applied for my free upgrade to Mountain Lion on 25th July and have not received anything as yet. I read on this forum that upgrade codes will take between 24 and 72 hours to process. My application has well exceeded that. I was given a re