Skip to Content
author's profile photo
Former Member

How do you print contents of a table?

Is there a way to print the contents of a table from web dynpro? Any help with this is appreciated! Thanks in advance.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Oct 11, 2007 at 01:43 PM

    Hi,

    I am sure u can iterate thru the node context and get values from the attributes... Let us know if that helps.

    Cheers!!!

    Add comment
    10|10000 characters needed characters exceeded

    • Hi,

      You can print all values of the table there it self.

      Following is the code for this:

      int size= wdContext.nodeTable().size();

      Iterator iter = wdContext.nodeTable().getNodeInfo().iterateAttributes();

      for (int i = 0; i < size; i++) {

      IWDNodeElement element = wdContext.nodeTable().getElementAt(i);

      while (iter.hasNext()) {

      IWDAttributeInfo elem = (IWDAttributeInfo) iter.next();

      wdComponentAPI.getMessageManager().reportSuccess(elem.getName()"="element.getAttributeValue(elem.getName()));

      }

      }

      Regards,

      Praveen