This project is read-only.

Frome-To Ranges

May 12, 2009 at 2:38 AM

Hi, does anyone know how to add the From-To Ranges for DateTime and Integer for version 3.0?

Thanks so much


May 12, 2009 at 4:05 AM

Add DataType attribute to the <Column /> element with value DateTime or Int

May 12, 2009 at 4:09 AM
Edited May 12, 2009 at 5:45 AM

Thanks for your reply.

I tried adding these to the Columns but it doesn't work. Can you please provide details on the syntax that we should use in the mapping? Thanks so much.

<Column Name="LastModifiedTime" OrderBy="Hits" TotalResults="5" DisplayName="Modified" *Type="Date"* >
<Mapping *OffsetFrom="24" Type="Hours"* DisplayName="Today" />
<Mapping *OffsetFrom="48" Type="Hours"* DisplayName="Yesterday" />
<Mapping *OffsetFrom="7" Type="Days"* DisplayName="This week" />
<Mapping *OffsetFrom="30" Type="Days"* DisplayName="This month" />

<Column Name="Size" OrderBy="None" TotalResults="5" DisplayName="Size" *Type="Number"*>
<Mapping *To="100000"* DisplayName="Small" />
<Mapping *From="100000" To="1000000"* DisplayName="Medium" />
<Mapping *From="1000000"* DisplayName="Large" />

May 12, 2009 at 1:49 PM

<Mapping /> won't work with any data type but string. Dates and integers have butiltin logic for navigation.

May 12, 2009 at 11:12 PM
Edited May 13, 2009 at 12:38 AM

Does that mean we will not be able to make any changes to the columns which have date and int data types? Currently, the Size column shows like this: 1,000,000 << 2,000,000 (31), I just wonder if there is a way to display it like 1MB << 2MB.

Also can we remove the Language facet?

I couldn't find the source code for version 3.0. Is it available somewhere?

Many thanks.

May 13, 2009 at 2:38 PM

Currently not. I will be gathering suggestions for future builds though. Please post as such if you have any.

May 13, 2009 at 11:04 PM

I see. Thanks a lot for your help. It is a great product, thanks for all your hard work.