cancel
Showing results for 
Search instead for 
Did you mean: 

help on how to add colors to webdynpro tableColumn

Former Member
0 Kudos

hi every body,

I am using NW 2004s SP 9,I am trying to add colors to a Webdynpro table Column but i could not able to do it.I am not getting the method createAndAdd....for the node which i have binded to the table.

is this the problem in version ,please let me know it.

I have done it based on the blog in Sample Tutorials.

Please reply to it

Thanks in advance

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

If create and add is not available you can use

IWDNodeElement element = wdContext.node<YOurNode>().createElement();

wdContext.node<Your Node>().addElement(element);

Regards

Ayyapparaj

Former Member
0 Kudos

hi,

I am using following code in wdInit();

for (Iterator i = WDTableCellDesign.iterateValues(); i.hasNext(); )

{

WDTableCellDesign design = (WDTableCellDesign) i.next();

IWDMessageManager msg=wdComponentAPI.getMessageManager();

ITableColourElement e5=wdContext.nodeTableColour().createTableColourElement();

e5.setCelldesign1(design);

e5.setName(design.toString());

}

Actually in the blog in place of createTableColourElement() ,the method createAndAdd..nodeelement, is used,

the particular loop is getting executed for 20 times(i.e the no of colors that cellDesign property is having),but while seting the celldesign property and text to the table cell and

table cell editor ,they r not working ,

will you please help how to proceed.

Thanks in advance

Former Member
0 Kudos

Hi,

for (Iterator i = WDTableCellDesign.iterateValues(); i.hasNext(); )

{

WDTableCellDesign design = (WDTableCellDesign) i.next();

IWDMessageManager msg=wdComponentAPI.getMessageManager();

ITableColourElement e5=wdContext.nodeTableColour().createTableColourElement();

e5.setCelldesign1(design);

e5.setName(design.toString());

<b>wdContext.nodeTableColour().addElement(e5);</b>

}

<b>Table color functionality available only since NW04s for Java</b>

Regards

Ayyapparaj

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Do u create table dynamically ?

For static table,

If u use Table UI element ....Just add the columns then click that column and go to the properties--->cell design--


>then select an color for that column.