Solved

Custom XSLT in Sharepoint Forms breaks Sharepoint Calendar

Posted on 2011-09-28
5
984 Views
Last Modified: 2012-05-12
This is a very strange one.  I have been building my companies ahrepoint site from the ground up.  It is SharePoint Foundation 2010 running on MSSQL 2008 standard.  Because the company has a bunch of unique needs I have been doing a great deal of development work.  One of the big issue is how our forms look on the various list's we have.  One big issue has been Date Time as displayed by SP and fields that are boolen i.e. 0/1 or TRUE/FALSE.

I created a cusotm XSLT template to change the date from Sharepoint standard YYYY-MM-DDTHH:MM:SSZ into something more like September 28, 2011 3:00 PM.  Now this works on all of the sites we have in our collection (we have 4 sites in total) accept for one.  This one site whenever I add this to the display forms (or any custom XSLT for that matter) does all kinds of crazy strange stuff.  The biggest issue is that when you click on one of the list items it will load a completely different form than the items display form.  Sometimes it loads a New Form for a content type on a totally seperate list or maybe it will automatically load the Edit form instead of the display form.  The point is this is not what I want happening./

Does anyone have any idea what this issue is?  I just dont get how XSLT I put on a display form can affect the list view that strongly to cause it to load the incorrect form.  

Thanks!
0
Comment
Question by:Prolumina
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 9

Accepted Solution

by:
SharePointGirl earned 500 total points
ID: 36901694
I've found a similar problem with cross contamination on New Forms. Did you copy your site?

My advice would be to re-create the site from scratch. Still waiting on an answer from Microsoft.

Things Microsoft asked us to do.
Separate app pool.
Remove any .NET4 apps.
0
 

Author Comment

by:Prolumina
ID: 36906566
The site was not a copy but it seems to have spread to one other site.  

Did recreating the site from scracth fix it for you?
0
 
LVL 9

Expert Comment

by:SharePointGirl
ID: 36922535
Yes, unfortunately we had significant quantity of data (13 lists)in the site and we copied the data from backup.

We have had no further recurrance, but as we and Microsoft have no clue as to why it happened I can't promise it won't happen again.




0
 

Author Comment

by:Prolumina
ID: 36927833
One thing I have found is that I can partially recreate this error if I have any erros in my XSLT for the display form.  

I did what you suggested and recreated the site from scratch as I was copying everything over I made some changes to a display form on one of the lists.  I was not paying attention and left off a trailing ) in the formula: <xsl:value-of select="ddwrt:FormatDate(string(@EventDate),1033,3)"/>

When I opened the lsit up and clicked on an event I had created it opened a NewForm for that content type.  Thinking the problem was back I double checked SPD and noticed that the display page had an error.  Once I fixed the error it reverted back to the correct functionality.  

Not sure if it helps but it seems like the display forms are VERY fickle creatures.
0
 

Author Closing Comment

by:Prolumina
ID: 36927837
Thanks for the help.  See 2nd to last comment for my closing thoughts.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Open dialog with server side controls in it 3 46
Two decimal 5 25
Exchange - trouble forwarding mail to Distro Group 4 22
Boolean 13 16
This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question