Wish to have FOOTER property on a GRID/BROWSE control..

Creative ideas/suggestions for HMG

Moderator: Rathinagiri

User avatar
brain
Posts: 26
Joined: Tue Aug 02, 2011 5:01 pm

Wish to have FOOTER property on a GRID/BROWSE control..

Post by brain »

I wish to have FOOTER property just like HEADER property on a GRID/BROWSE control to put some TOTAL or REMARKS in it. Tnx and more power HMG!!!
i have a screenshot here with 138290 records. I used GRID as a footer to recalculate all the FIELDS on the BROWSE control. The problem is it will not move if i had to add another FIELD to my BROWSE table. I want my FOOTER will move LEFT to RIGHT as I move my KB Left to right. Hi to all!!!
sample.jpg
sample.jpg (319.45 KiB) Viewed 4951 times
Last edited by brain on Tue Nov 18, 2014 11:21 am, edited 4 times in total.
User avatar
serge_girard
Posts: 3166
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: Wish to have footer on a GRID/BROWSE control..

Post by serge_girard »

Very good idea !!

Serge
There's nothing you can do that can't be done...
User avatar
bpd2000
Posts: 1207
Joined: Sat Sep 10, 2011 4:07 am
Location: India

Re: Wish to have footer on a GRID/BROWSE control..

Post by bpd2000 »

+1
BPD
Convert Dream into Reality through HMG
franco
Posts: 820
Joined: Sat Nov 02, 2013 5:42 am
DBs Used: DBF
Location: Canada

Re: Wish to have FOOTER property on a GRID/BROWSE control..

Post by franco »

What I do to get around this is to create a temporary table and append the fields or all fields from
the main table. I then append a blank record and give the first field the name total or what ever.
I can total columns to put the totals in the numbered records. This works good. I also set relation back to main table sometimes.
Not sure what your doing but works great for reports.
Regards Franco
All The Best,
Franco
Canada
franco
Posts: 820
Joined: Sat Nov 02, 2013 5:42 am
DBs Used: DBF
Location: Canada

Re: Wish to have FOOTER property on a GRID/BROWSE control..

Post by franco »

Yes I am having that problem. Have table with 300,000 records.
I have it working on single field.
open from table. Index to temp on field I want. seek start point. copy while field = want.
5 seconds time.
I am having trouble with dates. with index on date. seek want1. copy while date <= want2.
Just doing this now.
my old foxpro sql select from only took 5 seconds to do what I want, but am having trouble
making sql select work in hmg. It says I am missing a dll file. Do not know how to get this file.
I forget the name right now.
Let you know how this works when finished
Franco
All The Best,
Franco
Canada
User avatar
mol
Posts: 3721
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: Wish to have FOOTER property on a GRID/BROWSE control..

Post by mol »

What sql engine are you using, Franco? Some .dll file was uploaded to forum and discussed...
User avatar
dragancesu
Posts: 921
Joined: Mon Jun 24, 2013 11:53 am
DBs Used: DBF, MySQL, Oracle
Location: Subotica, Serbia

Re: Wish to have FOOTER property on a GRID/BROWSE control..

Post by dragancesu »

At first glance, it seems OK request, but when I think I did not see anything like that

What is proposed franco is OK although I think it is better to put the sum of the fields at the bottom of the screen, the lines of which shows the sum may be more than you can fit on the screen, on the other hand summation should be seen on the screen

On the other hand, it is probably that all data should be visible on the screen, so scrolling down-up makes more sense than scrolling right-left
franco
Posts: 820
Joined: Sat Nov 02, 2013 5:42 am
DBs Used: DBF
Location: Canada

Re: Wish to have FOOTER property on a GRID/BROWSE control..

Post by franco »

you could put the total fields into variables, and put labels right below the grid.
this way you would have much control on what is there.

as merek suggested my way is slow for large tables.
if looking at the whole 300000 records I am down to 18 seconds (not Bad), but if I want
to add any more filters it becomes unusable
I would really like to learn how get data with sql as in my latest post.
select num1 from inv where num1 = 'P2' into table temp .... so easy once you know how.
Franco
All The Best,
Franco
Canada
Javier Tovar
Posts: 1275
Joined: Tue Sep 03, 2013 4:22 am
Location: Tecámac, México

Re: Wish to have FOOTER property on a GRID/BROWSE control..

Post by Javier Tovar »

What I do is put another Grid in a single row without headers to put there totals or averages depends on what you want, down the other and it looks like one !!!. And it's the same speed as working with grid or Browse !, although I admit I have not worked with large data bases. Maximum 10,000 as evidence.

Regards
Post Reply