API
Version 7.x > API > Filter on Document Type w/o Properties View modes: 
User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 5/6/2013 4:10:06 PM
   
Filter on Document Type w/o Properties
I've created a document type that is a placeholder with no properties (essentially for transformations only). Can I take advantage of the built-in "filter" alternative form anyway without having to create a document type with properties or will I have to code my own filter?

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 5/16/2013 4:12:18 AM
   
RE:Filter on Document Type w/o Properties
Hi FroggEye,

You can create a Folder document type which has no properties. But I don't what is the purpose of that filter, what do you want to achieve?

Best regards,
Martin Danko

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 5/16/2013 7:17:04 AM
   
RE:Filter on Document Type w/o Properties
Thanks Martin.

I was looking to be able to use the built-in filtering without having to create my own custom filter control but its evident to me now that there need to be properties defined in order for the filter to work. I simply have a web service that returns a dataset with 1 table and 10 columns. For this data, it doesn't make sense to store it in a doc type or a custom table (sensitive customer account info). So I thought I might be able to use the built-in filters but I don't see a way to make it work without making my own.

Brenden

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 5/23/2013 4:59:39 AM
   
RE:Filter on Document Type w/o Properties
Hi Brenden,

So in general, as I understand your requirements, you have 2 options:

1. You can work with the data in the abstract way... to handle data just via the code, creating some "virtual table" in the code where the data will be stored temporary just for the time you will need them (another possible option is to store them into the Sesssion) and after the processing you will clear the table

2. Using just the filter is also the option, but you will need to send the request to service everytime after the filter will change, so this could cause some performange degradation

Best regards,
Martin Danko