filediff-tool
Reactive icon

FileDiff Tool

Stable version 1.0.0 (Compatible with OutSystems 11)
Uploaded
 on 25 Mar (8 hours ago)
 by 
Eone Technologies Pvt Ltd
0.0
 (0 ratings)
filediff-tool

FileDiff Tool

Documentation
1.0.0

Overview

The File Diff Tool is a reusable OutSystems component that compares two text inputs or files and highlights the differences between them. It provides a clear visualization of added, removed, and unchanged content using a structured side-by-side or line-by-line format.

This component is designed to simplify comparison tasks in scenarios such as document validation, code review, audit tracking, and data verification.


Features

  • Compare two text inputs or uploaded files

  • Line-by-line difference detection

  • Side-by-side comparison view

  • Highlight changes (added, removed, unchanged)

  • Supports large text inputs

  • Export comparison results (optional extension)

  • Easily reusable across applications

How It Works

  1. Input text or files are provided by the user

  2. Files are converted from binary to text format

  3. Text inputs are passed to a JavaScript diff engine

  4. Differences are computed using a line-based algorithm

  5. Results are returned as JSON

  6. JSON is deserialized into a DiffLine list

  7. The UI renders results with visual highlights


Usage Steps

  1. Upload or input two text sources

  2. Call the CompareText or CompareFiles action

  3. Receive JSON diff result

  4. Deserialize into DiffLine list

  5. Bind the list to a Table or List widget

  6. Apply conditional styling for visualization


UI Integration

Bind the DiffLine list to a table or list widget:

  • Left column → LeftText

  • Right column → RightText

  • Status column → Type

Dependencies

  • JavaScript library: diff-match-patch (browser version)

  • OutSystems JSON utilities



Use Cases

  • Document comparison

  • Code review tools

  • Data validation

  • Audit and compliance tracking

  • Fraud detection scenarios



Conclusion

The File Diff Tool provides a reliable and reusable way to detect and visualize differences between text or files, improving accuracy and efficiency in comparison-heavy workflows.