http://yasirnedian.blogspot.in/2012/07/how-to-retrieve-multiple-selected.html
similar Links:http://devexpp.blogspot.in/2013/06/get-selected-records-on-grid-datasource.html
similar Links:http://devexpp.blogspot.in/2013/06/get-selected-records-on-grid-datasource.html
Hi,
In this post, we discuss how we can retrieve all selected(marked) records of a datasource or retrieve marked records form Grid.
For this purpose follow the steps listed below.
int recordsCount;
Student studentLocal;
super();
recordsCount = student_ds.recordsMarked().lastIndex(); // Total number of marked records.
studentLocal = student_ds.getFirst(1);
while (studentLocal)
{
info(studentLocal.Name +" " +studentLocal.ID);
studentLocal = student_ds.getNext();
}
In this post, we discuss how we can retrieve all selected(marked) records of a datasource or retrieve marked records form Grid.
For this purpose follow the steps listed below.
- Create a new table named "Student" that contains two string fields i.e. Name & ID.
- Create a new form and add the newly created "Student" table in the datasource node.
- Next create a new button on the form, set its multiselect property to "Yes" . Now override the clicked method of the button and add the following code.
int recordsCount;
Student studentLocal;
super();
recordsCount = student_ds.recordsMarked().lastIndex(); // Total number of marked records.
studentLocal = student_ds.getFirst(1);
while (studentLocal)
{
info(studentLocal.Name +" " +studentLocal.ID);
studentLocal = student_ds.getNext();
}
No comments:
Post a Comment