# SDK event hooks to move data point in table up or down

**URL:** <https://community.amazonquick.com/t/sdk-event-hooks-to-move-data-point-in-table-up-or-down/47629>\
**Category:** Q&A\
**Tags:** embedding-SDK, developer, quick-sight\
**Created:** [June 26, 2025, 11:54am UTC](https://community.amazonquick.com/t/sdk-event-hooks-to-move-data-point-in-table-up-or-down/47629 "2025-06-26T11:54:54Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![halirob](https://avatars.discourse-cdn.com/v4/letter/h/41988e/32.png) [@halirob](https://community.amazonquick.com/u/halirob)\
**Post date:** [June 26, 2025, 11:54am UTC](https://community.amazonquick.com/t/sdk-event-hooks-to-move-data-point-in-table-up-or-down/47629/1 "2025-06-26T11:54:54Z")

</div>

Hello, I was wondering if there were any tricks anyone knew to move the data point selection for the table visual up or down?  
The use case is , we have a table and a fly out and want to move to the next and preview record keeping the fly out open, and have the data update based on the datapoint selected.

thanks for any tips

---

<div class="post-metadata">

**Author:** ![WLS-D](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/wls-d/32/36109_2.png) [@WLS-D](https://community.amazonquick.com/u/WLS-D)\
**Post date:** [June 27, 2025, 3:22pm UTC](https://community.amazonquick.com/t/sdk-event-hooks-to-move-data-point-in-table-up-or-down/47629/2 "2025-06-27T15:22:46Z")

</div>

Hello @halirob

I have never tried this but I don’t believe there is a way to specifically cycle through rows of a table in your fly out.

How are you setting this up now?

---

<div class="post-metadata">

**Author:** ![halirob](https://avatars.discourse-cdn.com/v4/letter/h/41988e/32.png) [@halirob](https://community.amazonquick.com/u/halirob)\
**Post date:** [June 30, 2025, 11:49am UTC](https://community.amazonquick.com/t/sdk-event-hooks-to-move-data-point-in-table-up-or-down/47629/3 "2025-06-30T11:49:36Z")

</div>

We are using the data point click event in the table to fly over a panel. We’d like to navigate back and forth in the table, which would trigger another datapoint click event updating the panel. We can manually do it with mouse or keyboard nav, but we’d like a next and previous button on our panel that the user could use to move up and down instead.

---

<div class="post-metadata">

**Author:** ![WLS-D](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/wls-d/32/36109_2.png) [@WLS-D](https://community.amazonquick.com/u/WLS-D)\
**Post date:** [July 8, 2025, 10:24am UTC](https://community.amazonquick.com/t/sdk-event-hooks-to-move-data-point-in-table-up-or-down/47629/4 "2025-07-08T10:24:01Z")

</div>

Hello @halirob

I’m sorry about the late reply.

I wasn’t able to find anything specific to pull a next/previous button. If I understand what you want correctly, you will just need to create a UI element that will trigger the parameter action that you are using to pull up the data from your table.

---

<div class="post-metadata">

**Author:** ![halirob](https://avatars.discourse-cdn.com/v4/letter/h/41988e/32.png) [@halirob](https://community.amazonquick.com/u/halirob)\
**Post date:** [July 8, 2025, 11:05am UTC](https://community.amazonquick.com/t/sdk-event-hooks-to-move-data-point-in-table-up-or-down/47629/5 "2025-07-08T11:05:08Z")

</div>

That is a good idea. Is it actually possible to trigger another parameter to update from different parameter?

Lets say I have a table with columns: sequence number, id, name.

I setup a parameter for currentSeqNum and CurId .. User clicks on a row, I set those 2 params to the row values via an action.

My flyout screen pops up with the details for the deleted id.  
Now I want to go to the next row without closing my popup.  
I can update the currentSeqNum to currentSeqNum +1 or currentSeqNum -1, but how do i trigger the CurId to update based on that?

thanks for an ideas…this could be pretty cool if it worked..

---

<div class="post-metadata">

**Author:** ![WLS-D](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/wls-d/32/36109_2.png) [@WLS-D](https://community.amazonquick.com/u/WLS-D)\
**Post date:** [July 16, 2025, 3:37pm UTC](https://community.amazonquick.com/t/sdk-event-hooks-to-move-data-point-in-table-up-or-down/47629/6 "2025-07-16T15:37:12Z")

</div>

Hey @halirob

I looked into this more, and if I understood the documentation I think this could help:

> **[Adding embedded callback actions at runtime in Amazon QuickSight - Amazon...](https://docs.aws.amazon.com/quicksight/latest/user/embedding-custom-actions-callback.html)**
>
> Use the QuickSight SDKs to add embedded callback actions to your assets at runtime.

> **[VisualCustomAction - Amazon QuickSight](https://docs.aws.amazon.com/quicksight/latest/APIReference/API_VisualCustomAction.html)**
>
> A custom action defined on a visual.

---

<div class="post-metadata">

**Author:** ![Hrolol](https://avatars.discourse-cdn.com/v4/letter/h/b3f665/32.png) [@Hrolol](https://community.amazonquick.com/u/Hrolol)\
**Post date:** [July 16, 2025, 5:09pm UTC](https://community.amazonquick.com/t/sdk-event-hooks-to-move-data-point-in-table-up-or-down/47629/7 "2025-07-16T17:09:01Z")

</div>

Probably adding these columns to your dataset cloud help:

- PrevId,
- NextId,
- PrevSeqNum,
- NextSeqNum  
2 buttons could be implemented as 2 visuals with only current row shown (actually that data will be hidden and only hardcoded columns with values “Next” or “Prev” should be visible). They should assign proper pair of values to your parameters on click.

---

<div class="post-metadata">

**Author:** ![halirob](https://avatars.discourse-cdn.com/v4/letter/h/41988e/32.png) [@halirob](https://community.amazonquick.com/u/halirob)\
**Post date:** [July 22, 2025, 11:41am UTC](https://community.amazonquick.com/t/sdk-event-hooks-to-move-data-point-in-table-up-or-down/47629/8 "2025-07-22T11:41:17Z")

</div>

I think i see what you are saying.. if the row has the previd and nextid.. then the outside UI would know the IDs.. then on top of that.. we can even use a selected state (using a paramter) to indicate when it moves to the next one from the outside app

---

<div class="post-metadata">

**Author:** ![Hrolol](https://avatars.discourse-cdn.com/v4/letter/h/b3f665/32.png) [@Hrolol](https://community.amazonquick.com/u/Hrolol)\
**Post date:** [July 24, 2025, 9:32am UTC](https://community.amazonquick.com/t/sdk-event-hooks-to-move-data-point-in-table-up-or-down/47629/9 "2025-07-24T09:32:03Z")

</div>

Yes, something like this. Window functions can easily get these next/prev values (in SQL or in Quick Sight datasets or in calculated fields). Just in case, here is a very simple example from my experience:

I have a dataset with months. I have columns

- Month
- Next Month
- Prev Month
- Prev Year Month (-12 months from the current month)  
Only Month is visible. When a user clicks a row I set 4 parameters that I need to filter/calculate data. It allows me to streamline many filters and calculated fields.
