cancel
Showing results for 
Search instead for 
Did you mean: 

H Align for Container

Former Member
0 Kudos

Hi,

Is there any way in which i can change the Horizontal Align property of a Transperant Container at run-time.

I tried using Context but its not possible to bind a context to H Align property.

Can anybody help me out with this problem.

Best Regards,

Kanakaraj V A

Accepted Solutions (1)

Accepted Solutions (1)

abhimanyu_lagishetti7
Active Contributor
0 Kudos

Hi

those are not bindable.

I think you can do it through coding

data: lr_container type ref to CL_WD_TRANSPARENT_CONTAINER.

data: lr_layout type ref to CL_WD_MATRIX_HEAD_DATA. " if it is matrix header data.

lr_container = view->get_element( '<container_name>' ).

lr_layout ?= lr_container->get_layout_data( ).

lr_layout->SET_H_ALIGN( CL_WD_MATRIX_HEAD_DATA=>e_h_align-center ).

this is only if your transparant container is part of Matrix Layout and it is layout data is Matrix Head Data

If it is Matrid data then use CL_WDR_MATRIX_DATA instead CL_WD_MATRIX_HEAD_DATA

Abhi

Answers (1)

Answers (1)

arjun_thakur
Active Contributor
0 Kudos

Hi Kanakaraj,

I don't think that is directly possible because hAlign is not the property of the container but is the layout data (according to the layout used) which can't be binded.

Regards

Arjun