Skip to main content
January 12, 2024
Solved

Refresh Interface

  • January 12, 2024
  • 16 replies
  • 0 views

Hi All,

I have two interface, A and B. When a button in interface A is clicked all the components in B should be refreshed. Is it possible to refresh all the components in interface B without passing parameters in all components in interface B?(I am passing the refresh variable from A to B, but not from B to components in B)

    Best answer by stefanhelzle0001

    Maybe this blog post helps: Data in Interfaces

    16 replies

    konduruc733182
    January 12, 2024

    Hello shubhamy3376,

    Need more information on what are you trying to achieve and what is it exactly you have done. Code snippets and other details would make us understand better on your question. 

    stefanhelzle0001
    Brainy
    January 12, 2024

    Maybe this blog post helps: Data in Interfaces

    komalj3844
    January 12, 2024

    Hi [mention:bb176b67c26c4e89b2173f39160c9f46:e9ed411860ed4f2ba0265705b8793d05] 

    I just tried the Scenario you requested . Please confirm if i could create the same or similar. Happy to have more details 

    harshitb6843
    January 12, 2024

    How are interface A and B related? Is any one of them a parent or they both are children and you have a new interface that is calling both of them?

    mohammadjavidbashaa9600
    January 12, 2024

    You can use Refresh Always in interface B

    mathieud0001
    Brainy
    January 13, 2024

    You'll at least need to pass 1 variable to force the refresh of the queries in the B interface.

    January 15, 2024

    When calling your interface B in Parent Interface (Interface A), you will have to pass at least one variable based on which the data in interface B will be refreshed.

    Make sure to use refreshOnVarChange in Interface B.

    Thanks 

    mikes0011
    Brainy
    January 15, 2024

    This is always a tricky question to answer when we haven't been given a strong idea of the relationship between the interfaces in question.  Also confusion around this usually seems to be underpinned by a lack of familiarity with how interfaces naturally stack and how data (and refreshed data) tends to pass between them.  I usually recommend that you just go ahead and pass data between interfaces - if this is something you think isn't possible in your case, then I would suggest that the structure you're hoping to use might not be properly set up, in general.

    The Expression Guru
    harshitb6843
    January 16, 2024

    True. The funny part is, everyone is keeping the guessing game on but the OP does not care to reply with the details. 

    mikes0011
    Brainy
    January 16, 2024

    At this point the leaderboard algo just seems to care who posts the most per day in bulk, so I'm playin the game to get back my #2 spot [emoticon:c28b2e4cc20f4ba28d1befdba6bed29c]

    The Expression Guru
    amaans4178
    January 16, 2024

    You have two components, A and B. You aim to refresh component B when a specific button in component A is clicked. To achieve this, you've introduced a refresh variable to monitor whether a button in component A has been clicked.

    Now, within component B, there are additional child components, X, Y, etc. You want these child components to be refreshed as well, but without explicitly passing the refresh variable to each of them. While a typical approach would involve passing the refresh variable to the child components of B, you're exploring an alternative solution to avoid this, right?