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

How to get the List web part in my page?

$
0
0

Hi,

I created a page, in this page, I placed a button and a list web part. What I want to do is when I click button, I can get the information about the list web part, i.e. the Id or the name of the list. How can I do this?

I'm asking this because there are many such pages, each page has a different list and a button. The button should do similar things just to different lists. So I don't want to hard code the lists in the button's onclick function, so wondering if there's a way to dynamically get the list information in JavaScript.

Thanks,

Michael


Viewing all articles
Browse latest Browse all 7589

Trending Articles



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