Add Related list to customized Edit Form in Sharepoomt 2013 - sharepoint-2013

So I am trying to update a site from 2010 to 2013. The site has a list called vendors and a library called Invoices. Invoices have a lookup column on vendors. The Invoice edit page was customized in SPD 2010 in two ways:
The ListFormWebPart was hidden and a custom DataFormWebPart was added to let the user edit the metadata of the invoice.
A related List View was added so that users could see a list of invoices for the vendor being edited.
After upgrading the site to SharePoint 2013, the fields on the DataFormWebPart do not get rendered. If I remove the hidden ListFormWebPart, then The DataFormWebPart display its fields ok, but the related list shows nothing (the related list must get filtered using the ListFormWebPart).
I tried to recreate the scenario in a new SPWeb from scratch in 2013 and got the same results (I could not have a customized DataFormWebPart AND a related list view on an edit form.)
Is there any way to get this to work in 2013 as it did in 2010?
I’m thinking I could replace my related list with some JavaScript to pull the Invoice info and display it, but I am hoping there is an easier workaround.

Related

Unable to expose existing control on a new project form

TFS 2017 on-premise Version 15.117.27024.0
I have a custom Work Item field which exists as a global field, and has been added to work item templates in other projects on the same instance without issue. I've added the custom field to the User Story template for a new TFS Project (which uses the same TFS project template as other projects), and added it to the layout under the 'Value Area' control. Whatever I try, I cannot get the field to show in the web UI of TFS, but when I preview form using the Visual Studio Process Editor add-in, the field shows.
I've tried moving the control into another group, a different column, re-ordering the controls in the column, cleared cache, tried incognito, tried another users machine who has access to the same project. When the other user edits the template, he can see my new field in the template editor.
Exported the XML for the WIT using witadmin, and the elements are there as expected as a Field and as a control in the correct group & column.
In TFS 2017 and higher versions the fields should be exist also in the <WebLayout> to be displaying in the TFS web interface.
In your case the field exist only in the <Layout> so you can see him only in Visual Studio.

SharePoint 2013: Using StratusForms I deleted "NewForm.aspx", now only the new "NewForm" will not work

