Simplicty and flexibility!


How do you do GROUPS in ExecDQL body?


Started by charmaine smit
Search
You will need to Sign In to be able to add or comment on the forum!

How do you do GROUPS in ExecDQL body?

Long time no speak !!! How are you

We are doing well , looking for to the Christmas Holidays

I have and ExecDQl Query again .........

We have procedures with Group Headers and Group trailers ....... How do we do this in the Body , I have now tried everything I can think of ...

I did .group trailer and .trailer groups etc nothing .......... Your help would be highly appreciated. 


Written by charmaine smit 27/11/15 at 07:53:48 Dataease [{8}]FIVE

Re:How do you do GROUPS in ExecDQL body?

Download Sample!


NB! This sample use LabelExecDQL but it will be the same in MemoExecDQL. 

Hi Charmaine.

ExecDQL Layout is a NEW functionality but it is created along the line "if it works don't change it".

It is no secret that DFD DQL was a powerful tool so when we are re-implementing DQL formatting we thought we could adopt as much as possible and practical.

It is still a "Beta" feature and there is some well know weaknesses in the implementation.

We reverse engineer the layout from the underlying  Multiview generated by the script.

Contrary to "common" belief, all multiviews are generated dynamically based on the query so the only fixed thing about them is the code that generate them i.e. the Script saved in a document but even then the multiview is dynamic. based on the limitations given in filtering the multiview will change...

The body in ExecDQL is based on this multiview and we have discovered that it can be a handful to keep up with:

The simplest DQL will create one level in a multivew (List)

For Table ;
List Records
Field1 ;
Field2 .

Mutliview

Field1~field2

But if you add Groups, you will add another level (which is logical) ...

But what is not so "Logical" is that you add a new level if you use statisticals like :sum

And you also "mess" with the multiview if you use ANY, ALL, COUNT OF etc.

But to make a long story short.

For now avoid using any in ExecDQLs you are using for reporting, use virtual fields in the tables instead.

When you use SUM etc, you need to add and extra .footer

If you get problem with your formatting simply play with the number of .header .footers. ;-)

But back to your question!

This DQL format is again not DFD it is just inspired by DFD.

You can use .group and  you can actually write whatever you like behind it.... .group FirstGroup

but it is exactly the same as .header (always was it turns out...)

.group trailer does not exist in ExecDQL that is simply .footer

So the format is:

Report header text i.e. anything you like.

.header
Header 1
.header 
Group header
.items
items here
.footer 
Group footer
.footer 
ekstra footer to take up slack when you use :sum etc.
.end
Report  trailer i.e anything you like that come at the end of the report.






Written by DataEase 27/11/15 at 08:02:02 Dataease [{8}]FIVE

Re:Re:How do you do GROUPS in ExecDQL body?

Hi all,

In this case if I wanted grouping Description field but keeping Group field as group, what changes in HTML code should be done in order to get it?

Thanks

afonso


Written by afonso santos 04/10/17 at 15:49:32 Dataease [{8}]FIVE

Re:Re:Re:How do you do GROUPS in ExecDQL body?

Hi Afonso.

If you understand you correctly you want to group on decription as well?

If you want that just add group to it in the List records and add a new .header between the current .header and .items.

If your question is that you want to show description in the group header you can just insert [{description}] in the group header directly.

If the latter don't work your DE8 is just to old so download the latest version and it should work.


Written by DataEase 07/10/17 at 14:14:32 Dataease [{8}]FIVE
DG3_ForumList