Link to home
Start Free TrialLog in
Avatar of JHMH IT Staff
JHMH IT StaffFlag for United States of America

asked on

Sharepoint Random List Item Not Working

I am still on SharePoint 2.0 for the time being, and trying to generate a "tip of the day" section. I have a Data View Web Part, and have searched over and over for using the "ddwrt:Random" function. In my case I get the "XSLT transform failed: 0x80004005" error related to the "Random" method. Is there a way to fix this, or an alternate method to accomplish what I need until we're able to upgrade SharePoint?
Avatar of Jamie McAllister
Jamie McAllister
Flag of Switzerland image

ddwrt namespace is a 'bonus' library you can reference for extra functionality in your xslt transforms etc. It's not included with SharePoint per se, but easily referenced as below;

http://msdn.microsoft.com/en-us/library/dd583143(v=office.11).aspx

http://www.glynblogs.com/2011/11/displaying-a-random-list-item-with-xsl.html
Avatar of JHMH IT Staff

ASKER

So far, no luck. I'm still getting the error, and I'm getting confused. When I'm in SharePoint Designer it shows the codesense for the Random function, but it fails with the error even in preview mode.
ASKER CERTIFIED SOLUTION
Avatar of JHMH IT Staff
JHMH IT Staff
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This function was simply not possible on previous versions of SharePoint