Skip to main content

Notifications

Building model-driven apps with Microsoft Datav...
Unanswered

Refresh subgrid chart using JavaScript

Posted on by 306
Hi, 
 
I have a subgrid on a form, which I want to refresh using JavaScript when a custom page is closed. When the subgrid is shown as a 'normal' subgrid (not a chart) on the form, it refreshes as expected. However, If select 'Show chart only', the chart is not refreshed by the JavaScript. The user has to hit the refresh button to see the new records in the chart.  
 
This is the JavaScript I use to refresh the subgrid:
formContext.getControl("SubgridName").refresh();
 
 
 
The weird thing is, that I am 100% sure this was working at one point, because I demoed the functionality for my colleagues where the chart refreshed when the custom page was closed.
 
Is there any other way, to refresh a subgrid or chart? Or could this potentially be a bug?
 
Any help is appreciated. 
Categories:

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 141,122

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,414

Leaderboard

Featured topics