How to get indexed row data in a table in SSD?

Hi Team,

I am exploring the table option in SSD. I can see there is a rowClick event where we can pick a flow. I am able to pass the entire table data, but not able to pass the selected row level data.

Eg:
In the following table, on clicking a particular row, I am trying to navigate to another page where the book details are displayed. For this I need the book id of the selected row.



Can you please help me with this?

Thanks,
Lavanya S

5 Likes

@Shamnad_KS @Simphiwe @Sam please help

3 Likes

Hi @LavanyaS

When using the rowClick event in SSD, you should use the keyword table (which refers to the selected row object), rather than page.tableData, which refers to the entire table dataset.

For example, if you want to pass the book ID to another page or flow, you can directly use:

table.id

Or any other field from the selected row like:

table.name

This will give you the data specific to the row that was clicked.

Hope this helps!

— Shamnad

5 Likes

Hi @LavanyaS

You can also try :Update your flow input to use row instead of page.tableData.
e.g :

4 Likes

Hi @Shamnad_KS ,

I tried to pass the isbn as table.isbn to the page flow. But getting the table as “undefined”. Can you please help?

Thanks,
Lavanya S

2 Likes

Hi @Noxolo_Mnguni ,

Thank you, this solution worked.

4 Likes

Hi @Shamnad_KS ,

Using row as value, helped the solution. Thanks for your support.

4 Likes

Try logging bh.input.id in the flow using console.log() to see what value you’re receiving. Based on that, you can access the nested values accordingly. Alternatively, you can use row as Noxolo suggested above.

5 Likes