Scripted statistics display blank chart
I have written attached code for a scripted statistics and although the script for extracting values is working (checked it in Actions), the chart display is blank.
Basically, the y axis of the chart should show countries and x axis should display count for MidRange, Network etc. device types.
While I lack the time to have a deeper look at the script right now and only did some small tests with statistics so far, one thing that might help is to use "Name" instead of "Country" or "ComputerType" in the XMLAttributes.
When I used a different string from "Name" my example statistic didn't display the statistic it should have but only the last column.
And my groups didn't have values, but adding a "value"-XMLAttribute to them didn't add or break anything.
Hope this helps
Hi Chris and Joe,
Thank you for looking at this post. I did try adding the Chr(10 & Chr(13) to RetVal but I see "(16384) Parameter error:" error in adblog file. Looks like the grouping and subgrouping works correctly but somehow the statistics doesn't display due to this error.
Have you come across this error before and do you know why it occurs.
Thank you again for your input. I appreciate it.
I just started working with scripted statistics myself… To trouble shoot I have been putting in amMsgBox()s to show values of variables and working backward from there trying to identify exactly where the code fails… for example does you code fail before it gets to the ‘RetVal’ portion? It’s a pretty crude approach but it helps me figure out what to focus on… Maybe someone else has a better way to debug these?