In order to persist changes for all sessions you have to update the chart settings in the designer by selecting the run button or updating the properties in the property editor panel
So sorry, not clear to me: I don't want to change the dimension/column of the Pen table or similar. The chart should/must be saved at run time, as viewed by the operator. If the operator chooses "weight = 1" and then saves the chart, when the chart is loaded/retrived it has to be same.
Or, sorry again, not clear what you meant.
Sorry, not clear. The issue is on the same chart, as per the 2 images above. The operator saves the chart with a scale/pen weight and then when reloaded is different. Or, sorry again, not understood
I was replying to Benjamin. He's trying to help you, but is stuck on the persistence functionality. I'm not sure where your problem is, as I don't use that tool now-a-days.
You will probably need to study the database content to see where it is going wrong.
I did and it seems ok. All the parameters are correctly loaded from the DB.
It is very strange: despite being in axes "Automatic", the trend component seems to ignore that bit/information and it is re-scaling (after the load) as in Image 2 above (beyond the "Weight" issue - not yet investigated).
I would prefer to avoid any change, in order to avoid impact with future release/update. It is a major aspect, I suspect to have something wrong/misconfigured at my end
No, you're not.
The problem is with Ad Hoc Trend template, how it handles decimal delimiters (I've been there)...
I'll bet that you're have comma for decimals...?
When you save the chart, the value for weight is saved as "1.0" (not "1,0"). But when you load the saved chart, the weight is read as "10" because you have set the language (in Vision or designer preview) which has comma as decimal delimiter.
It was long time ago when I was dealing with this, but I think that I change something in the "save chart" code...
EDIT: I think I found it:
In the "Save Graph" button code there's this line:
Thx. It works for the "weight". Indeed the not for the scale, that remains as in Image 2 above. Any solution for that?
UPDATE: sorted out. The same issue is on the following statement, regarding axes. It is sorted out addeing "localized = True" in both the statement inside the "Save Graph" button.