cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic programming - TransparentContainer and visible elements

matteo_montalto
Contributor
0 Kudos

Hi al gurus,

I have a "simple" requirement, that is, add dinamically a tray over a specific TransparentContainer, which contains itself two different TransparentContainers(Left and Right).

Each one of these will contain some fields (specifically, couples of label and inputfields).

Here's the tricky part: I have to add the tray dinamically *only if there's something visible in the TransparentContainer*.

So I'm gonna ask you; what's the best, effective way to check if TC_LEFT and TC_RIGHT contain at least a visible element?

I have an obvious solution that is pretty time-consuming, but maybe there's a workaround to manage such a requirement in an easy and faster way.

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

matteo_montalto
Contributor
0 Kudos

Solved. I simply wrote a routine that gets all the child elements of a transparentContainer and then loop over them. Then for each one of the child, use the GET_VISIBLE method to check for visibility property.

If any of them has the visible attribute set to '02', then EXIT the loop as the "top" container should be visible too.