It is currently 21 April 2025, 8:49 Advanced search

How supressMenu is working?

Questions and answers on how to best use Instant Developer

How supressMenu is working?

Postby Corrado » 8 February 2025, 17:22

Seems like supressMenu = true command does not work if it was executed before, but user has opened menu manually.
To close menu from code you need to first execute supressMenu = false and then supressMenu = true again...
Is this a bug or I'm doing it in wrong way?

my version 24.5.9400 Rev. 9
Corrado
 
Posts: 79
Joined: 18 October 2013, 13:19
Location: Toronto, ON

Re: How supressMenu is working?

Postby d.pierangeli » 21 March 2025, 9:06

Thanks for the report, the problem is that the SuppressMenu property goes only in the server-> client direction, and therefore if the visibility is changed both on the server side and by the user the value is no longer sent correctly.

We created a report to better handle the case.

It is possible to solve the case directly using javascript and the ExecuteOnClient function.

For RD3: RD3_DesktopManager.WebEntryPoint.CmdObj.SetSuppressMenu(true);

for Fluid : Client.eleMap['wep'].commandList.toggleMenu(false);
Attachments
ProgettoErroreMenu.zip
(464.85 KiB) Downloaded 10 times
User avatar
d.pierangeli
Pro Gamma
Pro Gamma
 
Posts: 8092
Joined: 30 September 2010, 15:35


Return to Tips & Tricks

Who is online

Users browsing this forum: No registered users and 17 guests