Skip to main content
New Participant
Feb 15, 2021 6:25 AM UTC
Question

Text box dispalyed after grid field is edited

Hello, 

I have an interface with a grid which has a column called actual time which is an editable field and multiple entries can be added. Suppose i enter 3 rows and there are 3 values for actual time say 5, 10,15 and if i edit the first value ie 5, a text box should be displayed where a comment can be added. 

So if any of the row values is edited, the text box is displayed. 

TIA!!

    3 replies

    stefanhelzle0001
    Brainy
    Feb 15, 2021 7:20 AM UTC

    You can make a text field visible depending on a local variable. This variable can be set to false by default and a a!save() in your grid can set it to true.

    New Participant
    Feb 15, 2021 7:23 AM UTC

    Hi Stefan, 

    Thank you for your response. 

    The flag approach is possible although i do not want the flag to be set to true on the first iteration. 

    If i have entered 5, 10, 15 and then i go back to 5 and change it to say 7, only then i would want the text field to be displayed. 

    stefanhelzle0001
    Brainy
    Feb 15, 2021 7:26 AM UTC

    Then you would want to put this logic into the a!save. It might be that you need some more variables to store the "old" value for comparison.