17
Views
4
Comments
Solved
navigate to next row
Question

Hi All,

In reactive web, how do I show next record from aggregate using onclick.

Rank: #70
Solution

Hi Kavya,


Ok, now I understand what you are looking for.

I think the best way to do this is to have a block that displays the record information given the id and from the outside, you control that id given the selected position: the next one if you press "Next", the previous one if you press "Previous".

Please refer to the OML in attachment of a demo on showing details on list button click and with the Previous / Next selection option.


Regards,
João

DemoPreviousNextShowOnClick.oml

Rank: #70

Hi Kavya,


Do you mean on a list / table records?

If that is the case, take a look at the example on the OML in attachment.


Hope it helps.


Regards,
João

test2.oml

Hi Kavya,

You can also follow below steps - 

1. When you click on the details button to display the clicked row details on webblock then you can also pass the id for next and previous record by writing  "currentRowNumber+1" and "currentRowNumber-1". Also before doing it check for the length and beginning of the list before doing this.

2. Depending on the button click use the passed id to get the data from the DB.

Thanks,

Unnati