cancel
Showing results for 
Search instead for 
Did you mean: 

How to set layout data of IWDLabel dynamically

former_member220853
Participant
0 Kudos

Hi

I need to set layout data of Label to RowHeadData and also wants to set the rowBackgroundDesign property of the the same label

and I need to do it programmatically

If any one can share the snippet that will be of great help

Accepted Solutions (1)

Accepted Solutions (1)

former_member197348
Active Contributor
0 Kudos

Hi Gaurav,

I assumed that you had l container with RowLayout and a label in it. You want to set the layout data of Label to RowHeadData programmatically.

Then try like this:

I have not tried out this code in my server. You can try this code snippet

In wdDoModifyView(),

IWDLabel label = (IWDLabel) view.getElement("id_of_label");
IWDRowHeadData rh= (IWDRowHeadData)label.createLayoutData(IWDRowHeadData.class); 
rh.setRowBackgroundDesign(WDCellBackgroundDesign.XXX);

Regards,

Siva

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Gaurav,

Check the following SAP help documentation on IWDLabel:

http://help.sap.com/saphelp_nw04/helpdata/en/f0/492c6c49831040af2bcb5975c7076c/frameset.htm

It explains all the methods of the above mentioned API.

Regards.

Rajat

Former Member
0 Kudos
Former Member
0 Kudos

hi,

chk out the following link,

http://www.vogella.de/articles/SAPWebDynpro/ar01s11.html

Regards

Jayapriya