Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Custom views

13 views
Skip to first unread message

Shane Jenks, EDS PLM

unread,
Apr 22, 2004, 8:56:42 AM4/22/04
to
I'd like to setup a custom view that filters out certain file types. I
see we can pick file type in the Sort By section (type icon linked to
document) for setting up a view but its not available in the Filter
section. Anyone know how to add type to the filter list or implement
this functionality?

Thanks,

--
Shane Jenks
UGSPLM


Gregg Smith

unread,
Apr 22, 2004, 10:10:17 AM4/22/04
to
I posted an answer to just this yesterday. Here is that post.......
=============
That is going to take some doing. Type, as it is in the document library
specification is a "calculated" or a "compound" column SharePoint uses for
all kinds of neat things. One of the bits on information in this compound
column is its file type. You can't get at this column by default to filter
or group on it. If you need to do this you will have to open the ONet file
(ALL development precautions must be followed here) and find the BaseType
definition for Document Libraries. Look for this:
<Field Type="Computed" ReadOnly="TRUE" Name="DocIcon" DisplayName="Type"
TextOnly="TRUE" ClassInfo="Icon" AuthoringInfo="(icon linked to document)" >
<FieldRefs>
<FieldRef Name="File_x0020_Type"/>
<FieldRef Name="FSObjType"/>
<FieldRef Name="FileRef"/>
<FieldRef Name="HTML_x0020_File_x0020_Type"/>
......
well it keeps going for a bit with the patterns but you can see how it gets
those values in there. Lets make that a column you can work with.

Open up the Schema for the Document library list definition you want to use.
in the Fields elements add in something like:
<Field Type="Text" Name="File_x0020_Type" ShowInNewForm="FALSE"
ShowInFileDlg="FALSE" DisplayName="FileExt" Sealed="TRUE"></Field>

Save and IISRESET. If you edit a view you should now have a column called
FileExt that you can filter on.


"Shane Jenks, EDS PLM" <shane...@ugs.com> wrote in message
news:4087C10A...@ugs.com...

Shane Jenks, EDS PLM

unread,
Apr 22, 2004, 1:46:02 PM4/22/04
to
Ooops, sorry about that Greg. Thanks for re-posting the answer.

Gregg Smith wrote:

--
Shane Jenks
EDS PLM
Solid Edge Product Planning


0 new messages