I'm using a script-based solution to add a Comment Box to dispform.aspx in a MOSS document library. The comments live
in a separate list and I have a requirement to show the Name metadata from the document library in every item in the comments list. The only metadata passed from the library to the comments list is the URL of dispform.aspx, e.g. http://sitename/library/dispform.aspx?ID=1.
Columns in the CommentBox list include basically Title (where the URL for the dispform.aspx page holding the comment is stored) and a text column.
If I could parse the ID value out of the URL string and write it to the list item in the CommentBox list (e.g. in an extra column called ParentID) then I'd have enough to use in a workflow so that I could fetch the Name metadata from the
doc library. I've seen some script examples for extracting a value from a query string but I'm not enough of a developer to work out how to write those values to the CommentBox list. I'm also not sure where to place the script... the CommentBox script that
SPServices to the rescue?