Ah, of course. :)
Thanks!
From: ozmoss-boun...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] On Behalf Of 
Brian Farnhill
Sent: Monday, 6 February 2012 12:02 PM
To: 'ozMOSS'
Subject: RE: Auto-update webpart property when object renamed

The best way to go about this is to store the list ID for the list you need to 
access. Have the setter property for ListName store the GUID into a hidden 
property (still a public property, but without the web editable attribute) so 
that the user still just chooses a list name, and then change the getter for 
the property to look up the list name and return the string. Then you can 
rename the lists in the UI as much as you like, but because you are only ever 
working with the ID for it internally things shouldn't break
Brian Farnhill
Solutions Architect, Extelligent Design | SharePoint Server MVP
phone: 0408 289 303 | twitter: @BrianFarnhill<http://twitter.com/BrianFarnhill> 
| blog: blog.brianfarnhill.com<http://blog.brianfarnhill.com/> | xbox: Modern 
Bogan<http://live.xbox.com/en-AU/MyXbox/Profile?Gamertag=Modern%20Bogan>

From: ozmoss-boun...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] On Behalf Of 
Paul Noone
Sent: Monday, 6 February 2012 11:58 AM
To: ozMOSS (ozmoss@ozmoss.com)
Subject: Auto-update webpart property when object renamed

Hi all,
Is there a way to auto-update wp properties (such as list name) when the object 
is renamed? I know SharePoint manages to do this with Summary Links wp and the 
PageContent placeholder.
Kind regards,

Paul

_______________________________________________
ozmoss mailing list
ozmoss@ozmoss.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss

Reply via email to