Application

Form Data Entry

Methods for filling desktop application inputs from data sources - overwriting, appending, or inserting from strings, files, databases, or grids.

Methods for filling desktop application inputs from data sources - overwriting, appending, or inserting from strings, files, databases, or grids.

FillInFrom overwrites the current value of the matched input. AppendFrom adds data to the end of the current value. InsertFrom places data at the beginning. All three accept a string, GPALFile, GPALDatabase, or IGPALGrid<string>. When the data source is a grid or database, GPAL iterates through rows and applies each row to the matched input elements. Use CallAfterFillIn to execute custom logic after each row is processed.

Examples

GPAL Fluent: High-level fluent C# API

//When using a file or grid source, GPAL processes one row per cycle. CallAfterFillIn fires after each row is filled in, giving you a hook to save, submit, or validate before the next row begins.

// Fill a form from a CSV file GPAL.Application .Open("C:\DataEntry\app.exe") .WithSelector(GPAL.Selector.WithAutomationID("txtName")) .FillInFrom("customers.csv") .CallAfterFillIn((app, grid) => { app.WithSelector(GPAL.Selector.WithAutomationID("btnSave")) .LeftClick(); return 0; });