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
I don't know of any way to "highlight" a field like this, but you could use a combination of side-by-side layouts and rich text fields with icons (as you seem to already suggest); you would want to store a copy of the original data in a local variable which does not change, and compare that to the value of the variable that DOES get updated, and you could set the visibility properties of the icon (appearance, color, size, captions, etc) depending on whether the data has changed or not.
Thank you Mike.. Could you please suggest me code to declare the local variables. It would be really helpful... Thank you
Can you confirm whether you're working in an Appian version at or above 19.2?
Im working on 20.1 version
Im working on 20.1 and could you please suggest me code to declare the local variables... That would be really helpful.... Thank you
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: { /* ... */ } ) )
Thank you so much Mike...