Need to highlight the field when changed the value

Hello All,

I have the below requirement and need your inputs.

Screen is having dropdown values, Text box and Date fields. These all details are from one table. When I have changed the values in dropdown or textbox or date fields it should be highlighted in either the way.

Eg: Designation drop down - Earlier it was Software Engineer and now i changed to Senior software engineer. Then the field should be highlight and show value has been updated.

Really appreciate your quick response.

My thought was need to show one icon field and when the value changed icon will be displayed and when mouse hover over it will show as value has been changed.

Highlighted one is only my thought. Please provide me if we have any other way also.

  Discussion posts and replies are publicly visible

Parents Reply
  • +1
    Certified Lead Developer
    in reply to Poranki Ramaraju

    Sorry for the delay, i had to go get lunch - in any case, you would want to declare your variables (using the a!localVariables() parent) using the a!refreshVariable declaration and turn OFF "refresh on referenced variable change" for any local variables you'd like to remain static even when the original copy of the data is updated.

    a!localVariables(
      
      local!originalCopy: a!refreshVariable(
        value: ri!myDataCDT,
        refreshOnReferencedVarChange: false()
      ),
      
      local!isDataUpdated: not(exact(
        tostring(ri!myDataCDT),
        tostring(local!originalCopy)
      )),
      
      a!formLayout(
        contents: { /* ... */ }
      )
    )

Children