Page 1 of 1

[Solved] Data in Grid Form during scroll

Posted: Thu May 24, 2018 10:44 am
by BaaNer
Hi guys
I am pretty new in OO Base (moved over from another Database Program)
But with some youTube Tutorials and your Forum here I think I got some Basics (for sure a lot of things are different or still open)

As I learned within this Forum, that OO does not display all Records within a Form (grid), I took the second Advice to scroll :|
When I do this within the slide bar, I am getting pretty weired Data within my Grid (see attached FormGrid 03 - FormGrid 01 is the normal (expected) one)
I get this, when I clicked into the scroll bar and moved up then again with the slider

Is this only for me so or can this be reproduced?
I am using AOO 4.1.5 on MS Windows 10

thx for your Help (is not that urgent, as normally I use (need to use) 'Last Record Button')
br

Re: Data in Grid Form during scroll

Posted: Thu May 24, 2018 12:07 pm
by RPG
BaaNer wrote:I get this, when I clicked into the scroll bar and moved up then again with the slider
This does only move the window and not the record pointer.
BaaNer wrote:Is this only for me so or can this be reproduced?
There it seemes me the normal working it can be reproduced.

For moving the record pointer click on the arrows below the grid.

Most of the time it is better to filter your record set. When the record set is small then select the record you want. For me it is always important to filter and sort the record set so you easy select the record you want. What is the best way to filter your record set depends of different things. But I have learned: learn it first. Learn all the buttons and then you also learn what is the best method for you.

Romke

Re: Data in Grid Form during scroll

Posted: Thu May 24, 2018 12:24 pm
by Villeroy
The problem goes away when you limit the rows to hundreds instead of thousands, one way or the other.
In my form I added WHERE DateDiff('dd', "Date Column", CURRENT_DATE)<100. Nobody is interested in data older than 3 months.

Re: Data in Grid Form during scroll

Posted: Thu May 24, 2018 2:37 pm
by BaaNer
thx to all for your Time and Advice's
I have only 435 Records within this set and all are Valid (no outdated)
the Intention of this Form was to get an Overview of all my Loko's with the Capability to select a specific Record within the Grid Form to get all Details for one Record instead of the need for 'prefiltering' (Honestly speaking I even don't know before entering this Form which Record I want to see, change, update or append a new one)
br

Re: Data in Grid Form during scroll

Posted: Thu May 24, 2018 2:47 pm
by robleyd
OT
That looks almost but not quite like a Beyer Garratt; what is it?

Re: Data in Grid Form during scroll

Posted: Thu May 24, 2018 6:02 pm
by UnklDonald418
When a table control on a Base form loads data from a database table it often does not read all the rows in the result set.
For instance looking at the Navigation bar on your second image it says Record 2 of 78, which indicates that it only read 78 rows.
Looking at the Navigation bar on your first image where you have used the scroll bar it says Record 6 of 164.
If you were to scroll down further the last row number would increase again but probably still not to ”435”.
When you scroll up in a table control it uses the internally stored Row and RowCount numbers to calculate which rows to display, but if RowCount isn't Final (435 in this case) then the row calculations are incorrect and displayed rows will reflect that error.
If you use the navigation buttons to jump to the last row then the RowCount number will be Final so the calculations will be correct as will the displayed rows.

Re: Data in Grid Form during scroll

Posted: Thu May 24, 2018 6:13 pm
by BaaNer
Hi UnklDonald
that is exactly what I figured out - with Last Record it gives me no Error
any chance to fix this ;-)?
br

Re: Data in Grid Form during scroll

Posted: Thu May 24, 2018 6:23 pm
by UnklDonald418
I don't think there have been any updates to AOO Base in past 10 years.
I haven't noticed that problem using Libre Office.

Re: Data in Grid Form during scroll

Posted: Thu May 24, 2018 6:26 pm
by BaaNer
Hi David
To your Question - this is a German Express Loco 01
http://www.eisenbahn-museumsfahrzeuge.c ... aureihe-01
But sorry is only in German :-(
br

Re: Data in Grid Form during scroll

Posted: Thu May 24, 2018 9:29 pm
by RPG
I think it is not easy for starters to filter the data in such a way that you get the end result you want. For me it was not easy to understand what I can do with the main-form and sub-form. I mean forms as you see in the form-navigator. Study the help-files about details of the data-form as you see in the form-navigator.

It is also important to understand a little about SQL. Data-forms as you see in the form navigator are for displaying the results of queries.
Data-forms, main-forms and sub-form are all equal. They are forms as you can see in the form-navigator.

Romke

Re: Data in Grid Form during scroll

Posted: Fri May 25, 2018 10:08 am
by BaaNer
Hi UnklDonald
As you mentioned, this is not happening in LibreOffice
looks they solved this Bug there - thx for your Advise
Case solved