324
Views
6
Comments
Solved
[OutSystems Data Grid] Datagrid refresh
outsystems-data-grid
Reactive icon
Forge asset by OutSystems
Application Type
Reactive

Hello guys !


I want too update the data in my data grid, is there a way to refresh it ? cause I cant find any :(
Thank you so much

2023-02-27 14-18-56
Jaya Kumar S
Solution

Hi @raven ransford just drag and drop the dataaction into the flow.
Eg.


Regards

Jaya Kumar S

UserImage.jpg
raven ransford

hey this works !
Thank you so much @Jaya Kumar S 

2023-07-25 17-04-53
Mohit Sharma

Yes, in OutSystems, you can refresh the data in a data grid using the "Refresh Data" action. The "Refresh Data" action is used to fetch the latest data from the server and update the data grid with the new information.

To achieve this, follow these steps:

  • Identify the Data Grid: Make sure you have a data grid on your screen that displays the data you want to update.
  • Add a Trigger: To initiate the data refresh, you need a trigger. This can be a button click, a timer, or any other event that should trigger the data refresh action.
  • Use the "Refresh Data" Action: In the action flow of your trigger event, add the "Refresh Data" action for the data grid. This action will reload the data from the server and update the data grid accordingly.

Here's a step-by-step guide:

  1. In your OutSystems application, open the screen containing the data grid you want to refresh.
  2. Add a trigger for the data refresh. For example, you can add a button to manually trigger the refresh or use a timer to refresh the data automatically at specific intervals.
  3. Double-click on the trigger (button or timer) to open its properties.
  4. In the properties window, click on the "On Click" (for buttons) or "On Timer End" (for timers) action, depending on your chosen trigger.
  5. Inside the action flow, search for the "Refresh Data" action in the toolbox. You can find it under "Data" actions.
  6. Drag the "Refresh Data" action into the action flow.
  7. Configure the "Refresh Data" action by selecting the data grid you want to refresh from the drop-down list.
  8. Save your changes and test the data refresh functionality.

Now, whenever the trigger event is activated (e.g., button click or timer end), the "Refresh Data" action will be executed, updating the data grid with the latest data from the server.

UserImage.jpg
raven ransford

Thankyou for your answer
But I can't find the Refresh data action on my toolbox

2023-07-25 17-04-53
Mohit Sharma

Hi @raven ransford,

Double click on your client action, which will open client action. Here you can find "Refresh Data" action in the toolbox. Drag and drop it and set source.

Hope it may help you to solve your problem. 

Best of luck. 

2021-03-18 21-03-15
Benjith Sam
 
MVP

Hi Raven,

You can give it a try using the approach mentioned in this post: https://www.outsystems.com/forums/discussion/82816/datagrid-does-not-respond-to-schema-change/#Post346075

OutSystems.GridAPI.GridManager.GetGridById($parameters.GridWidgetId).provider._items.refresh();


Kind regards,

Benjith Sam

2023-02-27 14-18-56
Jaya Kumar S
Solution

Hi @raven ransford just drag and drop the dataaction into the flow.
Eg.


Regards

Jaya Kumar S

UserImage.jpg
raven ransford

hey this works !
Thank you so much @Jaya Kumar S 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.