i am trying to get the dmf:datagrid's selected rows in the component's java file.how can i achieve this?
Regards.
Hi,
Use below snippet to get the selected object id in Component Class
<dmf:datagridRowEvent eventname="dblclick">
<dmf:link name='nameMatterlink' onclick='onClickObject' tooltipdatafield="object_name">
<dmf:argument name="objectId" datafield="r_object_id"/>
<dmf:argument name="objectname" datafield="object_name"/>
<dmf:argument name="type" datafield="r_object_type"/>
<dmf:argument name="inline" value="false"/>
</dmf:link>
</dmf:datagridRowEvent>
Write method onClickObject() inside Component Class as shown below and you will get Selected object, or on Double Click.
public void onClickObject(Control control, ArgumentList args) {
}
Refer "Customizing row selection" section in WDK Guide to know about selection, single/double clicks of a grid
-Siva