Easy Peasy Top of the List

Thank you for the prompt response.

No such METHOD (BRW11.FREE.) in BRW11

BRW11 CLASS(JSBrowseClass) !Reference ROOMS availability.
:grimacing:

I dont have the app and thus code anymore, but I had something on a 0.5sec timer that detected the scrollbar was on the last record of BrwB and pushed a key (home button I think) into the keyboard buffer and positioned the scrollbar onto the first record of BrwB. It only triggered the timer from a brw class reset event.

That was a dct define parent child relationship type, FileA/BrwA parent to FileB/BrwB child.

Fwiw.

1 Like

Thank you for the suggestion.

Currently a BRW::Toolbar was added to the WindowBrowseProcedure.
This has the VCR button, to execute First, last next. etc.
currently in

FileDrop, TakeNewSelection, Before Parent Call we
Post(EVENT:Accepted,?Browse:Top)

Works, but it pains me that the BROWSE goes and fetches all the records(365 days X 30 rooms X TimeOpen), THEN it goes and manually moves to the top.

Where as, when the WindowBrowseProcedure just opens/starts it “appears” to be only fetching as many records as needed to FILL the BROWSE_B view on the window.

I was looking at my JSBrowseClass code, and didn’t realize you already were using it.

I should have said:

YourBrowseLabel.ListQueue.Free ! Or you could just use FREE(YourBrowseQueue)
YourBrowseLabel.Reset

The point of this is to empty your browse’s queue and re-set it so that it doesn’t try to locate its saved view position in the new result set.

1 Like

Yippeee!!! :clap:
That worked perfectly!!!

Thank you !! @jslarve

2 Likes

Fouché, ouboet, I created a Clarion website a buncha years ago that contains a buncha stuff you will enjoy. It was called ClarionFoundry and it died around 2007 after a sql injection attack. (my fault). I hope you find it useful, the URL is https://www.litreum.com/Articles and select the ClarionFoundry item in the tree. If you use the search function, click the button and don’t press enter. Pressing enter doesnt work.
And again, than you for all your help, so many years ago.

I wondered where that website went, I found it handy.

1 Like