59 comments

  1. Does it works with subsites ? It seems we get an error (no pb on the same site).

    Xavier

  2. Hi Xavier,

    Could you please post the error you get?

    Regards,

    Bart

    bartg

  3. The following comments were posting while we were upgrading:

    re: FlexListViewer for MOSS 2007 / WSS v3!

    Hi,

    I've installed the WebPart as you suggest but get following error:

    The "FlexListViewer" Web Part appears to be causing a problem. Could not load file or assembly 'Core, Version=1.5.0.0, Culture=neutral, PublicKeyToken=6d92553d25c5c17e' or one of its dependencies. Access is denied.

    Unfortunately, no records in logs about it. What can be the problem?

    Thanks.

    Muad

    8/31/2006 9:36 AM | Muad

    # re: FlexListViewer for MOSS 2007 / WSS v3!

    Hi Muad,

    You need to copy the core.dll to the app_bin directory of your wss instance as well.

    Regars,

    Bart

    8/31/2006 11:03 AM | bartg

    # re: FlexListViewer for MOSS 2007 / WSS v3!

    I did it. I also tried to copy both dlls to other instance's directories, to GAC, restared IIS … nothing helped.

    I use WSS 2007 beta 2.

    Muad

    8/31/2006 11:10 AM | Muad

    # re: FlexListViewer for MOSS 2007 / WSS v3!

    errr…

    Have you set trust="full" in the web.config?

    8/31/2006 12:04 PM | bartg

    # re: FlexListViewer for MOSS 2007 / WSS v3!

    I copied the SafeControl element from SafeControlsSection.txt file to the SafeControls section and made no other change to web.config. Where should I put this attribute?

    Muad

    8/31/2006 1:49 PM | Muad

    # re: FlexListViewer for MOSS 2007 / WSS v3!

    In the web.config file:

    Find the section <Trust level="WSS_Minimal" originUrl="" /> and change it to

    <Trust level="Full" originUrl="" />

    (Case sensitive)

    8/31/2006 2:17 PM | bartg

    # re: FlexListViewer for MOSS 2007 / WSS v3!

    Weird. I tried what you suggest and it didn't help, even restarted IIS to be sure. So I deleted the DLLs in the _app_bin folder, put them into GAC and suddenly it started to work. So I went the path back. First changed the trust back to WSS_Minimal – still worked. Then removed the DLLs from the GAC, put them to _app_bin folder again and the error was back. After I put the DLLs back to the GAC it started to work again.

    I am a bit confused why this didn't help the first time I tried to put the DLLs to the GAC (a few posts ago). Nonetheless for your and everybody's information – putting the DLLs to the GAC seems to cure the problem.

    Regards and thanks for help.

    Muad

    8/31/2006 2:57 PM | Muad

    # re: FlexListViewer for MOSS 2007 / WSS v3!

    Hi Muad,

    I can explain that 🙂

    Deploying the same assembly to the GAC _AND_ to the _app_bin directory will result in the dll being loaded from the directory. Apparently, in your case, the .NET workerprocess does not have the rights to load the assemblies from the _app_bin folder.

    I suspect it's a file-rights issue you encountered. You could try resetting these.

    Bart

    **notice**

    In about an hour, we'll be upgrading this blog on a database copy of last tuesday. I'll put these last comments in the new system myself afterwards.

    Comments from Portals & Integration blog:

    Sender: Muad

     

    =====================================

    re: FlexListViewer for MOSS 2007 / WSS v3!

    This is what I thought too, but on the second try (the test I made after the way back I wrote about), I also had the DLLs both in GAC and the _app_bin directory and it worked. The file permissions was also fine – I compared them with other DLLs in the _app_bin dir and they were the same (inherited from parent folder). The same goes for the owner.

    I don't like things being covered in a magical mystery when it comes to computers. Computers are deterministic devices and there is always a logical explanation to everything, but this time I'm just glad it works  🙂

    Muad

    Source: https://blogs.infosupport.com/porint/archive/2006/08/15/9865.aspx#10281

    bartg

  4. What was the solution to Xavier’s problem. I seem not to be able to read from sub-sites too.

    Jeff

  5. I have installed FlexilistViewer on WSS3 B2TR

    Some list seem to be displaying but when I try and display a calendar from the top level site I get the following error in the webpart:

    Error occurred: Unable to cast object of type ‘System.Boolean’ to type ‘System.String’.
    Details: System.InvalidCastException: Unable to cast object of type ‘System.Boolean’ to type ‘System.String’. at Core.SPListUtil.GetSPListItemValueParts(SPView view, ListViewField listViewField, SPField field, Int32 itemId, Object fieldValue) at Core.SPListUtil.GenerateListViewObjectModel(SPView view) at FlexListViewerMOSS.FlexListViewer.RenderContents(HtmlTextWriter output)
    at Core.SPListUtil.GetSPListItemValueParts(SPView view, ListViewField listViewField, SPField field, Int32 itemId, Object fieldValue) at Core.SPListUtil.GenerateListViewObjectModel(SPView view) at FlexListViewerMOSS.FlexListViewer.RenderContents(HtmlTextWriter output)

    Nic

    Nic

  6. Hi Nic,

    Are you targetting the webpart to a calendar view?

    bartg

  7. Thank, when I create a Calendar View and target the view that seems to fix the error – the problem I now get is that when returning the data and time of the meetings in the calendar only the date is displayed not the time of the meeting.

    Nic

  8. Nic,

    You should be able to fix this using your own XSLT stylesheet (assuming you are able to read the times from your list).

    bartg

  9. I have installed the webpart but i get this message when i try to use it:

    The “FlexListViewer” Web Part appears to be causing a problem. That assembly does not allow partially trusted callers.

    Web Parts Maintenance Page: If you have permission, you can use this page to temporarily close Web Parts or remove personal settings. For more information, contact your site administrator.
    Troubleshoot issues with Windows SharePoint Services.

    What could be the problem?

    //Amir

    Amir

  10. Hi Amir,

    Have you set the Trust level to Full?
    otherwise, could you try the solution package (also available at the download section), it contains a newer build of the webpart.

    Bart

    bartg

  11. Hi Bart!

    I have not donne that yet. I´ll try i tomorrow at work,

    If that does not work i´ll try the solutions pack.

    I´ll post if it solves my problems.

    Thank you for your quick answer!

    //Amir

    Amir

  12. It did the trick so now i´m up and running.

    I wonder if there i an easy way to edit the Add new link. I´ve got a javascript
    i wanna call onClick.

    //Amir

    Amir

  13. Hello,

    I am using the WSSv3 version of this web part successfully for most lists, but for Tasks, I get

    Error occurred: Object reference not set to an instance of an object.
    Details: System.NullReferenceException: Object reference not set to an instance of an object. at Core.SPListUtil.GetSPListItemValueParts(SPView view, ListViewField listViewField, SPField field, Int32 itemId, Object fieldValue) at Core.SPListUtil.GenerateListViewObjectModel(SPView view) at FlexListViewerMOSS.FlexListViewer.RenderContents(HtmlTextWriter output)
    at Core.SPListUtil.GetSPListItemValueParts(SPView view, ListViewField listViewField, SPField field, Int32 itemId, Object fieldValue) at Core.SPListUtil.GenerateListViewObjectModel(SPView view) at FlexListViewerMOSS.FlexListViewer.RenderContents(HtmlTextWriter output)

    Any thoughts?

    David

    David Tappan

  14. I’m trying to target a calendar list, but I get the error listed below. Someone else asked about this, but the perceived solution of creating a view didn’t work for me. (I created both a calendar view and a standard view, with no difference in the error.)

    Also, FYI, when displaying a contacts list, the address field shows the

    tag.

    Error occurred: Unable to cast object of type ‘System.Boolean’ to type ‘System.String’.
    Details: System.InvalidCastException: Unable to cast object of type ‘System.Boolean’ to type ‘System.String’. at Core.SPListUtil.GetSPListItemValueParts(SPView view, ListViewField listViewField, SPField field, Int32 itemId, Object fieldValue) at Core.SPListUtil.GenerateListViewObjectModel(SPView view) at FlexListViewerMOSS.FlexListViewer.RenderContents(HtmlTextWriter output)
    at Core.SPListUtil.GetSPListItemValueParts(SPView view, ListViewField listViewField, SPField field, Int32 itemId, Object fieldValue) at Core.SPListUtil.GenerateListViewObjectModel(SPView view) at FlexListViewerMOSS.FlexListViewer.RenderContents(HtmlTextWriter output)

    Gyan

  15. I tried to connect a 'Contact' webpart view, but this don't work.

    Is there an update or solution for?

    With a custom list, there's no problem…

    **email address removed by BartG **

    Leon

  16. Hi leon,

    We are currently collecting a list of problems / bugs / featurerequests for a future update. We’ll add yours to the list, we haven’t planned a releasedate though…

    Regards,
    Bart

    bartg

  17. As regards installing this webpart, I had no success via _app_bin or GAC. After GAC attempt was unsuccessful I put the dlls back in the _app_bin and added this safe control and all was well.

    However I now wonder whether the installed webpart is functioning properly.

    I have it pointing at a doc library. When I Add a New Item from FlexListViewer it appears in the doc library but not the Flex webpart. Is the webpart designed to dynamically update? I assumed it would, otherwise it is simple a static snapshot instead of a real time look. Also what is a proper use of Parameters?

    Thanks

    Stan

    Stan Lockhart

  18. Stan,

    Deploy the dll’s into the BIN folder, not the app_bin. You shouldn’t have to add a safecontrol entry for the core.dll since it doesn’t contain any webparts. You could also try the solution package, available on this blog. This package installs the flexlistviewer automatically.

    And it is a realtime view, not a static snapshot…maybe you are targetting a view which isn’t updated?

    bartg

  19. Hello Bart,

    When I set the List View Url, I get this error message:

    Error occurred: Object reference not set to an instance of an object.
    Details: System.NullReferenceException: Object reference not set to an instance of an object. at Core.SPListUtil.GenerateListViewObjectModel(SPView view) at FlexListViewerMOSS.FlexListViewer.RenderContents(HtmlTextWriter output)
    at Core.SPListUtil.GenerateListViewObjectModel(SPView view) at FlexListViewerMOSS.FlexListViewer.RenderContents(HtmlTextWriter output)

    Any ideas on how I could resolve this?

    Carlos

  20. Very nice part indeed!
    Is it possible to filter the incoming (meta)data without changing the view?

    Jaco

  21. Thanx Jaco.

    The only way to filter data, is to modify the xslt (or use a custom xslt, which is created by copying the original and make those modification). FlexListViewer does not support any other way of filtering, because one would normally simply create another view which has the filter applied and use that view instead of the original.

    Regards,
    Robert

    robertka

  22. This web part works great in MOSS 2007 but I have an issue when i add this web part for a doc library with sub folders from a different site – when i click on the sub folder I’m redirected to the site the doc library is orginally on – i need the sub folders to open within the web part. Is there a way to do this?

    Thanks
    Nicky

    Nicky

  23. Hi the web part is excellent!! One problem I am facing is I am unable to get the paging for the list being displayed, like it is only showing the first page of the list but not giving the option to navigate to the second page of the list, please help as what can be done?

    Thanks,

    Best Regards
    Aseem Saxena

    Aseem Saxena

  24. Nicky, the webpart is designed to work with regular lists, not document libraries. However, it works fine for some simple document libraries, but will very likely fail on more complex doclibs (subfolders, non-default root-folders, etc).

    Aseem, the webpart has never been tested with paging (I personally hate paging), so it’s very well possible that it doesn’t work. Aside from that, I think the webpart should be used to give a compact view on the list. To do some serious work with the list, one will probably want to navigate to the list itself, since it always provides much more functionality (create custom views, sorting, filtering, spreadsheet-view, etc). In such scenario, I would have the view display for example the 10 last modified items and set the Detail-link of the webpart to the URL of the actual list. This creates similar behaviour when a list itself is displayed on a site-page.

    robertka

  25. Thanks Robert for such a quick reply, one last question can you tell me where can I find the original xslt for flexilistview is it available to download? I wanted to enter some filters to display the items.

    Thanks!

    Best Regards
    Aseem Saxena

    Aseem

  26. Hi
    I have attempted to install the webpart by following the original instructions listed at the top of this page and also by using the solution package using the following command.

    stsadm -o addsolution -filename FlexListViewerMOSS.wsp
    “Operation Successful”

    Either way, the web part is not visible to select when adding webparts to the Webpart Gallery.
    Any suggestions?

    Andy

  27. Did you activate the feature?

    bartg

  28. Bart,
    Good webpart but not enough infor about it here.
    For example i want to customize the view using XSLT but haven’t got it to render well and its doesn;t work.Can you please send me a sample XSL to naijacoder@hotmail.com that can be used to customize an announcement List or something similar or just attach it to the Download so that people can get access to it.
    Thanka alot

    Patrick

  29. Patrick,

    You can download a sample blog xslt here: https://blogs.infosupport.com/porint/archive/2006/08/29/XSLT-sheet-to-display-blog-postings-with-the-Flexlistviewer.aspx

    You can use this one as a starting point for your own XSLT. If you are finished and want it spread over the community, send it to me and I’ll put it on the blog.

    Bart

    bartg

  30. Bart,
    Very good you repied and thanks for the snippet.I actually had to write one for myself.But i will also use the one you sent get the most out of the 2 and let you know.
    Great work Cart

    Patrick

  31. Where can I find the xslt file on my server to edit it to my liking?

    Dave

  32. Dave, check out my article about custom formatting: https://blogs.infosupport.com/porint/archive/2006/03/25/4752.aspx.
    I mention the location of the standard xslt in that article, as well as some tips on customizing the output of the webpart.

    robertka

  33. I have been trying to make my users get to the attachment directly using this webpart.How can i customize the xslt to provide a link to the attachment in my announcement list.
    Not when they click the title.But on the first view.
    I have managed to display the attachment image when there is an attachment but i want to append a link to it..
    Any ideas
    Thanks

    Patrick

  34. I’ve installed and activated the solution with gac. But when I go to add the web part I get this message:
    FlexListViewer: A Web Part or Web Form Control on this Page cannot be displayed or imported. The type is not registered as safe.

    Using WSS 3.
    Any help?

    Neal

  35. Neal,

    You either didn’t add the safecontrol section to the web.config or you made a typo in de assembly or namespace attributes. (they are case sensitive)

    You could also try the solution packages..they would add the right safecontrol sections for you.

    bartg

  36. As anybody use the webpart to display an announcement list.It doesn’t show the attachment image properly.Even if there isn’t a document attached it still shows and attachment image.So i decided to use an xslt to format it which works but i can’t get the xslt to show the correct title link.
    Please if you do have an xslt for an announcement list please send it : naijacoder@hotmail.com
    Thanks

    Patrick

  37. I’m trying to use your nice viewer, but in my view i have a Danish date format
    and your viewer views it in american, how can I thange that?

    Best regards

    Martin Sørensen

    Martin Sørensen (Denmark)

  38. The XML that is passed to the XSLT contains preformatted strings which are then rendered using ““, so the XSLT doesn’t do any formatting which means it should be somewhere in the .NET code.

    In the Core-library you can find this piece of code:
    DateTime dt;
    try
    {
    dt = DateTime.Parse((string)fieldValue,CultureInfo.CurrentUICulture);
    }
    catch (Exception)
    {
    dt = (DateTime)fieldValue;
    }
    retVal.Add(new ListViewRowValuePart(String.Format(“{0:d}”, dt)));

    It’s been a while since I wrote this code, so I have no idea why I would try to both parse and cast the fieldValue, but I do notice something that may be the cause of your problem: The datetime is parsed using the CurrentUICulture. However, in the end it is formatted as a string using the CurrentCulture, which may differ from the CurrentUICulture.

    When I created this code, I tested it on a standard installation of a Dutch WSS-site. In the Dutch language, dates are also formatted differently, however the code worked fine. So I have no idea why it doesn’t work for you, but you may try to explicitly specify both the UICulture and Culture in the web.config of the site, like this:

    (see: http://msdn2.microsoft.com/en-us/library/bz9tc508.aspx)

    You must ofcourse replace the values with the danish ones.

    robertka

  39. I am trying to implement the FlexListViewer webpart on a MOSS2007 portal which utilizes a number of site collections. It works fine if I reference a list which is in the same site collection. But if I try to reference a list in a different site collection, I receive an error: “Cannot access the view of the list. Are you authorized?”. I can navigate and view the list directly from the portal.

    It was my understanding that you could access a list from a differetn site collection as long as it is on the same SharePoint server. Any assistance would be appreciated.

    Angelo Miele

  40. Please disregard my last comment. I have verfied that I can access a list from a different site collection. The issue now seems to be related to the rights the user has to the list being referenced. If I have full control, the webpart works fine. If I have read-only, I get the error in the message above. I looked at the parameter settings and disabled the add-new functionality. Do you have any other ideas? Thanks!

    Angelo Miele

  41. Please disregard my last 2 comments. The error I am receiving (described in my first message above) is not related to an authorization issue. I have been able to use FlexListViewer sucessfully to reference document libraries and certain types of lists. It seems to fail when I try to use to access a custom list. Are there column data types which are not supported? Have there been any upgrade releases to the MOSS 2007 FlexListViewer after 1.0.0.0? THANKS!

    Angelo Miele

  42. Hi Angelo,

    No, there haven’t been updates since the release of the MOSS 2007 FlexListViewer. We did however released the source code at http://www.codeplex.com/isdemos.

    I suggest you download the code and investigate for yourself. If you create any bugfixes / usefull additions I urge you to send them to me. I’ll put them om the codeplex site for the other users as well.

    Good luck!

    Bart

    bartg

  43. I’m using the FlexListViewer webpart to show a Links list on my site. It works great other than when I add this webpart to my site it shows a top toolbar and extra fields that I don’t want to show. These fields are ‘Type’,’Edit’,”Notes’. Is there a way to hide these fields?

    Also, when I use it for an Announcements list it does not show part of the description like it does when I just use the normal webpart. Can I add this?

    Thanks, Stacie

    Stacie

  44. Can it be used in my regular asp.net page ?

    Alex

  45. Hi, i installed the flexlistviewer MOSS 2007 / WSS v3. I am using wss3.0. It works great for all sites, except one, and of course this site is the most important one. I checked all setting but doesnt seem that there is something different in this site than the rest. I get the message:Cannot access the view of the list. Are you authorized?

    Details: Non-existing list or view specified. Parameter name: List Url when i try to access any list from this site. Ah! within the site i can access them. could it be that the site is large?

    Katerina

  46. katerina,

    Are you sure you have used a hard url instead of a relative one?

    @Alex:
    Sure, if your asp.net page is running on a WSS 3.0 box it should be able to display data from a sharepoint list on your custom website.

    Bart

    bartg

  47. Yes i ‘ve used a hard URL. (With a relative URL it doesn’t work for any site i get the above error) As i said it is working for all of my sites, except for one which has a list with a substantial amount of data compared to the other ones.

    Katerina

  48. The amount of data shouldn’t be a problem.
    Is the URL already escaped ( eg: %20 instead of space-character)?

    robertka

  49. Hi Bart
    How can i put the dll’s in the gac?

    fre

  50. Yes it is escaped.

    katerina

  51. Hi Bart, this seems to be the Web Part I have been searching for, however I work in a bank where it takes the act of god to get web parts put on the live server. I have seen several notes about putting it into a test site with Front Page, but I am not that familiar on how to actually do that. Could you please let me know exactly how that is done, I am aware of how to import and export DWP files through Sharepoint, the problem I have is trying to get it on the page initially so I can export it as a dwp file. Any help would be appreciated. Thanks —

    April

  52. Hi,

    thanks for this webpart which is very useful for me.
    For the moment, I don’t manage to use the xslt option properly.
    I get my xslt from sharepoint designer, using a data view for a list or library. When I save it in a file and apply it, sometimes nothing appears, sometimes only headers but never datas. Do you have an idea what is my mistake?

    thanks a lot.

    Emmanuel

  53. Hi Emmanuel,

    The XSLT you generate using Sharepoint Designer is based on the way de list or library displays its data using XML. This is not the same structure as the flexlistviewer uses, therefore the XSLT doesn’t display any results.

    check this website http://www.w3schools.com to learn the details on XSLT.

    Good luck!

    Bart

    bartg

  54. @fre: use gacutil.exe or drag and drop them in the GAC (or use the solution package which does all this for you)

    @April:
    You cannot deploy the flexlistviewer using Frontpage.

    bartg

  55. Hi Bart, really great but fyi it doesn’t support empty date fields.

    Roger

  56. I got it to work with no problems, awesome job and Thank you.

    Here is what I want to do with it. I have several subsites for my clients. On these sites they can request material, post issues, post tasks, etc. I want to be able to go to my “office” site and see all of the issues in one web part. For example: Client A posts an issue, Client B posts an issue on thier site, and Client C posts one as well. How do I get the FlexWebPart to incorporate more than just one location to retrieve data? I am hoping it can go to all of them and append to the “Main” one on my “Office” site.

    Kevin Thomas

  57. Hi Kevin.

    FlexListViewer cannot aggregate lists. On MOSS/WSS 3.0 this is standard functionality.
    On SPS 2003/WSS 2.0 you’re left in the dark. However, you could create a page in your Office-site which hosts FlexListViewer webparts for each of the client sites. That way you have a single page which lists all issues of all subsites, just not in a single list. Not an ideal situation, but better than having to visit all subsites every time you need an overview of all issues.
    By the way: you can download the sourcecode of the webpart, so you could add aggration-support yourself! 🙂

    robertka

  58. Thank you. I will see what I can do. I just need to learn how to program, lol.

    Kevin Thomas

  59. Hi, I have been using the great FlexListViewer for awhile now and i have come across a problem when trying to view a list. I am using MOSS2007.
    Cannot access the view of the list. Are you authorized?
    Details: Non-existing list or view specified. Parameter name: List Url

    This list is not very different to all of the other lists that i have viewed across my sites with FlexListViewer. I have full permissions for all of the lists/sites and they are all located on the same SharePoint server. I am always supllying the full URL.

    The list that is returning this error for me is quite large and also has some workflows attached to it which send data to charts (my opinion was that the workflows are causing the problem).

    If the workflows are not causing the problem i am baffled as this is the only difference between this list and the other 10-15 lists i am using the FlexListViewer for!

    Any suggestions would be great! 🙂

    Johnny S

Comments are closed.