First of all, my question. How do I make a working modal dialog popup for a document library, that shows details about that document upon clicking the document name in the library list?
Please note that I have a working script for an announcements list, when I click an item in the list it shows me details about that item in the modal dialog popup.
I want to achieve the same action, but with a document library. So far the popup works but instead of showing me details about the document I clicked on, it shows me the complete document library again.
My problem is somewhat urgent as I desire to give a demo of my site by next week Tuesday.
This is the script for the modal dialog for an announcements list, and this works:
I replaced some names in the script above (removed my site info) but it's a working script. The one I try to use for the document library is very similar, the only changes I made are in the first function (see comment in code) and in the function ItemOverrideFun(ctx) part. Instead of calling the items of an announcements list I now try to call those of a document library, no success so far.
Can anyone tell me what I might be doing wrong? Help with the code is greatly appreciated, as I want to finish this as soon as I can.
(Additional info: Reason I need a modal dialog popup for the items in a document library is because there are too many columns and it makes the page too wide. I can't limit the amount of columns. I want to show only 3 columns in the view on the page (type of document, name of document, date created) and all the other columns shown in the dialog.)