-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apex Custom data provider not working #74
Comments
I also can't get the above, or the demo sample in the repository, to work. |
Hi @Mock1 and @mmzoughi90. I've been able to reproduce the error from my side too and I am now working to look for an explanation and a fix for it. Meanwhile, there is one workaround that seems to work: change the access modifier of the class extending Can you please let me know if this works for you? Thanks ! |
Maybe @mmzoughi90 can test the global edit. I was able to narrow it down to just the managed package, and I suspect it's tied into the namespace. I also put a debug statement in the init method, and it never fired, so I think the ChartBuilderController (line 19) is failing to fetch the class. I think that checks out with the public->global change, I don't think the package can "see" the class in another namespace without it being global. |
Thanks for this, global access modifier worked for me too. |
Hi,
I have this custom data provider that I use in a Lightning page just to test showing a pie chart with the lightning component and the apex custom data provider and I have an error:
The apex class:
public without sharing class AP18_TSCustomPieDataProvider extends lwcc.ChartDataProvider {
public Object initParameter;
public override void init(final Object initParameter) {
}
public override List<lwcc.ChartDataProvider.ChartData> getData() {
final List<lwcc.ChartDataProvider.ChartData> chartDatas = new List<lwcc.ChartDataProvider.ChartData>();
lwcc.ChartDataProvider.ChartData aChartData = new lwcc.ChartDataProvider.ChartData();
aChartData.labels = DEMO_LABEL;
aChartData.detail = DEMO_DATA;
aChartData.bgColor = DEMO_COLOR;
chartDatas.add(aChartData);
return chartDatas;
}
}
And the error message is: "Attempt to de-reference a null object"
Who is the bug affecting? = any user
What is affected by this bug? = pie chart rendering
When does this occur?= always
Where on the platform does it happen? = on the chart on the lightning page
How do we replicate the issue? = it happend always
Thanks,
The text was updated successfully, but these errors were encountered: