cancel
Showing results for 
Search instead for 
Did you mean: 

Webdynpro table result

Former Member
0 Kudos

Hi all,

How control can I use to see a complete table? But, without use table control.

My bapi returns a table, but I need see this result as a texteditor or textview, but if I use this control, I can only view the first row.

thanks in advance,

david

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

ok

I use this method. thanks for your help.

david

Former Member
0 Kudos

Hi David,

If answer was helpful then please reward points and close the thread.

So, it would be helpful for others for searching helpful answers.

Regards,

Bhavik

Former Member
0 Kudos

sorry, I'm beginger ...

what is the displayAreaID ?

david

Former Member
0 Kudos

This stands for the ID of some container created at design time in your view where the programmatically created part will be inserted.

Armin

Former Member
0 Kudos

Hi David,

Another solution is to use table control only but modify its layout in a way that it looks like list of text views.

See following link to display table as a list:

Regards,

Bhavik

Former Member
0 Kudos

I want see the result like a text view, not a table design.

The only solution is getting the string for each row and paste on the textview?

or I can use any control similar of table control directly?

thank in advance,

david

Former Member
0 Kudos

If you are using NW04s, table popins could be the solution.

If you are using NW04, you could create a TextView element for each node element and put it into a container, like:


wdDoModifyView(...)

if (dataChanged)
{
  IWDUIElementContainer displayArea = (IWDUIElementContainer) view.getElement("<displayAreaID>");
  displayArea.destroyAllChildren();
  for (int i = 0; i < wdContext.node<Data>().size(); ++i)
  {
    I<Data>Element data = wdContext.node<Data>.get<Data>ElementAt(i);
    IWDTextView text = (IWDTextView) view.createElement(IWDTextView.class, null);
    text.setText(data.get<Attribute>());
    displayArea.addChild(text);
  }
}

Armin

Former Member
0 Kudos

Can you please be more specific?

I guess: You get as a result of a BAPI call a list of context node elements which you don't want to display in a Web Dynpro Table (why?), but as a sequence of TextView elements?

If so, you could create in method wdDoModifyView() for each node element a TextView UI element displaying it.

Is this what you want?

Armin