cancel
Showing results for 
Search instead for 
Did you mean: 
SOLVED

Make widgets hidden and/or removed dependent on the user group

Make widgets hidden and/or removed dependent on the user group

felX_CORE
Member

Hello,

 

is it possible to hide or remove widgets dependent on the user group?

For context: the admin may start the machine in safe mode and can change the acceleration in the settigns,

but the operator can only define the position in the settings and dont see the options for a safe mode, so he also dont get confused about it.

 

Thanks in advance!

1 REPLY 1

webiq-eg
Long-established Member

Hello,
unfortunately that is not possible at the moment, but it will be one of the important features in the next version WebIQ 2.10, which we want to launch in the summer.
As a workaround, a LocalScript can be used to write the user level to an auxiliary variable, e.g. virtual item 'virtual: userlevel'. When the HMI is started and the LocalScript is executed, it writes a numerical value to the item, which depends on the user group of the logged on user. This is defined in the LocalScript as follows:

/* private variables */
    var userLevel = {
        operator: 1,
        superuser: 2,
        admin: 3
    }
With these defined values you can use the CSS-Class dialog to set the CSS class 'hidden' or 'invisible' as well as the 'Lock' dialog in the config pattern:
webiq-eg_0-1622535438102.png

I have attached a test app as an example.
I know it's a bit inconvenient, but a comfortable solution will come soon in the next version.
I hope this helps for now
I wish you success
webiq-eg

 

Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist