Get current web item property value in Javascrpt currentState.getParameter
I am using BI 7.1. In the WAD I am using the new feature from EHP1 to add a custom item to the contet menu. I have it working well. However, I would like to make it more dynamic. I have added options to the context menu to allow the user to "Display Repeated Text" or "Hide Repeated Text". This was accomplished with 2 Script Items. However, this creates 2 items in the context menu. I would like to make it one dynamic menu item.
I see there is a command currentState.getParameter that SAP provides but I cannot get the syntax to work. Does anyone have any sample code that uses this command?
Thanks for help!!!