Community
Participate
Working Groups
Currenlty changing the width and height of a report item is not supported through scripting. One of the useful applications of this ability is to simulate a gauge meter within a table. For example consider a table that shows a list of test suites. Each row has the total number of test cases failed and passed. I can create a third column that contains an image that is basically 1 pixel wide and 9 pixels high. If I had the ability to change the width of the image within the "onCreate" method I could render a "gauge meter" that visualizes the number of tests failed. The width of the image would be the (total test cases failed)/((total test cases failed) + total test cases passed) * 100.
Created attachment 34474 [details] Report design template file
Created attachment 34475 [details] Resulting html file that contains the embeded script