Skip to main content
6 events
when toggle format what by license comment
Oct 26, 2017 at 13:19 comment added CigarDoug That's the part I am missing, getting the properties of the PARENT web part.
Oct 26, 2017 at 13:09 comment added Amal Hashim The code I gave you will get all webparts in the page you have configured. You might need to use another property to figure out the parent webpart and then read the title of that webpart.
Oct 26, 2017 at 12:56 comment added CigarDoug I don't think I am getting across what I want. On the fly, within the script, I want the script to determine the parent Web Part it is in, and read the properties of THAT Web Part. So I can drop the same script in ten different web parts, set the property in each, and be done.
Oct 26, 2017 at 12:38 comment added Amal Hashim Find the webpart id using browser developer tool? Then you can query for only that webpart using var webpart = wm.get_webParts().getById('f0cd71f8-6fac-4a9c-ad45-4b239563631c');
Oct 26, 2017 at 12:36 comment added CigarDoug OK, but which one is my parent Web Part? I can walk my way up through the parent of each element to get to the Web Part, but I can't figure out how to get any of it's Properties.
Oct 26, 2017 at 12:31 history answered Amal Hashim CC BY-SA 3.0