RTTSoftware Support Forum

PDF-ShellTools => Ideas/Suggestions => Topic started by: Antoine on July 31, 2011, 05:05:12 PM

Title: Filter range for Numeric Custom Field / Property Handler
Post by: Antoine on July 31, 2011, 05:05:12 PM
First, I'd like to say PDF-ShellTools is very useful and time saver !
To make it perfect to me, I have several suggestions to make.
Here is the third (and most complex) one :
- Could a Double type Custom Field be filtered in Detail view by (automatic) range ?
I have a custom fields 'Amount'. It would be perfect to be able to filter file by ranges (like : 0-100 ; 100-200 ; 200-500 ; Up 500).
The range could be computed automatically or (at least) be configured in settings.
Title: Re: Filter range for Numeric Custom Field / Property Handler
Post by: RTT on August 01, 2011, 05:26:52 PM
I suppose it would be something as used for the system.size (http://msdn.microsoft.com/en-us/library/bb787566(v=VS.85).aspx), but until now, and playing with the typeInfo groupingRange attribute (http://msdn.microsoft.com/en-us/library/bb773889(v=VS.85).aspx) and displayInfo.enumeratedList.enumRange (http://msdn.microsoft.com/en-us/library/bb773873(v=VS.85).aspx), I found only a way to crash the Shell!!
Let me know if you have more success.
Title: Re: Filter range for Numeric Custom Field / Property Handler
Post by: Antoine on August 01, 2011, 06:10:47 PM
Same for me here ! Impossible to make groupingRange, enum and enumRange working properly...
Title: Re: Filter range for Numeric Custom Field / Property Handler
Post by: Antoine on August 01, 2011, 06:12:44 PM
Seems typeInfo type = UInt64 only, no ?
Title: Re: Filter range for Numeric Custom Field / Property Handler
Post by: Antoine on August 01, 2011, 10:56:22 PM
I am now able to make enum & enumRange work.
However, when I set typeInfo groupingRange from "Discrete" to "Enumerated" and try to filter, Explorer still crashes.
Title: Re: Filter range for Numeric Custom Field / Property Handler
Post by: RTT on August 01, 2011, 11:09:05 PM
Quote
Seems typeInfo type = UInt64 only, no ?
You can set the typeInfo type to UInt64. The system will convert without problem.
Quote
I am now able to make enum & enumRange work.
Work in the filter and group functionalities?!
Please share your PDFShellTools.propdesc file.
Quote
However, when I set typeInfo groupingRange from "Discrete" to "Enumerated" and try to filter, Explorer still crashes.
Enumerated?! I don't see that value as possible for this attribute. Only Discrete, Alphanumeric, Size, Date, TimeRelative, Dynamic, and Percent.
In my case only crash if set to Size, the one I think would work.