on 12-03-2007 6:47 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.