Developer Portal Community

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

    Object creation - VisibilityVar

    Object creation - VisibilityVar

    joaomrq
    Member

    Hi,

    I’m trying to use the following keyword to control the visibility of an InternalElement on the HMI:

    joaomrq_0-1653315261767.png

    Although, the configuration is not showing on OES4.11.

    I can, however, manually choose the variable that I’m trying to use on the OOD, so the variable exists on the object extension and I can use it and it works, but this OOD setting is not being automatically loaded into the internal element.

    I declared the variable on the extension of the parent of the internal elements.

    PS: I tried both with 'visible="true"' and 'visible="false"'

    Any tips as to what may be happening?

    3 REPLIES 3

    nexidator
    Community Moderator
    Community Moderator

    By default, VisibilityVar is a member of the Extension of the internal element.

    If you want to link the visibility to an Extension member of the parent object, you need this syntax:

    ?parent??ExtensionInstance?.VisibleInHmi

    I would just skip the visible attribute at the InternalElement tag.

    Thank you very much.

    Your answer solved the problem. Is there any document describing these tokens that we can use on the OOD file?

    This was not discussed on the OP150 or maybe I missed it.

     

    Best regards.

    nexidator
    Community Moderator
    Community Moderator

    You are right, this feature is not part of the training. I think the use case is so special that it exceeds the scope of the training. I must admit it isn't documented anywhere else either.

    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