Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

A Button Within A List Item Column That Opens View To Another List Associated With Item

$
0
0

First, I can work with markup and JavaScript with REST requests to achieve a solution for what I am asking for

What I am not sure of is how I should be designing this

In the main list, which is of monthly invoices of various invoice types, each item in the list will have one or more individuals who will either approve or disapprove the invoice. Additionally each of these persons may want to write a short comment with their decision.

My thoughts on the design are to have a (form) button (or other clickable) control in the list column for each item. This then opens a view to the SECOND list which keeps track of the persons, their decision, and their comment. I think this is a one-to-many relationship. The view will also allow them to "New Item" to the 2nd list in case these persons have not yet made a decision/comment to the main list item. The relationship would be established in the 2nd list by creating a column "Invoice Item Id" and putting the 1st list item ID into that column. The view would be set programmatically by clicking that button control in the parent list, and running script to form the REST query to filter all 2nd list items on the parent list item ID. Another control on the page with the 2nd list view would take the user back to the parent list.

  1. Have I made this overly complicated? Is there another/better/less complicated way?
  2. If not, how do I get a button control to be rendered in the list column? (I suppose I can figure out how to form the function call in the event handler script.
  3. If there is any other useful advice on tackling this, that would be welcome


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>