Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Browse refresh help please 1

Status
Not open for further replies.

normm

Programmer
Dec 9, 2004
46
GB
Hi All,

I'm currently trying to refresh a browse box from a Tin Tools Calendar lookup button in C6.3 using ABC templates.

The lookup button supplies inserts a date value into a local value that is then used as part of a conditional filter on the browse box.

everything seems to work fine but I currently need to click on the browse box to apply the filter.

I have attempted to use a variety of commands after generated code on the lookup button but I cant seem to get it to work.

have tried the following:-

BRW.ResetFromBuffer
BRW.ResetFromView
BRW.ResetSort
BRW.ResetFromAsk

Any help greatly appreciated (also posted on SV forums)

Normm.
 
Hi Please ignore -

Issue resolved

I used

BRW1.ResetSort(1)
BRW1.UpdateWindow

Normm
 
Hi Normm,

Just a BRWn.ResetSort(True) followed by a DISPLAY(?ListBox) will do.

Regards
 
Hi ShankarJ,

Just curious. Which one is quicker when displaying the data? I have been using your method and it is very quick.

BRWn.ResetSort(True)
DISPLAY(?ListBox)
vs
BRW1.ResetSort(1)
BRW1.UpdateWindow

Thanks,

Truly,

Emad
 
Hi Emad,

Look at the UpdateWindow code in ABBROWSE.clw in the LIBSRC directory. It does a few other things than a DISPLAY(). So the real decision to use UpdateWindow or a plain DISPLAY() depends on what has caused the Browse to be refreshed. For most cases, a DISPLAY() should suffice.

Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top