Watch, Follow, &
Connect with Us

Please visit our new home

Public Report
Report From: Delphi for PHP/Library/Other    [ Add a report in this area ]  
Report #:  107530   Status: Reported
Toggling visibility of components inside DBRepeater is irreversible
Project:  HTML5 Builder Build #:
Version:    4.4 Submitted By:   David Mora
Report Type:  Minor failure / Design problem Date Reported:  7/31/2012 4:10:52 AM
Severity:    Commonly encountered problem Last Updated:
Platform:    All versions Internal Tracking #:  
Resolution: None  Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: 8
Cannot use the "Visible" property inside BeforeShow events for components placed inside a DBRepeater: as soon as "Visible" is set to false, the component cannot be set to visible again in following records.
Steps to Reproduce:
Place a database, a query, a datasource and a DBrepeater on a form.
Setup properties:
query refers to database
datasource refers to query
dbrepeater refers to datasource

Place label inside the dbrepeater
create the BeforeShow event for the label

depending on some values of the dataset record, toggle visibility of the label

as soon as the label is set to not visible, it remains invisible even for other records where code sets it to visible: the event is not fired anymore.

Workaround for labels: instead of toggling visibility, their caption can be set empty, although html is still generated for it.

No workarounds for images and other controls.



Server Response from: ETNACODE01