Quantcast
Channel: SCN : Popular Discussions - Web Dynpro Java
Viewing all articles
Browse latest Browse all 989

How to use EVS with different data in each row, in a Java Web Dynpro table?

$
0
0

Hi all,

 

I am using EVS in a column of java web dynpro table.

Let's say the name, and context attribute, of this column is column1.

It's filled dynamically using an RFC, that uses as input parameter the value of another column, and related context attribute, from the same table (Let's call it column2).  Obviously, from the same row. So, in other words: the values of the EVS in column1 of row1, are dependent of the value of column2 of row1. And the values of the EVS in column1 of row2, are dependent of the value of column2 of row2. And so on... Hope i could explain myself ok.

 

The code I'm using works great for filling the EVS dynamically:

 

IWDAttributeInfo attrInfo = wdContext.nodeDetail().getNodeInfo().getAttribute(nodeElement.COLUMN1);
ISimpleTypeModifiable siType = attrInfo.getModifiableSimpleType();
IModifiableSimpleValueSet<String> value = siType.getSVServices().getModifiableSimpleValueSet();
value.clear();
if(this.initRFC_Input(nodeElement.getColumn2())){     for (int i = 0; i < wdContext.nodeRFCresult().size(); i++){          value.put(wdContext.nodeRFCresult().getRFCresultElementAt(i).getLgort()             , wdContext.nodeRFCresult().getRFCresultElementAt(i).getLgobe());     }
}

In this code, nodeElement is the context row of the table that is passed dynamically to the method when the value of colum2 is changed.

 

HOWEVER, the problem I'm having is that after executing this code, EACH NEW ROW that is added to the table has by default the same values as the first row, in the column1 EVS. And, for example, if I refresh the values of the column1 EVS in row 2, all EVS values in the other rows are also refreshed with the same values as the ones of EVS in row 2.

 

How can I make sure each row EVS has its own set of independent values, so they don't mess with each other?

 

Hope you guys can help me. And please, let me know if I didn't explain myself correctly!

 

Thanks!


Viewing all articles
Browse latest Browse all 989

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>