Community
Vault Forum
Welcome to Autodesk’s Vault Forums. Share your knowledge, ask questions, and explore popular Vault topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

search reports only dwg file extentions

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
Anonymous
1315 Views, 2 Replies

search reports only dwg file extentions

Hi all you experts 🙂

 

does anybody know how to define the search Conditions in the vault reports.

 

I use the System File Properties Table Report as test, and only wan't to search for files with the extention dwg?

 

how do i do this. no matter what i try it to type into the search template it does not work.

 

please help.

 

Regards Kent boettger

2 REPLIES 2
Message 2 of 3
wayne.brill
in reply to: Anonymous

Hi Kent,

 

I am not an expert on RDLC and Vault reports but I did find a way to make the Hidden Visibility expression on the  on TableRow True or False depending on the extension. The "File Table.rdlc file has this function. (I opened it in Notepad)

 

 <Code>Function GetExtension(st1 As String)     If st1.Contains(".") Then             Return (UCase(Right(st1, Len(st1) - InStrRev(st1, "."))))     End If

    Return "" End Function</Code>

 

I used this function in the expression for the Table Row:

=IIf(Code.GetExtension(Fields!ClientFileName.Value) <>

"DWG", True, False)

 

 

In my tests only the dwg files are listed when I run the report. I attached a screenshot to help explain.

 

This page has a description of using an expression to hide a row:

http://msdn.microsoft.com/en-us/library/dd354976.aspx

 

 

Thanks,

Wayne

 

 

 

 

 



Wayne Brill
Developer Technical Services
Autodesk Developer Network

Message 3 of 3
Anonymous
in reply to: wayne.brill

Thanks looks like this is just what i needed Smiley Happy

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report