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

Right Click menu on Measure add 'keep only'

Answered
Brian Rogers asked 17 hours ago

Add an addition option to the right click popup menu to:

To 'Keep Only' the select measure as that is what I want to focus on!

see attachment

(version 2.9.87) 

1 answer

Public
Maksym Diachenko Maksym Diachenko Flexmonster 6 hours ago

Hello, Brian!

Thank you for reaching out to us.

Flexmonster's context menu can be customized using the customizeContextMenu API call. You can add a new handler for removing other measures, as is shown in this example: https://jsfiddle.net/flexmonster/50kosd98/

Within the customizeContextMenuFunction, the measure cells are identified by checking if the measure property is present in the CellDataObject. For measure cells, a new "Remove other measures" handler is added. This handler retrieves the current slice, removes other measures from it, and applies changes using the runQuery API call.

Please let us know if this solution works for you.

Best Regards,
Maksym

Please login or Register to Submit Answer