Arrange by Date - Show in Groups

Posted by rbf on 22-Aug-2008 06:18

How can I simulate an 'Arrange by Date - Show in Groups' view?

All Replies

Posted by Admin on 22-Aug-2008 06:38

Are you talking about the UltraGrid? Nothing easier than that:

Just set the GroupByMode property of the column properties. Works with DATE fields as well!

Posted by rbf on 22-Aug-2008 07:03

Well I though of that but I was looking for some sort of calendar control mode that can do this automatically like in Outlook, so translation etc. are supported.

Posted by Admin on 22-Aug-2008 07:06

Not sure what you mean. When using "OutlookDate" the grid groups

- this week

- last week

- last month

- ...

Isn't that like in Outlook?

Posted by rbf on 22-Aug-2008 07:18

Are you talking about UltraGrid? Does it have special functionality for this? Do you have a link to documenation? Screen print?

Posted by Admin on 22-Aug-2008 07:22

Jepp. UltraGrid.

Just set the GroupByMode property of the column properties. Works with DATE fields as well!

As described in my first post. Go into the grid designer to the properties of a column and set the GroupByMode property to something else then default.

Posted by Admin on 22-Aug-2008 07:33

Or in code: ultraGridColumn24:GroupByMode = Infragistics.Win.UltraWinGrid.GroupByMode:OutlookDate.

Posted by Simon de Kraa on 22-Aug-2008 07:41

...and the visual impression...

I think will become more a matter of learning all the features of the .NET controls than leaning the 10.2A ABL...

Posted by Admin on 22-Aug-2008 07:47

That's a matter of fact

I believe, OE developers need to get used to Infragistics documentation, forum and googleing for samples.

Posted by rbf on 22-Aug-2008 08:11

...and the visual impression...

Well not exactly what I meant but I will start playing with this. It looks like it generates stuff like 'today', 'last week' etc.

I think will become more a matter of learning all the

features of the .NET controls than leaning the 10.2A

ABL...

Well I think it is a matter of both!

Posted by rbf on 22-Aug-2008 08:16

That's a matter of fact

I believe, OE developers need to get used to

Infragistics documentation, forum and googleing for

samples.

It seems to me that the Infragistics documentation has extremely few visuals. Or am I missing something (BTW I am a little bit disabled at this customer site as the only internet connection if through Citrix with an old browser. For example I cannot view the Infragistics videos).

Posted by Simon de Kraa on 22-Aug-2008 10:21

Well not exactly what I meant but I will start

playing with this. It looks like it generates stuff

like 'today', 'last week' etc.

And what about multilingual support... (today/heute/vandaag)

Posted by Admin on 25-Aug-2008 01:44

Most of their visible strings can be localized using their Resource manager class:

Infragistics.Win.UltraWinGrid.Resources

Then use the SetCustomizedString (pcKey, pcTranslatedText ) method.

It's just a matter of finding all valid and required key values in the documentation. Haven't found the ones you were asking for so far. Somebody interested in that should post the to the Infragistics forum and get back with a result here

Posted by rbf on 28-Aug-2008 06:34

Well thanks Simon and Mike, I finally got this working. At first I did not realize the details of GroupByMode:OutlookDate.

Attached is a sample of how this looks on my Dutch system. Note that the word 'Monday' is properly translated to Dutch ('maandag') but the other terms are not.

How do I fix that?

Posted by Simon de Kraa on 28-Aug-2008 07:02

Are you saying that SetCustomizedString works for "Monday" but not for the other strings?

Posted by rbf on 28-Aug-2008 07:03

Are you saying that SetCustomizedString works for

"Monday" but not for the other strings?

No I am saying this is what happens if I do nothing.

Posted by Admin on 28-Aug-2008 07:05

My guess is that the weekdays come from the Windows Locale.

The complete list of resource strings can be found here:

http://help.infragistics.com/Help/NetAdvantage/NET/2008.2/CLR2.0/html/WinGrid_Resource_Strings.html

Posted by Simon de Kraa on 28-Aug-2008 07:18

And how are you going to use the xlated strings from Outlook...? (if installed)

I guess Peter will go for the "hardcoded" setcustomizedstring("Older", "Ouder") etc.

Posted by rbf on 28-Aug-2008 07:19

So you are saying I have to translate the Outlook_GroupByMode_Description_ strings in my application but not the weekdays?

Posted by Admin on 28-Aug-2008 07:22

That's my guess.

I haven't tried the GroupByMode description strings yet. But for all other stirngs this works really nice. The hardest part is actually to find a well sounding German translation - but Outlook is a good template for that.

Posted by rbf on 28-Aug-2008 07:55

The hardest part is actually to find a well sounding German translation

We have not had that problem here since 1945

Sorry could not resist

Posted by Admin on 28-Aug-2008 08:02

Hey - Hey. Is that for helping you with Dutch translations?

Dutch people are the most frequent tourists in Germany (by the total number of nights stayed here). More than US citizen, Japanise and English guys. So you folks must know how nice the country and the people are here Well, we have improved over the last 60 years.

Posted by jmls on 28-Aug-2008 08:03

"Don't mention the war!"

http://en.wikipedia.org/wiki/The_Germans

Posted by Simon de Kraa on 28-Aug-2008 08:06

Dutch people are the most frequent tourists in

Germany (by the total number of nights stayed here).

More than US citizen, Japanise and English guys. So

you folks must know how nice the country and the

people are here Well, we have improved over the

last 60 years.

I like your beer...

Posted by rbf on 28-Aug-2008 08:55

Just kidding Mike - I count you among my German friends.

-peter

Posted by Admin on 28-Aug-2008 09:05

I know, Peter!

That's why I did resist and did inot reply with a caravan joke ...

Talk soon!

Mike

Posted by Admin on 28-Aug-2008 09:09

You can have as much beer as you want during our next PUG meeting on November 5th. Interested in presenting? Maybe your development progress with 10.2A?

(If released from NDA for this purpose by Progress)

Posted by rbf on 29-Aug-2008 03:51

Most of their visible strings can be localized using

their Resource manager class:

Infragistics.Win.UltraWinGrid.Resources

Then use the SetCustomizedString (pcKey,

pcTranslatedText ) method.

It's just a matter of finding all valid and required

key values in the documentation. Haven't found the

ones you were asking for so far. Somebody interested

in that should post the to the Infragistics forum and

get back with a result here

OK here goes:

define variable rc as Infragistics.Shared.ResourceCustomizer.

/* Get the reference */

rc = Infragistics.Win.UltraWinGrid.Resources:Customizer.

/* Define the translations */

rc:SetCustomizedString"Outlook_GroupByMode_Description_Today","Vandaag").

etc.

The code has to be run before intializing the components, which makes sense, normally in some startup procedure I assume. It appears to be a static class, but how can you tell from the Class Browser?

Posted by Admin on 29-Aug-2008 04:01

class, but how can you tell from the Class Browser?

I guess you can't. I haven't checked that in Visual Studio yet. But there might remain areas where a written documentation is superior to the class browser anyhow. I don't neccessary see that as a critical limitation in the OpenEdge Architect.

Would you have guessed that the Resources class if for localization - even it would have been indicated as static? Well you probably could. But then the class browser can't show you the resource strings (because of the design Infragistics has chosen here).

The Infragistics Forum is full of posts in that direction. So obviously the Visual Studio leaves you alone with this as well...

This thread is closed