sample-data-generator
Reactive icon

Sample Data Generator

Stable version 1.0.1 (Compatible with OutSystems 11)
Uploaded
 on 3 Dec (14 hours ago)
 by 
DavidTeamForge
0.0
 (0 ratings)
sample-data-generator

Sample Data Generator

Documentation
1.0.1

🧠 How to Use


🎬 Overview

Sample Data Generator enables developers to quickly create realistic, localized sample data directly within OutSystems.
It’s ideal for testing APIs, populating dashboards, or mocking list screens — all without connecting to any real data source.

You can use it in two flexible ways:

  • 🧩 Visual Builder – Interactive field & type selection.

  • </> JSON Editor – Write your own JSON schema for advanced use cases.


⚙️ Step-by-Step Guide


🧩 Option 1: Visual Builder Mode

  1. Open the Sample Data Generator app.

  2. In the Visual Builder tab:

    • Enter a field name (e.g., Name, Email, City).

    • Select a type (e.g., name.fullName, internet.email, address.city).

    • Set the Row Count (e.g., 100).

  3. Click Generate.
    → The right panel will show the generated JSON.

  4. Use Copy or Export to Excel to download your data file.


</> Option 2: JSON Editor Mode

For developers who prefer manual control, define your fields directly in JSON format.

Example:

{ "fields": [ { "name": "Name", "type": "name.fullName" }, { "name": "Email", "type": "internet.email" }, { "name": "City", "type": "address.city" }, { "name": "Phone", "type": "phone.phoneNumber" } ], "count": 5 }

Then click Generate to produce the corresponding JSON data.


🌐 Locale Selection

At the top-right, use the Locale Dropdown to control the data’s regional format.
This affects:

  • Name order (e.g., “Kim Minjun” vs “Minjun Kim”)

  • Country and city names

  • Phone number format

Available locales:

FlagLanguageCode
🇺🇸Englishen
🇰🇷Koreanko
🇯🇵Japaneseja
🇫🇷Frenchfr
🇩🇪Germande
🇨🇳Chinesezh_CN


⚡ Actions from SampleDataGenerator_Ext Module

Action NameDescriptionInputOutput
GenerateDynamicSampleDataGenerates sample data dynamically based on the provided JSON schema.DefinitionJSON (Text)Result (Record: JSONText, Status, ErrorMessage)
ConvertJsonToExcelConverts JSON to an Excel binary (XLSX) using ClosedXML.JsonText (Text)ExcelBinary (Binary Data)
GetAvailableTypesReturns all available fake data types and descriptions.TypesRecordList
GetAvailableLocalesReturns supported locales with code and display name.LocaleRecordList


🧱 Structures

StructureFieldsDescription
SampleDataResultJSONText, Status, ErrorMessageReturned output from the generator.
TypesTypeName, DescriptionDefines available data generation patterns.
LocaleLocaleName, LocaleCodeProvides locale display name and corresponding language code.



🧩 Example Outputs

Example (Korean locale, 2 rows):

[ { "Name": "한서연", "Email": "seoyeon.han@example.com", "City": "서울특별시", "Country": "South Korea",     "Phone": "010-0000-0000" }, { "Name": "박지훈", "Email": "jihoon.park@example.com", "City": "부산광역시", "Country": "South Korea",     "Phone": "010-0000-0000" } ]


🧱 Technical Details

Libraries Used

  • Bogus – Realistic fake data generation.

  • ClosedXML – Excel generation without COM dependencies.

Developed For

OutSystems 11 Reactive Web Apps (compatible with Platform Server 11.17+)