RE: Filter certain fields from available field types
Can you not use groups to group the ones that are ok to change and ones that aren't? I am afraid there aren't many pointers in an SPField to tell you if you should edit its properties or not. [Description: Description: C:\Users\Brian\Pictures\EXD Logos\Extelligent logo no text.jpg]Ishai Sagi | Solutions Architect 0488 789 786 | is...@exd.com.aumailto:is...@exd.com.au | www.sharepoint-tips.comhttp://www.sharepoint-tips.com/ | @ishaisagihttp://twitter.com/ishaisagi | MVP Profilehttps://mvp.support.microsoft.com/profile/Ishai From: ozmoss-boun...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] On Behalf Of Web Admin Sent: Thursday, 22 November 2012 10:46 AM To: ozMOSS Subject: Filter certain fields from available field types Hi all, I'm developing a list field manager which allows List Managers to apply certain properties not available through the UI. For obvious reasons, I would like to restrict the fields returned in my collection to those which aren't highly volatile. :) Unfortunately I can't find a common SPFieldType or property to cover all cases. I'm currently removing Sealed and Computed only. Does anyone have any suggestions that won't require dozens of explicit exceptions? I'm toying with the idea of creating a list view and only returning those fields. Regards, Paul Noone inline: image001.jpginline: image002.jpg___ ozmoss mailing list ozmoss@ozmoss.com http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss
Re: Filter certain fields from available field types
Hi James, The problem is that I was going to allow Hidden as an option. If I filter on this then there's no way to unhide fields. :) I've removed the Hidden and Sealed options for safety but my IF statement is rather unwieldy and still returns a lot of volatile fields. I was hoping there might be a common property for the fields which, if modified, could trash the list or site. :\ Regards, Paul On 22 November 2012 14:09, James Boman james.bo...@ipmo.com.au wrote: Paul, Perhaps you could just display fields where Hidden = False? That narrows the number of fields down considerably. J. ** ** -- James Boman ■ Telephone: +61 (08) 7200 1100 ■ Mobile: +61 (0) 417 857 298 ■ Web: http://www.ipmo.com.au || http://www.projectserver.com.au ** ** *From:* ozmoss-boun...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] *On Behalf Of *Web Admin *Sent:* Thursday, 22 November 2012 10:16 AM *To:* ozMOSS *Subject:* Filter certain fields from available field types ** ** Hi all, ** ** I'm developing a list field manager which allows List Managers to apply certain properties not available through the UI. ** ** For obvious reasons, I would like to restrict the fields returned in my collection to those which aren't highly volatile. :) ** ** Unfortunately I can't find a common SPFieldType or property to cover all cases. I'm currently removing Sealed and Computed only. ** ** Does anyone have any suggestions that won't require dozens of explicit exceptions? I'm toying with the idea of creating a list view and only returning those fields. ** ** Regards, ** ** Paul Noone ___ ozmoss mailing list ozmoss@ozmoss.com http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss -- Regards, Paul Noone SharePoint Farm Admin/Developer Infrastructure Team CEO Sydney p: (02) 9568 8461 f: (02) 9568 8483 e: paul.no...@syd.catholic.edu.au w: http://www.ceosyd.catholic.edu.au/ ___ ozmoss mailing list ozmoss@ozmoss.com http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss
Re: Filter certain fields from available field types
Hi Ishai, Yes that was my next step. Create a content type and only return those fields. Regards, Paul On 23 November 2012 09:10, Ishai Sagi is...@exd.com.au wrote: Can you not use groups to group the ones that are ok to change and ones that aren’t? I am afraid there aren’t many pointers in an SPField to tell you if you should edit its properties or not. ** ** ** ** **[image: Description: Description: C:\Users\Brian\Pictures\EXD Logos\Extelligent logo no text.jpg]***Ishai Sagi* | Solutions Architect 0488 789 786 | is...@exd.com.au | www.sharepoint-tips.com | @ishaisagihttp://twitter.com/ishaisagi | MVP Profile https://mvp.support.microsoft.com/profile/Ishai ** ** *From:* ozmoss-boun...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] *On Behalf Of *Web Admin *Sent:* Thursday, 22 November 2012 10:46 AM *To:* ozMOSS *Subject:* Filter certain fields from available field types ** ** Hi all, ** ** I'm developing a list field manager which allows List Managers to apply certain properties not available through the UI. ** ** For obvious reasons, I would like to restrict the fields returned in my collection to those which aren't highly volatile. :) ** ** Unfortunately I can't find a common SPFieldType or property to cover all cases. I'm currently removing Sealed and Computed only. ** ** Does anyone have any suggestions that won't require dozens of explicit exceptions? I'm toying with the idea of creating a list view and only returning those fields. ** ** Regards, ** ** Paul Noone ___ ozmoss mailing list ozmoss@ozmoss.com http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss -- Regards, Paul Noone SharePoint Farm Admin/Developer Infrastructure Team CEO Sydney p: (02) 9568 8461 f: (02) 9568 8483 e: paul.no...@syd.catholic.edu.au w: http://www.ceosyd.catholic.edu.au/ image002.jpg___ ozmoss mailing list ozmoss@ozmoss.com http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss
RE: Filter certain fields from available field types
Paul, Perhaps you could just display fields where Hidden = False? That narrows the number of fields down considerably. J. James Boman ■ Telephone: +61 (08) 7200 1100 ■ Mobile: +61 (0) 417 857 298 ■ Web: http://www.ipmo.com.au || http://www.projectserver.com.au From: ozmoss-boun...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] On Behalf Of Web Admin Sent: Thursday, 22 November 2012 10:16 AM To: ozMOSS Subject: Filter certain fields from available field types Hi all, I'm developing a list field manager which allows List Managers to apply certain properties not available through the UI. For obvious reasons, I would like to restrict the fields returned in my collection to those which aren't highly volatile. :) Unfortunately I can't find a common SPFieldType or property to cover all cases. I'm currently removing Sealed and Computed only. Does anyone have any suggestions that won't require dozens of explicit exceptions? I'm toying with the idea of creating a list view and only returning those fields. Regards, Paul Noone ___ ozmoss mailing list ozmoss@ozmoss.com http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss