Right Click menu on Measure add 'keep only'

Answered
Brian Rogers asked on October 15, 2024

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) 

3 answers

Public
Maksym Diachenko Maksym Diachenko Flexmonster October 16, 2024

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

Public
Brian Rogers October 24, 2024

Thanks, we will give  it a try.

Public
Maksym Diachenko Maksym Diachenko Flexmonster October 24, 2024

Hello, Brian!

Thank you for your reply.
Please let us know if more questions arise.

Best Regards,
Maksym

Please login or Register to Submit Answer