I have a requirement in my current project, where I have to get the multiple data from the queue and insert them into an application that has a Datagrid.
I’m able to insert the first row, but struggling to insert the data into multiple rows.
If anyone has any ideas to share it would be great.
Hey @Ajith_Vijayan
You mean you need to get multiple row items from a single queue item or multiple queue items one by one ?
Thanks
#nK
Multiple row items from a single queue
Try below steps
-
Read Range Excel – Output – DT
-
Assign Activity → DTDataRow (Type : Datarow) = DT.NewRow
-
Multiple Assign →
DTDataRow(“Name”) = in_TransactioItem.SpecficContent(“Name”).ToString
DTDataRow(“Age”) = in_TransactioItem.SpecficContent(“Age”).ToString
( Name, Age,…… – Your Excel/Data Grid Columns) -
“Add Data Row” Activity → Properties – DataRow : DTDataRow
DataTable : DT -
“Write Range” Activity → Write to your Data Grid.
(You can change the steps according to your grid)
Hey @Ajith_Vijayan
How are you currently saving multiple row items in a single queue item please ?
Thanks
#nK
in Json array
Hey @Ajith_Vijayan
-
Use Deserialize JArray activity to convert it back to DT
-
Use For-each row to iterate and enter the details into website
-
Check in the selectors if you can find the table row attribute so that you can pass the row count dynamically taking it from foreach row output
Thanks
#nK
Thank you, will try