Skip to Content
author's profile photo Former Member
Former Member

help on how to add colors to webdynpro tableColumn

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2007 at 06:51 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2007 at 07:38 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.