Hi,
I have a form with a grid. The user can add 0-x number of entries in this grid. I need to be able to work with each item in each row that the user entered.
Is it possible to dynamically add datafields to my process and then work with them internally? If so, how?
thanks,
E
Page 1 / 1
It is not possible to add Data Fields or XML Fields at runtime of the process instance. A K2datagrid control stores its info/records in a XML field, you can work with the XML field at runtime as you would in standard .NET development.
Hi,
If you want to work with the data in the K2DataGrid in the web form you can have a look at the following...
The collection of ROWS in the K2DataGrid can be accessed by using:
K2grdMyData.thisdataset.tables(0).rows
With this you can loop through the ROWS by using:
For lintRowNumber = 0 To K2grdMyData.thisdataset.tables(0).rows.count - 1
In this loop you can access COLUMNS in the K2DataGrid by using:
K2grdMyData.thisdataset.tables(0).rows(lintRowNumber).Item(3)
where 3 is the column number you would like to access
Notes:
K2grdMyData is the name of your K2DataGrid.
The row and column numbers start at 0.
Regards,
Tersia
If you want to work with the data in the K2DataGrid in the web form you can have a look at the following...
The collection of ROWS in the K2DataGrid can be accessed by using:
K2grdMyData.thisdataset.tables(0).rows
With this you can loop through the ROWS by using:
For lintRowNumber = 0 To K2grdMyData.thisdataset.tables(0).rows.count - 1
In this loop you can access COLUMNS in the K2DataGrid by using:
K2grdMyData.thisdataset.tables(0).rows(lintRowNumber).Item(3)
where 3 is the column number you would like to access
Notes:
K2grdMyData is the name of your K2DataGrid.
The row and column numbers start at 0.
Regards,
Tersia
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.