Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important information on the platform change.

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

Button condition: page number

Button condition: page number

Hello community,

I'd like to show a button only in some pages: it's a "home" button, so you don't really need it if you are altready on the home page. The only conditions I see in the config cockpit concern item value or usergroup. Are there other way to archieve this result? Maybe using a localscript on the home page that makes the button invisible or creating a variable which corresponds to each page.
I'd really appriciate if you could give me some advices, thank you

6 REPLIES 6

HmiGuide
Community Moderator
Community Moderator
  • Every WebIQ panel (Screen, Swipe-Panel & Tab-Panel) has the data attributes Item field (marked in picuture below).
  • Just insert an item which always is updated with the number of the currently opened panel. 
  • Use the item for hiding the home button.
  • You can use the item to change the visible panel, too. Just set it, to the screen number you want to display.

HmiGuide_0-1731923521455.png

 

Beg your perdon, I have a futher question. If I want to create this variable, it should be an internal one, not a tag from the PLC, I suppose. Then I should go to the process data manager and create a new one, but how can I manage the logic beside? I mean, I want my new variable to updated with the number of the currently opened panel, how can I make it happen? Sorry for my greenness 😅

Whether you use a virtual or a PLC item depends on what you want to achieve when the program runs simultaneously on several HMIs.

  • use case A With screen coupling: When any HMI changes the screen, the program switches to this screen on all other devices. => Use PLC item.
  • use case B - No screen coupling: The screen switching of the HMIs does not influence each other. => Use virtual item

As I wrote, you only have to insert a item into the green marked field above. As soon as an item is inserted WebIQ updates the value of the  item with the current panel number.

webiq-sk
Frequent Contributor

Please also note these differences:

  • virtual item: JavaScript variable, lives as long and only in the browser tab until the HMI is reloaded in the current browser tab
  • internal item: an item managed the same like an OPC-UA item and kept in WebIQ Server where the IO Handler is set to "internal:simulation"
  • OPC UA item/external item: an item where the IO Handler is not set to "internal:simulation"

So you are referring to a virtual, not an internal item.

 

Oh sorry, I didn't get it, now it works. Thank you both very much! 

 

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