I moved my application over to a dev environment with an older version of outsystems Charts, but once doing so and managing dependencies my code broke. my list append all actions seem to have a weird bug that causes the mapping to the list to change the attribute value to datapoint.
I was wondering if anyone else came across this issue and knows of a fix. Thank you for your help.
John
Hi @John Lovegren
What kind of bug is that? Could you perhaps provide some screenshots? Which charts were you using? The old charts (V1) or the new ones?
Best,
Abed
I am using the V1 charts.
The Error happens when I map a SQL Query to the Datapoints variable:
Here is the error given by the field:
I'm not sure why this is happening, but any ideas will help.
First thing I would try is to delete this ListAppendAll and add a brand new one, it's silly but this happens quite often with me, usually adding a new one and reconfiguring it solves it.
If this doesn't fix it, maybe attach an abstracted OML of this part and I can try to give it a quick look!
That didn't seem to work. here's the OML file.
Simply CTRL + X then CTRL + V "DataPoints" output of DataAction1, and your issue will be fixed :) Basically it is just a matter of cutting/removing it then pasting it again.
Let me know if this workaround solves it.
Best regards,
I'm sorry but that didn't work for me. Do you know if you made any other changes.
It's just that, it's just 2 steps:
1. Cut the Datapoints output variable, either by right clicking on it -> cut, or CTRL + X.
2. Paste the Datapoints output variable back, right click -> paste or just CTRL + V.
Can you confirm you did the same from your side and that didn't seem to solve the issue?
Hi Test,
i think what is causing this could be the fact that the old datapoint structure was renamed it to Legacy_Datapoint, and they added a new structure with different design, called Datapoint.
I think that confuses SS. They switched around the value and label attributes in position inside that structure, and I think this type of ad hoc mapping inside appendalls works on position.
If I try to copy and paste in your code without first refresing my dependencies (that are on new version V3.0.0) SS crashes on it.
But i am able to just add a new ListAppendAll.
see screenprint, orange is your original mapping, green is new mapping in a completely new ListAppendAll. You'll have to swith around the value and label
Dorine
Hey Dorine, I tried adding a new ListAppendAll, but it is still giving me the same error.
Let me know if I'm missing a step.
no, i have no other ideas,
it's hard to help without the same versions of things.
But are you saying that in your dev you have a lower version of charts than in the other env. Why ? Is it an option to just upgrade your environment to V3.0.0