18
Views
2
Comments
[JSON Compare] List comparison issue - component shows item deleted/added instead of value changed
json-compare
Reactive icon
Forge asset by Muhammad Fadhli Azhar
Application Type
Reactive

I'm using the JSON Compare (O11) for Reactive to compare a json. The json is composed by a structure that has a few basic fields and also lists (such as UpcomingPorts from the example below).

For this example the only difference is that DistanceToGo is 75 on the left and is 85 on the right, but instead of highlighting the DistanceToGo line in yellow, the entire item is highlighted as deleted and added.

Any suggestions on how to fix this/improve the compoent? :) thanks!



UserImage.jpg
Nani

Check out this link which i have implemented.
https://personal-8qskottx.outsystemscloud.com/TextCompareReactive/TextCompare

Its already available in traditional web application you can checkout in forge. 

I have made some modifications to run in reactive applications.

TextCompareReactive.oml
UserImage.jpg
Nani

If instead of widget if required to compare the text on variable's and replace the Javascript.
Directly assgin value to the var in script, but the result should be the containerId.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.