SmartClient Version: v13.1p_2025-08-19/AllModules Development Only (built 2025-08-19)
Chrome, FF on MacOS Sequoia
Hi, please try this test case in the showcase (run it in the browser console), Shiva skin, Spacious density:
You'll see this:

which seems right. Then, click the "more" menu button and you'll see this:

which is wrong because:
1. The "Documenti" button is disabled (it should be enabled).
2. The "Blocca" button is hidden.
3. "Annulla Attivitą" appears both as a ToolStripButton and a MenuItem (it should be enabled).
4. The menu button is hidden.
Chrome, FF on MacOS Sequoia
Hi, please try this test case in the showcase (run it in the browser console), Shiva skin, Spacious density:
Code:
isc.Auth.setRoles(["ROLE_FOO", "ROLE_FOO_BAR"]); isc.Auth.setAvailableRoles(["ROLE_FOO", "ROLE_FOO_BAR", "ROLE_BAR"]); isc.AdaptiveMenu.create({ ID: "adaptiveMenu", menuButtonTitle: "More...", align: "center", defaultLayoutAlign: "center", items: [ { title: "Compila Report", icon: "Edit", enableWhen: {fieldName: "auth.roles", operator: "equals", value: "ROLE_BAR"} }, { title: "Report PDF", icon: "Edit", enableWhen: {fieldName: "auth.roles", operator: "equals", value: "ROLE_BAR"} }, { title: "Report Excel", icon: "Edit", enableWhen: {fieldName: "auth.roles", operator: "equals", value: "ROLE_BAR"} }, { title: "Documenti", icon: "Edit", enableWhen: {fieldName: "auth.roles", operator: "equals", value: "ROLE_FOO"} }, { title: "Sblocca", icon: "Edit", visibleWhen: {fieldName: "auth.roles", operator: "equals", value: "ROLE_BAR"} }, { title: "Blocca", icon: "Edit", visibleWhen: {fieldName: "auth.roles", operator: "equals", value: "ROLE_FOO"} }, { title: "Annulla Attivitą", icon: "Edit", enableWhen: {fieldName: "auth.roles", operator: "equals", value: "ROLE_FOO"} }, { title: "Ripristina Attivitą", icon: "Edit", visibleWhen: {fieldName: "auth.roles", operator: "equals", value: "ROLE_BAR"} }, { title: "Elimina Attivitą", icon: "Edit", enableWhen: {fieldName: "auth.roles", operator: "equals", value: "ROLE_FOO"} } ] }); isc.ToolStrip.create({ ID: "toolStrip", height: 32, width: "100%", layoutMargin: 0, defaultLayoutAlign: "center", members: [ isc.IButton.create({title: "Close", icon: "Close", autoFit: true}), adaptiveMenu, isc.IButton.create({title: "Save", icon: "Save", autoFit: true})] }); isc.Window.create({ ID: "testWindow", width: 860, height: 643, isModal: true, autoCenter: true, title: isc.version, dismissOnOutsideClick: true, showFooter: true, // items: [exampleForm], footerControls: [toolStrip] }).show()
which seems right. Then, click the "more" menu button and you'll see this:
which is wrong because:
1. The "Documenti" button is disabled (it should be enabled).
2. The "Blocca" button is hidden.
3. "Annulla Attivitą" appears both as a ToolStripButton and a MenuItem (it should be enabled).
4. The menu button is hidden.
Comment