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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Refresh/Reload Browse List 1

Status
Not open for further replies.

wchestnut

Programmer
Aug 9, 2010
79
US
Hi, again!

In the View/Update Prospects window (attached file), I have a Browse box in the Sales Cycle Status tab. For a new Prospect, it's empty.

The Load New Cycle button runs a Process that adds records to the table that's displayed in the Browse box. But after the records are added, the Browse box is not updated showing the new records.

I tried using UPDATE(?SalesCycleStatusList) and DISPLAY(?SalesCycleStatusList) in some Embeds but that didn't work. How can I force the Browse list to update?
 
Hi!

If you are using the ABC template, the syntax is <BrowseObject>.ResetSort(True) when <BrowseObject> is the name of Browse Class instance defined in Actions -> Classes tab -> Object Name.

If you are using the legacy (Clarion) template, I "think" it is DO BRW<n>::RefreshPage (check the generated source for the correct routine name).

Regards
 
I found the code but got an error:
Syntax error: Routine not defined: BRW7::RefreshPage

This is probably because I have another window open with the Embedded code that allows the user to select a record so it can't find the code in the other module?

I did come up with a workaround and added a "Refresh" button on the first Browse window which allows the user to manually refresh the list using the following code:

DO BRW7::SelectSort
?SalesCycleStatusList{Prop:VScrollPos} = BRW7::CurrentScroll
DISPLAY()
ForceRefresh = True
DO RefreshWindow

That'll work for now. Thanks, again, ShankarJ!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top