今天使用TIBCO中的Select組件,其中select的記錄值是調用web service中的方法,然后返回數組,數組中包含多個對象.
The jsx3.gui.Select uses the attribute "jsxtext" as the display field.
上的意思就是要想把屬性值顯示給select,則必須把屬性映射的名字設置成"jsxtext";
而我又想把對象的ID值傳給select的value屬性。查了一下文檔看到,jsxid屬性,于是就試了一下!果然可以!
因為select有個getValue() method 文檔描述為:
Returns the value of this select box. The value is the jsxid
attribute of the selected CDF record.
還有一點,就是,當你把一個值既想作為select的顯示值又想作為真實值的時候。則應該把該屬性做兩個映射,分別為jsxid和jsxtext!
posted on 2007-03-27 19:28
周銳 閱讀(241)
評論(0) 編輯 收藏 所屬分類:
TIBCO