We have updated Flexmonster Software License Agreement, effective as of September 30, 2024. Learn more about what’s changed.

Setting table size on certain rows not working

Resolved
Accobat Development asked on February 22, 2023

Hello dear FlexMonster support team,
 

We are implementing a feature to set the width and height of a column or row by using the context menu on a member cell (e.g. "increase width" or "hide"). To do this, we are passing the member.uniqueName to our tableSizes variable.
 

This works in most cases, however, there are certain datasets where it seems that member.uniqueName does not accurately select the tuple.
 

Is it not possible to guarantee a tuple from the member.uniqueName value? If not, is there a better way to get a row/column tuple?
 
The following code is how we generate the table sizes for rows that we have used the "hide" function on. From what we can identify the only issue is the member.uniqueName. Using idx to select the dimensions works just fine, but we would rather not use this solution as the dimension's index may change.
 

            // Generating row sizing
            tableSizes.rows = []
            hiddenRows.map((dimension) => {
                tableSizes.rows.push({
                    width:0,
                    height:0,
                    tuple:[dimension],
                })
            })

 

Thank you in advance,
Jonas
 
 

1 answer

Public
Maksym Diachenko Maksym Diachenko Flexmonster February 24, 2023

Hello, 

Thank you for your question.

Kindly note that in some cases, it is required to use more than one unique name inside the tuple array, for instance, to resize the expanded cell (see the example). Using the idx property would work fine, since it gets automatically converted to tuple inside the report, which is shown on this example: https://jsfiddle.net/flexmonster/sn5ey9hq/ 
This property would correspond the CellDataObject's columnIndex for increasing the column's width or rowIndex for row. 

Please let us know if such approach would work for you.

Best Regards,
Maksym

Please login or Register to Submit Answer