Skip to main content
January 10, 2023
Question

Disable the interface page tabs

  • January 10, 2023
  • 4 replies
  • 0 views

Hi Everyone,

I have an primary interface page and in that there are different tabs calling other interfaces. In primary interface page there is a button and on the click of that button all the tabs present in primary interface should be disabled. Can any one please help me how to achieve this?

    4 replies

    mikes0011
    Brainy
    January 10, 2023

    in the top-level interface declare a local variable along the lines of "local!disableTabs: false()," -- and use that variable to set the active status of the tabs, in such a way that they behave normally when the value is false (i assume you're talking about tabs you manually create within your interface, at least).

    Then, pass this local variable in to the sub interface through a new rule input you add to the sub-interface.  There, upon the button click in question, in addition to whatever else the button does, set the value of that rule input to true().

    The Expression Guru
    January 11, 2023

    Thank you Mike, the tabs are created using cardlayout inside columns layout. and there is no disable parameter. 

    konduruc733182
    January 11, 2023

    Hello shubhamy0005,

    You can disable the dynamic link in-case you are using it for  the tab selection. you can achieve it using a simple if() condition.