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

Hide Button Use with Browse

Status
Not open for further replies.

benny4129

Programmer
Jan 19, 2007
12
US
I have CEE 5.5 and am using Windows XP. I have 2 related browse boxes on the same window. I have an extra button that marks the records of the child database. Is there any way to disable the marker button like the Change & Delete buttons if there are no child records to display.

Thanks
Benny
 
Hi Benny,

For ABC Template Chain ::

EVENT:NewSelection on the Browse Control - after parent call ::

<ChildBrowseObject>.ResetSort(True)
IF RECORDS(<ChildBrowseQueue>) = 0 THEN DISABLE(?MarkButton) ELSE ENABLE(?MarKButton).

OR

<ChildBrowseObject>.ResetQueue - after parent call ::

IF RECORDS(<ChildBrowseQueue>) = 0 THEN DISABLE(?MarkButton) ELSE ENABLE(?MarKButton).

Whichever works.

Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top