I would like in SAP SAC Script to change the width of a panel to 1/10 of its original…
- User
I would like in SAP SAC Script to change the width of a panel to 1/10 of its original width. I am trying to use this code: for (var r = 0;r<AllShrinkPanels.length;r++){ AllShrinkPanels[r].getLayout().getWidth() / 10; }
but i get automatische konvertierung wird nicht unterstützt
Assistant
getWidth()in SAP Analytics Cloud (Designer) returns a string such as"800px"or"100%".
Dividing a string by a number is what triggers the “automatische Konvertierung wird nicht unterstützt” error.You have to
- read the string,
- strip the unit,
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.