Show custom EditForm from a specific document library view
Hello,
I've created a custom EditForm that I would like to show when the user clicks the "<label for="ShouldDisplayEdit">Edit" (link to edit item)</label> icon; however I just want to show this EditForm for a specific view.
I have a listview webpart (actually an "app") for the library and this specific view set on a page. However, it opens the default edit form instead of the custom one. (StatusEdit.aspx). I don't want to set StatusEdit.aspx as the default, as it
has fewer fields than the default edit form.
I am able to hide fields conditionally using SPClientTemplates.TemplateManager.RegisterTemplateOverrides, but it's been a lot of work to try to make it match the requirements I have. I'd really like to have the custom edit form work if it's possible.
Thank you for your help!
Best Regards,
Kevin Worthington
Hi,
According to your description, my understanding is that you want to specify the custom EditForm for a specific document library view.
We can change the link to edit item button url using Jquery to achieve it.
Here is a code snippet for your reference:
<script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
function changeurl()
$(' ms-itmHoverEnabled ms-itmhover ms-droppable).find('ms-vb-lastCell ms-cellstyle ms-vb-icon ms-vb-lastCell').attr(‘href’,”http://new url”);
</script>
Here are some detailed articles for your reference:
http://stackoverflow.com/questions/179713/how-to-change-the-href-for-a-hyperlink-using-jquery
http://stackoverflow.com/questions/8729830/jquery-find-td-of-tr-with-class-and-make-changes-for-a-telerik-mvc-grid
Thanks
Best Regards
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Jerry Guo
TechNet Community Support
Similar Messages
-
Hide the delete menu item from a specific document library
I want to hide the Delete item menu option for a specific document library.Since it is for a specific library I would not like to use customcore.js approach.Please suggest some useful javascript for same.
I have a custom delete action associated with the menu which performs other function as well so need to hide the OOB delete option from the item menu of a document library.
I have already used below javascript in CEWP which I added on the document library page itself(allitems.aspx) but yeild no results:
<script type="text/javascript">
var elemTable=document.getElementById('ECBItems');
if (elemTable !=null) {
var elemTBody=elemTable.childNodes[0];
//iterate each table row to find the correct ECB menu item to hide(remove)
for (var iMenuItem=0; iMenuItem < elemTBody.childNodes.length; iMenuItem++) {
var elemTR=elemTBody.childNodes[iMenuItem];
var elemTDTitle=elemTR.childNodes[0];
var title=GetInnerText(elemTDTitle);
//here we filter on title, but the table contains more information if need be
if(title =='Delete') {
elemTBody.removeChild(elemTR);
</script>
Please suggest which can be kept specific and requires no change in masterpage as same masterpage is used across the site.Hi justSP,
Greetings.
Hope the below links help you
http://social.technet.microsoft.com/Forums/office/en-US/9adea3a2-6d08-4c04-ace2-88a704833f1d/how-to-hide-delete-item-from-ecb-menu-for-1-specific-custom-list?forum=sharepointcustomizationlegacy
http://chakkaradeep.com/index.php/sharepoint-hiding-menu-items-from-the-edit-control-block/
http://social.technet.microsoft.com/Forums/office/en-US/1b832635-4ae7-4f31-826c-2d6b834ece52/hide-delete-from-ecb-menu-for-a-specific-document-library-in-sharepoint-2010?forum=sharepointcustomizationprevious
http://social.technet.microsoft.com/Forums/office/en-US/919e01e6-9a7a-4439-b778-28e0dc8bffba/how-to-hide-delete-option-from-ecb-menu-in-document-library-in-sharepoint-2010?forum=sharepointdevelopmentprevious
Please remember to click 'Mark as Answer' on the answer if it helps you -
Hi,
I am having an issue where when I insert a Content Query webpart into a page, and filter to managed metadata, all the right documents show up except one document that happens to have two metadata tags attached to it. The content query webpart is set
to only look through a specific document library. I'm not sure what I am doing wrong.
Here is the one document with two metadata tags:
Below is the Content Query:Hi,
As I understand, you did not get the results with multiple metadata tags through Content Query web part in SharePoint 2013.
Check things below:
1. Check if you have set the item limit more than the display items in Presentation section of the web part. If the item number more than item limit, the rest items will not show.
2. Check if the item you cannot find uses the content type you have set in the content type section of content query web part.
When you edit the properties of the item, you will see the content type the item is using.
Best regards
Sara Fan
TechNet Community Support -
Sharepoint 2013 Document library view show version history
Hello everyone,
I have a document library view with many folders. Each folder is a procedure and have document attached to it.
When I add a new version, I would like to show version history for each document contained in the folder. For example:
There is a folder Procedure 123 which has three files ( File1, File2, and File3). After a week the user the user created new revisions for each document.
I would like to have a document view with the following information
File Name version
====== ======
File 01 0
File 02 0
File 03 0
File 01 1
File 02 1
File 03 1
File 01 2
File 02 2
File 03 2
Thanks for your help.
Jhonny MarceloThis is quite simple, you have to modify the current view (Modify this view) of document library and then you can select version column from available column list (make sure version is enabled). please check below picture for detail.
Adnan Amin MCT, SharePoint Architect | If you find this post useful kindly please mark it as an answer. -
Download files from Shared Point document library using SSIS packages
Dear All,
Can you please help me on how can I download excel/CSV files from share point document library to local machine using SSIS packages.
Regads,
Praveen C
Regards, PraveenHi Praveen,
You can also implement
custom component or try third party custom component such as SharePoint List Adapters:
https://sqlsrvintegrationsrv.codeplex.com/releases/view/17652
Regards,
Mike Yin
TechNet Community Support -
How top Open a Excel Document from share point document library using jquery
How top Open a Excel Document from share point document library using jquery
Hi,
According to your post, my understanding is that you want to open excel file via JQuery.
To open excel file, we can use the following code.
<script type="text/javascript">
function openExcel(strFilePath) {
var yourSite = "http://www.yoursite.com";
openExcelDocPath(yourSite + strFilePath, false);
function openExcelDocPath(strLocation, boolReadOnly) {
var objExcel;
objExcel = new ActiveXObject("Excel.Application");
objExcel.Visible = true;
objExcel.Workbooks.Open(strLocation, false, boolReadOnly);
</script>
For more reference:
http://www.kavoir.com/2009/01/using-javascript-to-open-excel-and-word-files-in-html.html
http://www.dotnetspider.com/resources/43453-Open-Word-Excel-files-using-Javascript.aspx
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support -
Displaying Document Name With The Summary in a Single Column Using Document Library View.
Hi All,
I have a question that relates to SharePoint Document Library Views. I want to view the Documents name with the summary in a single column. Below image shows an example of it. I need this within a SharePoint Document Library. Also I want the height of the
row to be increased more than the default height. I cannot figure it out how to do that? Could you someone help me to do this. I have inserted the Document Library as an App Part to the page.
So could you someone help me to solve this matter?
Thanks and regards,
ChiranthakaHI Chiranthaka,
You can create DataView webpart using SPD and then modify the display template according to your need.
http://deannaschneider.wordpress.com/2012/07/10/item-counts-dvwp-sp2010/
Hope this will help to solve your problem.
Best Regards,
Brij K -
Displaying Document Name & The Summary in a Single Column Using Document Library View
Hi All,
I have a question that relates to SharePoint Document Library Views. I want to view the Documents name with the summary in a single column. Below image shows an example of it. I need this within a SharePoint Document Library. Also I want the height of the row
to be increased more than the default height. I cannot figure it out how to do that? Could you someone help me to do this. I have inserted the Document Library as an App Part to the page.
So could you someone help me to solve this matter?
Thanks and regards,
ChiranthakaHI Chiranthaka,
You can create DataView webpart using SPD and then modify the display template according to your need.
http://deannaschneider.wordpress.com/2012/07/10/item-counts-dvwp-sp2010/
Hope this will help to solve your problem.
Best Regards,
Brij K -
Set Document library view as welcome page
Hi
I want to set my Document library view as welcome page of my SharePoint site 2013.
How can I achieve this.
Regards,
Siva.Hi,
According to your description, my understanding is that you want to change the welcome page to the document library view page in SharePoint 2013 site.
You can use SharePoint designer to find the view page in “All files” and then set the document library view page as welcome page .
Here is a detailed article for your reference:
http://techtrainingnotes.blogspot.com/2011/06/sharepoint-how-to-change-default-home.html
Thanks
Best Regards
Jerry Guo
TechNet Community Support -
Set the horizontal scroll bar for the OOTb document library view
hi all,
Am facing an issue in my sp portal.We have designed and developed the portal with OOTB document library views for site columns also. Going to enable the doc lib view. but we have some 35 columns in eeacha nd every document
library within our sub site. But if an end user wants to see the last column then he needs to scroll. but, since then my master page has fixed width, the top corner will be seen as blank. would like to know how can we set horizontal scrolling
in this doc lib view .
DasHi,
According to your description, my understanding is that you want to set the horizontal scroll bar for the document library when the last column postion exceed the fixed width.
I suggest you can try to use Jquery to set the width attribute of the menu bar dynamically if the document library width exceeded. You can add the Jquery or CSS style using SharePoint Designer under the PlaceHolderMain tag of document
library page. Also, you need to find the div id in your environment using Internet Explorer.
More information:
http://sharepointpromag.com/sharepoint-development/sharepoint-branding-101-branding-master-pages
Thanks
Best Regards
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] -
I have a site with the default document library.
I add views to the library, some ask for the items to be shown in folders, some not.
I create a site template via the SharePoint UI.
I create a new site.
In the new site, the library exists, the views exist, but all the views are set to show the items in folders.
Does anyone else have this problem? Is there a patch or any workaround?Hi ,
According to your description, my understanding is that view property "show all items without folders" is not preserved in packaging and is lost after we create a site using the saved site template.
For your issue, I can reproduce your scenario in my environment. It should be caused by the scope attribute is missing. For a workaround, you can try to crack the site template wsp, add the missing scope
attribute to the View schema in the list schema.xml.
Also, I recommend you open up a ticket for deep investigation.
Thanks,
Eric
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Eric Tao
TechNet Community Support -
Created column not showing in the Document Library View for a Custom Content Type based on Document
We have a custom content type based of Document Content Type. The OOTB "Created" column does not show up in the view as well as in the Site Settings -> Columns.
But it shows up in the Display Form and Edit Form of the Item at the bottom "Created at " by " " and "Modified by" at by ""
Would anyone know how to make this column appear as part of the view ?
thanks,
HarshHi,
They should by default be possible to add to a view. The only reason they would disappear from the UI if someone has changed the attribute of the Field to hidden = true. You can verify that with PowerShell and if so you can use PowerShell to revert the setting
to false.
$w = Get-SPWeb http://dev13$f = $w.Fields.GetFieldByInternalName("Created")$f.Hidden$f.Hidden = $false$f.Update() -
Documents uploaded from SharePoint Task to a specific document library
This is done in SharePoint online. Users get assigned a task. (I am doing this from workflow using SPD). They need to upload a document and save the task. (I am using a multiline textbox with rich text for this).
Questions:
1. Is there a way to have the documents go to a certain document library? When we have a rich textbox, the default save location is 'site assets'. Is there a way to have the default location to a certain document library?
2. Is there a way to force a certain naming format to the document?
3. Is using a multiline rich textbox the right one?
Would appreciate any pointers.
Thanks, FayeHi Faye,
According to your description, my understanding is that you want to change the destination library where the document would be uploaded to in the multiple line of text column.
#1. We can choose the destination library when we upload the documents, please refer to the picture below:
#2. To force a naming format for the documents, I recommend to create another workflow associated with the destination library to update the name of the documents and set the workflow to start when an item is created.
#3. To achieve this goal, use the multiple line of text column is a good way to upload documents by OOB. You can also create workflows in Visual Studio to enable users to upload documents.
http://social.technet.microsoft.com/Forums/sharepoint/en-US/c8c8ad46-ab67-4966-8b81-3afda8a86da9/upload-a-document-from-a-task-form-in-a-sharepoint-2013-visual-studio-workflow?forum=sharepointdevelopment
Best regards.
Thanks
Victoria Xia
TechNet Community Support -
Hello,
OK, so I am currently having issues with opening MS Access documents from SP 2010. I have taken an existing database and uploaded it into a document library. Now, when I open this document I get the prompt to open it in either 'Read Only' or 'Edit'.
When I select 'Read Only' I can view the document, however I get the 'Read Only - Save As' notification when the document opens up. I have configured the document both from the source (on the original file) and from within SP to disable notifications - (from
within the Trusted Options selection)
Deleted the document and uploaded it again, and the 'yellow bar' notification is still appearing.
I want to disable the 'Save As' function, or even hide this when the document is opened. Is this at all possible??Hi Terry,
According to your description, my understanding is that you don’t want the yollow bar notification to display when you open Access documents.
This issue seems to be about the client application. Please compare the followings with the things that you did:
1.Open the documents
2.Click File->Options->Trust Center->Trust Center Settings
3.Click Protected View, unselect ‘Enable Protected View for originating from the Internet’
4.Click Message Bar, select ‘Never show information about blocked content’
5.Click Macro Settings, select ‘Disable all macros without notification’
In addition, as this issue is about Office, I commend you create a new thread in Office forum, more experts will assist you with this issue.
Office forum:
http://social.technet.microsoft.com/Forums/en-US/home?category=officeitpro
I hope this helps.
Thanks,
Wendy
Wendy Li
TechNet Community Support -
Hi,
To achieve these are the steps that I had followed :
1. Add the document Library path into Central Admin -> Application Mgmt -> Manage Service App -> Excel Service App -> Trusted File Locations
2. Add Documnet Library link to Trusted Connection Proivder
3. Open Visual Studio as Run as Administrator
4.Create an SharePoint 2013 Empty Project.
5.Add Service Reference : http:\\<server>\_vti_bin/excelservice.asmx
6.Service added successfully
7.Create a class file and add the Service Reference namespace
There is no such class as ExcelService to call.
Please let me know if somebody knows how to open the Excel file into C#(2012) either using ExcelService or any other way to open. I tried old methods of Sharepoint 2010 server but it's not able to access classes.
Requirement is :
Need to read the excel sheet from Document Library and transfer all data into DataTable.
Please help asap.Hi,
This is the forum to discuss questions and feedback for Microsoft Office, I'll move your question to the SharePoint 2013 development forum
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/home?forum=sharepointdevelopment
The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
George Zhao
TechNet Community Support
Maybe you are looking for
-
How to get no.of users in a specific client
HI, I need to find the no of users in a specific client , but i don't have accounts to all the clients. I tried from one client where i have the account and executed SE16N and table usr02 got only client specific users list. And as per my unders
-
Some Question Please answer I am a beginner
Hello Friends I have some question 1. what is the difference between forms and report 2. what is the difference between simple report and xml publisher report 3. what are the types of Database Types in Oracle 4. what are the types of SQL Loader In Ad
-
Adobe Tech support sent me to a download of CS2 files but there appears to be no way to actually initiate the download...
-
How to display characteristic values in X achsis in chart web item
Hello, I have a chart web item which has to display key figure (Y achsis) with three characteristics T, A and B. The first characteristic T has two values T1 and T2 which are represented through two columns in the graphic area. The second characteris
-
** Restart of Bulk messages
Hi Friends, How do we restart of Bulk asynchrnous messages in SAP ? (Nearly 500 messages in SXMB_MONI) Kind Regards, Jeg P.