我有以下网格
DateCreated |ID | State
18/01/2016 |0005 | N
当我双击行时,我可以在警报中获取数据:
function getData (){
var gridObjects=GridTableData.getGridObject();
var ID = gridObjects.getCellValueByName(1,"ID");
alert(ID );
}
<tr>
<td>
<p align="center"><APPLET NAME="GridTableData" WIDTH="1000" HEIGHT="546" CODE="iGrid" CODEBASE="/XMII/Classes" ARCHIVE="illum8.zip" MAYSCRIPT>
<PARAM NAME="QueryTemplate" VALUE="SAPInterface/Reporting/SQLQuery_GridTableData">
<PARAM NAME="DisplayTemplate" VALUE="SAPInterface/Reporting/iGrid_Lights_GridTableData">
<param name="InitialUpdate" value="false">
<PARAM NAME="DoubleClickEvent" value="getData">
</APPLET>
</td>
</tr>
<tr>
<td width="120" align="left" class="lightgrey"><input type="text" maxlength="10" name="Message_ID" id="" /></td>
</td>
</tr>
现在我如何从getData函数中获取该ID,当它被双击并在上面的文本框中显示它时?