Skip to Content
0
Former Member
May 09, 2005 at 12:42 PM

get special line from tableview

29 Views

hi,

first - my java is crap, but i have to deal with a webdynpro application.

I collect data in a table - but actually i do not need the whole table but only a certain record.

I fill a list in a while loop. Looks like this:

while (iter.hasNext()) {
  Element e = (Element) iter.next();
  IPrivateStep2.ITable1Element Table1 = wdContext.createTable1Element();
  Table1.setORDER_NO(e.element("ORDER_NO").getText());
  if (e.element("DATE") != null) {
    Table1.setDATE(e.element("DATE").getText());
  }
  if (e.element("CUSTOMER_REF") != null) {
    Table1.setCUSTOMER_REF(e.element("CUSTOMER_REF").getText());
  }
  if (e.element("VEHICLE_REF") != null) {
    Table1.setVEHICLE_REF(e.element("VEHICLE_REF").getText());
  }
  wdContext.nodeTable1().addElement(Table1);
}

Now, how do I get a certain record, where in my case the VEHICLE_REF equals a given value.

In fact I don't want the whole table to be shown at all, but only this certain record.

any ideas welcome,

regards, matthias

Message was edited by: Armin Reichert

Edited code section for readability