• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

Update grid based on form value

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Update grid based on form value

    I've got a form and a grid on the same app, the grid has a datasource as follows:
    image.png?

    On my form i have the N06ALLOY field value linked as Get Field Value for the 'Alloy' variable
    image.png? ?
    the variable is just a simple declaration
    image.png?

    But when i test the app, changing the value of N06ALLOY with the dropdown box does not update the grid. Do i need to initiate a refresh of the grid whenever the value of the form changes with a script somehow?

  • #2
    The vvIn_Virtual in the datasource will simply use the value of the supplied app variable; however, it's up to the application to tell the widget to refresh.

    For example, I would have an app variable, let’s say I named it refreshMyGrid, with an expression that checks if the other app variable, Alloy, has a value. If it does, the expression returns true; otherwise, it returns false.

    Then, I would link the app variable refreshMyGrid to the grid's General > Refresh

    Screenshot 2025-01-23 at 9.13.14?AM.png

    Screenshot 2025-01-23 at 9.13.24?AM.png

    Comment


    • #3
      Perfect, Thank you!

      Comment

      Working...
      X