Comparing text in Interactive Report Columns (Template Component Plugin)

Search for a command to run...

No comments yet. Be the first to comment.
Context is one of the most important things when working with AI. That's kind of the agent "memory" during the session. A key part of the context giving the agent instructions on what to use for speci

A new Data Source was included in this release, you can see it when including a new component, it's called "Sample Data" Some components like maps, charts and Calendar have this source type now, that

This is a great combination for something the used to take some effort on writing some functions to execute actions on specific rows of an IR, like using a hidden page item, assigning the PK value of

Creation of a parallel translated app is no longer the only way to handle multiple languages in APEX. Now under Globalization Attributes, we can select "Text Message-Based" as Translation Method. On

Recently, I created an APP using APEXlang, (check here). I asked the agent to create a lookup table including columns to store colors and icons, useful to work with status for example. The agent no on

Early this year, someone asked me for a way to compare the text selected from two columns of a report and show de differences highlighted in colors.
I looked for the easiest way to accomplish this requirement and found a cool library to do it, htmdiff-js. This Library contains a function that receives as parameters two strings and returns an HTML with <ins> and <del> tags to highlight the differences between those strings.
After testing, I realized that by adding this library and some code to implement it in a report, the requirement could be done. But, APEX is about low coding, so why not try to put this in a plugin and make life easier?
And that's what I did. The plugin is available here in apex.world and it's really simple to use.
import it into your application
select the column in the report where you want to do the comparison
In the Column Properties, Under Identification, select "Text Compare" as the Type

Under Settings, select 3 columns:
a. Base text: This should be the column with the original text
b. New Text: The column holding the text you want to compare with the base one
c. Unique Identifier: A column containing an ID or any identifier for the row.


That's it, your report is ready to work.
This is the first version of a simple solution. Hope to publish new versions with any possible improvements soon.
