I have an item list called "MyPeople". I have a document list called "MyDocs". I associated documents in "MyDocs" to list items in "MyPeople" via Lookup field. On my Site page, I have a LVWP for "MyPeople". The only column in "MyPeople" is a calculated column with a hyperlink. When pressed, I'd like to invoke a pop-up showing a list view of the "MyDocs" document library filtered by the list item. I want this to work for each individual list item. How can I do this? I only need help getting this form/query/filter to exist. I know how to make the calculated column invoking a pop-up box. Thank you!
This has been solved. Working script is below. Thanks again to Venkat Konjeti
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.min.js">
</script>
<script type="text/javascript">
function openPopup(filterValue) {
alert(filterValue)
var pageUrl = "https://MY-REAL-URL.sharepoint.com/MyDocs/Forms/AllItems.aspx?FilterField1=RelatedPeople&FilterValue1=" + filterValue;
var options = { url: pageUrl, width: 700, height: 600, title: "My Docs" };
SP.SOD.execute('sp.ui.dialog.js', 'SP.UI.ModalDialog.showModalDialog',
options);
}
</script>