2014-08-30 119 views
0

我有oracle adf和jdeveloper。 我想獲取表格中選擇行的值並將它們連接並在輸入文本中顯示它們。 我該怎麼做?如何獲取表格中選擇行的值並將它們連接並顯示在輸入文本中?

+0

用戶,告訴我們您的jdev版本,請! – 2014-08-31 19:02:19

+0

你想僅從一行連接行值嗎? – 2014-08-31 19:14:09

+0

我有Oracle 11gr2和JDeveloper 11.1.2.1.0 I.是的,我想從只有一個選定的行連接行值,並在輸入文本中顯示它們。 – user3588552 2014-09-02 03:59:21

回答

0

在這種情況下,你可以使用此代碼,可以讓你的當前行的迭代器,然後從該行的屬性:

// Get the data from an ADF tree or table 
DCBindingContainer dcBindings = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry(); 

// Get a attribute value of the current row of iterator 
DCIteratorBinding iterBind= (DCIteratorBinding)dcBindings.get("testIterator"); 
String attribute = (String)iterBind.getCurrentRow().getAttribute("field1"); 
// get other attributes and then concat them 
... 

蒂莫

相關問題