Toggle IWantToMenu
Anybody know how to toggle IWantToMenu by a command. Basically we like to add a text link in the home panel to click and show the I want to Menu.
Thanks
0
-
Try adding this command to your home panel.
<a href="command:ActivateView?IWantToMenuView">Your text here</a>0 -
Hi John,
Thanks for the help. It seems it does toggle the I Want To menu. It only opens up and when I click it again. The I Want to menu still open and not close.
Wayne0 -
Hi John,
Thanks for the help. It seems the command activates the I Want To menu. It opens up and when I click it again. The I Want to menu still open and not close. Is that anything I can do to make it toggle?
Thanks again
Wayne0 -
So you want the first click to open the I want to menu and the next click to close it, and so on? If so, then you can use this workflow:
https://drive.google.com/open?id=0B_hHHiqcTKMfUUVLME41R0s0Vm8
It uses the Get/Set External Value activities to store an integer (0 or 1) on the client that represent the state of the view. It assumes the view is inactive by default.
The first click on the link sets the external value to 1 and activates the view. The second click sets the external value to 0 and deactivates the view. By toggling the external value each time, the client can tell the workflow which way to toggle the view.
The last pieces are to add the workflow to your site and this link code to your Home Panel:
<a href="command:RunWorkflowById?Your Workflow Name">Your Text Here</a>0 -
Great workflow John, this is really useful!
Cheers!0 -
John,
Thanks for the workflow. Yes, it works exellent.
Wayne0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
6 Kommentare