Tools: SharePoint 2013, SharePoint 2013 Designer, StratusForms
What I was doing: StratusForms - Modify SharePoint's Default Forms with HTML Templates (https://www.youtube.com/watch?v=oai-m_KyzMc)
Status: DispForm and EditForm currently work, NewForm did work until the incident.
Incident: I deleted the main webpart on NewForm and the form was hosed, so I deleted NewForm.aspx. I recreated the NewForm.aspx and also added it to forms library (https://sharepoint.stackexchange.com/questions/108467/accidentally-deleted-default-editform-aspx). Like before when it worked, I added a Content Editor webpart and pointed it to my StratusForms template, but it did not work . The controls/boxes did not show up. It worked before on the old NewForm, and it currently works on DispForm & EditForm.
Question: Given the above information does anyone know why, or better yet have a solution, to get NewForm.aspx working with StratusForms again?
Thank You!
So the underlying issue was SharePoints internal linkage of it's 3 forms (DispForm, EditForm, NewForm) to the data sources.
So those out-of-the-box forms are not like the ones we create. Even though you create a new "NewForm" and it may look like the old default NewForm, but it is not. There is metadata like Microsoft.SharePoint.PAGETYPE, which tells if it is a custom form or new, display, or edit form.
The resolution was found in this article (http://www.sharepointblogs.be/blogs/vandest/archive/2011/03/11/troubleshooting-issues-with-dispform-editform-and-newform.aspx).
In case the link breaks I have also included the manual method here:
Manually
It's easiest if you take a corresponding form from another SharePoint List in the site and export it (SharePoint Designer) or just copy it to a text editor. This way, most of the settings of the List Form Web Part are already correct
Generate a new GUID and fill that in for the __WebPartId [uppercase & just change a few chars/numbers] and properties [lowercase, same as WebPartID & has a g_ prefix] of the List Form Web Part markup. It has to be the same GUID but the formatting is different. See the above screens for samples
Update the property with the List ID you're targeting
Verify all other properties of the List Form Web Part and save the file as either DispForm.aspx, EditForm.aspx or NewForm.aspx
Import (SharePoint Designer) the page (or paste contents from the text editor)

Cannot filter a SharePoint 2013 Task List after March 2015 Update

Not sure if anyone else has noticed this, but for some reason after I installed the SharePoint 2013 March 2015 CU I am unable to filter Task Lists using a view. (April 2015 does not work either) Even the default Completed view does not work. All items are begin displayed. I have tested this on four different servers now. There is a checkbox in the web part properties that allows for server rendering which I am currently using as a work around but I would like to get the client side rendering to work again as it had before the CU.
Was contacted by Microsoft yesterday.
Short summary:
At the moment there are no solutions for this problem, but they are working on a new smaller CU update that will include a fix. They could not give me a timeframe for when this update will be published, but they told me "very soon".
There are two quick/temporary fixes:
1. On the page go to Settings -> Edit Page -> Select the List Web Part and the option Edit Web part -> Miscellaneous -> Server Render (Checkbox).
2. Go to the list -> select and edit view -> expand "Style" -> Chose any style besides "Default". The style "Shaded" is ok.
I've just confirmed that the May 2015 Cumulative update contains a fix for the issue listed above http://www.microsoft.com/en-us/download/details.aspx?id=47213
Please note that the CU does take quite a while to install and requires the server to be rebooted
After applying the March 2015 CU (and possibly MS15-022), it is no longer possible to Filter a View based on criteria in the Task list (e.g. Task Status). This appears to only impact new Task Lists created post-patch. One workaround is to place the Task list on a Page. Edit the Web Part and check "Server Render" under Miscellaneous. This does not appear to be a Lists.asmx Web Service issue as the filtered view correctly filters in 3rd party tools.
http://nauplius57.rssing.com/chan-11167629/latest.php
Just bumped into the issue above but it happened on a custom list (not issue derived) with March 2016 CU applied. This is the first instance I found so far. I corrected it by doing the following:
Edit the listview page.
Edit the listview web part
In the Miscellaneous section, click Server Render
Save web part settings and page.
Repeat 1-4 except uncheck Server Render.
I also encountered this issue, but on a SharePoint 2013 BCS External List. Filtering with "yes" on a Yes/No column seems to do nothing, return all rows as is. Also when I choose to filter by a date on DateTime columns, no rows were returned.
Changing the view style to "Shaded" and enabling "Server Render" solved the above issues.
Downside to this solution is that you loose the ability to use JS Link / CSR.

playing with SharePoint 2013 Lists Views and Schema

need to know how to get SharePoint List specific View among my Custom List Views or to modify a SharePoint List Schema... I explain :
Before i start i need to tell you that my need here is to have a list exactly like Discussion Board List just i need to modify its New/Edit forms. So i have 2 important creterias that i need to have :
1/Ii need to be able to acess the schema.xml file to add my custom New/edit forms to the list
2/ Or i need to be able to get the default View of Discussion Board List (the one with reply button and like etc...)
So, here are my Problems:
If i create a custom list (from Visual Studio) and i make it based on Discussion Content Type, Condition 1 is satisfied e.g. i can have a schema.xml File in where i can modify to put my Custom Edit/New forms BUT my list is being displayed not the way i want to (like described in Point 2) it is diplayed in rows and columns (no reply button etc...)
If i create a custom list (from Visual Studio again) based on Discussion Board list template, it is displayed (its Default View) just like i want to (as described in point 2) but in Visual Studio i only have a list instance, i don't have access to its Schema.xml where i can put links to my custom New/Edit forms.
I tried too many things; I tried to provision the Views programmatically just like in this : Thread but none helped me.
The last thing i tried is to take the desired view from SharePoint Discussion Lists (found its schema.xml in 15 hive) and i tried to integrate in my custom List, but i No relevant results...
So, in summary i need either to be able to import View from List to List or to be able to modify Schema.xml of SharePoint Lists that are based on specific list template (in my case Discussion Board template)
Any help will be welcome

How to edit few fields in a list in Sharepoint 2010

I have created a site definition using list and I am trying to edit few list fields in sharepoint 2010. I am able to edit all the fields present in the list using EditForm.aspx. I am opening this form in a popup. Now the problem is that I don't want to edit all the fields. I want only few fields to be edited.
Please let me know how can I achieve this.
Open the editform.aspx using script webpart, then disable the form field by using the javascript. It sounds easy...