A pop-up menu is a convenient way to add functionality to your Dodeca View. One way it is often used is to navigate to another view while bringing all the context relevant information with it from the original view. Dodeca makes this very easy because it automatically captures all of this contextual information.
For example, if you are in a planning view, or any view where information is sent to an Essbase cube, Dodeca already knows all the Dimensions defined for a particular cell. This makes it very easy to open another View with all of your relevant dimension intersections already defined.
In this post, we will add a pop-up menu to a View which will open the Audit Log Search view. The Audit Log Search view provides information from the Dodeca repository on a single data point within your application, such as the old value, new value, who updated it, and when. There is a sample provided with the Sample application. This can be used with your application once it is modified to fit your specific environment.
Here is a look at the Sales and Margin Planning view within a sample application I have called OUTLOOK. This view is used to update the Sales numbers and Margin % across products for a specific market.
Right now, there is no pop-up menu associated with the View. If I were to right-click anywhere in the view, nothing would happen.
This application also has an Audit Log Search view which was mentioned above.
Here is look at the Audit Log Search View:
As you can see, for a particular data point in the cube, the view captures old and new values, who made the update, and when.
We will add a pop-up menu to this view which will open the Audit Log search View when we click on any input data cell in the Sales and Margin Planning view. The Audit view will open for the exact data point that we have highlighted on the Planning view, automatically! This makes it very easy for any user to get information on any updates made in the application.
Here are the steps we will follow.
1. Create a PopUp menu item called “Audit Log PopUp”
2. Create and Configure Button tool called “Open Audit Log”
3. Assign the Open Audit Log button tool to the Audit Log Popup.
4. Assign the new PopUp menu to the View.
Most of these actions take place within the Toolbars Configuration metadata editor. Please note: this metadata editor was also discussed in this post on Adding a Button to a Toolbar.
The source view, “Sales and Margin Planning” has a View toolbar called “Essbase View Standard Limited” . You can see this in the View Properties under the UI category. We will edit this toolbar directly, as opposed to creating a new one as we did in the other toolbar post.
An easy way to open the Toolbar Configuration metadata editor for this particular view simply to right click where the Property name, and select Edit “Essbase View Standard Limited”.
This will bring you to the Toolbar Configurations metadata editor for this specific toolbar configuration.
Step 1. Create the popup menu
Click on the Toolbars Designer on the bottom left section of the editor. This will bring up the Toolbars Designer for this toolbar. It has five tabs across the top.
Go to the Tools tab, then select New… at the bottom left.
This will open the New Tool dialog box. Select “Popup Menu” from the dropdown, then enter Audit Log Popup for the caption, and AuditLogPopup for the key, then press Add. I like to take spaces out of the key field just as a preference. We do not need to select a Category assignment at this time. This dialog will stay open, so click on close when completed.
Step 1 completed. We now have a new Popup menu item.
Step 2. Create a button called “Open Audit Log”
Click on New… again to open the New Tool dialog. Select Button from the drop-down, and enter Open Audit Log for the Caption, and OpenAuditLog for the Key. Press Add.
Then close the Toolbars Designer. We now have our button tool, but we need to specify what the button will do. For this we open the Configure Tools dialog. To open this, click on the Configure Tools… button in the Toolbars metadata editor.
The Configure Tools window will list all the tools we have, listed by Key. Select the new one we created called “OpenAuditLog”.
The right side of this window is where we will specify what the button does. In the Tool Controller dropdown, select OpenViewForDataCellToolController. This will then populate the Tool Arguments window. Open the ViewID argument by clicking on the ellipsis on the right of the entry field. This will open the list of Views in the application.
I will select the Audit Log view, which in this case has a view ID of the original view from the Sample application. That’s all we need to do before committing. Click on the “Commit Module, Toolbars Configuration, and/or Views” at the bottom of this dialog. You will get a confirmation message, and also a message that you will need to restart the application. We will not restart it just yet, as there are a few more updates we can make before restarting.
Step 3. Assign the Open Audit Log button tool to the Audit Log Popup.
Open the Toolbars Designer window again and go to the Popup Menu Designer tab. Select our “Audit Log Popup” from the dropdown list of available Popup menus. Then select our Open Audit Log button tool from the list of tools on the right and drag it over to the left box. Now the button tool is available in the popup menu.
Close the window and click on the Commit button in the Toolbars Configuration editor.
Step 4. Assign the new Popup menu to the View.
This is assigned in the Views metadata editor. Open this editor for the Sales and Margin Planning view. There is a property in the UI category named GridContextMenuID. Click on the dropdown for this property and select our new popup called “AuditLogPopup”. Then click on Commit.
That’s it. All the updates are completed. Now we can close and restart the application.
Now let’s test. Go the Sales and Margin Planning view. We will make an update and then test the popup.
I will update the Sales number for Birch Beer from 480 to 700. I will update this to the cube with the Send button on the top of the view. Once the send is completed, I will right-click on the data cell:
I see the Popup. So far so good. Now I can click on “Open Audit Log”
Excellent! Tested and verified. I see the Audit Log view has opened and I see the update I just made.
Some key points:
- Dodeca automatically provides the auditing tracking. Every update sent to the cube is tracked in the Dodeca SQL repository that comes with Dodeca.
- Dodeca KNOWS what cell you are on when you right click, and will automatically use that information when opening another view. No matter what cell I right-clicked on, Dodeca knows to get the Audit information for that exact data point.
- We already had a working view for the Audit Log search. So we simply needed a button to open that view the button. I may to another post on setting up the Audit Log View.
Although there were a number of steps involved, I hope you can see that is was a relatively straightforward process to put this together. Please let me know if you have any questions, and thanks for reading.