Forms
Oracle Forms-style data-entry forms for .NET 10 on Windows: design them in a Visual Studio tool window and run the same definition on WinForms or WPF.
Included in the Data Management subscription
$80 /monthor$800 /year
3 products, and every one added later. Paid in advance, does not renew automatically.
- Category
- Data Management
- Runs on
- .NET 10 on Windows
- Language
- C# 12
- Hosts
- WinForms and WPF
- Engine
- BeepDM
manager.Triggers.RegisterTrigger(new TriggerDefinition(
TriggerType.WhenValidateItem, TriggerScope.Item)
{
TriggerId = "ord.qty.WhenValidateItem",
BlockName = "Ord", ItemName = "Qty", Handler = OnValidateQty,
});
manager.LOV.RegisterLOV("Ord", "Qty", new LOVDefinition
{
LOVName = "QtyLov", DataSourceName = "DemoDb",
EntityName = "orderlines", DisplayField = "Qty", ReturnField = "Id",
});
manager.Validation.RegisterRule(new ValidationRule
{
RuleName = "Qty_Range", BlockName = "Ord", ItemName = "Qty",
ValidationType = ValidationType.Range,
ErrorMessage = "Quantity must be between 0 and 100.",
IsEnabled = true, MinValue = 0, /* MaxValue = 100 */
});
manager.CreateMasterDetailRelation("Ord", "OrdLine", "Id", "OrderId");What it is
Forms brings Oracle Forms concepts to .NET 10 on Windows: blocks, items, triggers, LOVs, validations, master-detail relations and menus. Its Visual Studio extension, the Beep Data Manager object navigator, authors forms and generates block registrations into the form's designer file. The WinForms host and the WPF host render the same definition and forward navigation, query-by-example, CRUD and menu actions to the Data Management Engine's FormsManager, which owns all form behavior. Example WinForms and WPF applications backed by SQLite are included.
For .NET developers building data-driven applications.
What it does
Form behavior in the engine
- Blocks, items, triggers, LOVs, validations, master-detail relations and menus, all owned by BeepDM
- Every behavior is a registration against IUnitofWorksManager
- The UI forwards navigation, query-by-example, CRUD and menu clicks to the engine
- CALL_FORM opens another form modally and passes parameters
- CREATE_TIMER and WHEN-TIMER-EXPIRED timers
Authoring in Visual Studio
- The Object Navigator, a tree of the form's design-time definition
- A right-click menu per node type, with 22 items on a block row
- A 9-button vertical toolbar: Refresh, Add, Form, Scaffold, View, Find, Favourites, Tools and Cancel
- Oracle Forms-style trigger names mapped to the engine's TriggerType enum
- Registrations written into the form's .Designer.cs or .xaml.cs and read back on the next open
- Enter on a trigger row opens its handler in the form's .cs file
WinForms and WPF runtimes
- WinFormFormHost binds every defined block when FormsManager is assigned
- A failed bind unbinds every block and restores the previous manager
- Any number of WinFormBlockHost controls in one host
- BeepWpfForms shows one active block per host, kept in step with SyncFromManager()
- WPF alert and LOV picker dialogs, with no System.Windows.Forms or System.Drawing reference
Get started
Check out the sibling repositories
The repository does not build alone. Check out BeepDM, Beep.Winform, Beep.WPF and Beep.Shared next to it under The-Tech-Idea, then open Beep.Forms.slnx.
Author the form
Build blocks, triggers, LOVs, validations, master-detail relations and the menu in the Object Navigator. It writes the registrations into the form's designer file.
Host it on WinForms
Drop a WinFormFormHost on the form, add the blocks to its Definition and assign FormsManager. Assigning the manager binds every block.
Generated code C# _formsHost.Definition.Blocks.Add(ordDefinition)Call another form
Assign an IWinFormFormsFactory to the host's FormFactory, then open the called form through the host.
CALL_FORM C# await _formsHost.CallFormAsync("OrderDetail", parameters, FormCallMode.Modal);Run the examples
The WinForms and WPF example apps ship the Order Entry form. Run either one with --selftest to run its self-tests headlessly.
Documentation
- Architecture Five projects, one engine and the platform-independence rule.
- Authoring in the Object Navigator Context menus, the toolbar and how trigger names map to the engine.
- WinForms runtime WinFormFormHost, its bind sequence and multi-block hosting.
- WPF runtime BeepWpfForms, one active block per host and the dialogs.
- End-to-end example The Order Entry form with master-detail, a trigger, an LOV, validation, CALL_FORM and a timer.
- Remote UI limitations What does not cross the IDE's out-of-process UI boundary, and the workaround for each.
- Overview What Beep.Forms is and what it covers.
- Context menus The connection and form context menus in the designer.
- Blocks and items BlockDefinition, its fields and navigation settings, and what DefinitionBlockRegistrar applies.
- Triggers TriggerType groups, TriggerDefinition, TriggerContext, execution order and key triggers.
- Lists of values Define a list of values, attach it to a field, and how the pickers apply the selection.
- Validation ValidationRule types and timing, the fluent builder, form level validation and cross block rules.
- Master detail CreateMasterDetailRelation, delete behavior, coordination and how each host shows detail blocks.
- Navigation and queries Moving between records and blocks, the navigation bar, shortcut keys and query by example.
- Alerts, editors and timers Create and show alerts and editors, run timers, and raise status messages.
- Calling other forms Open another form modally, modelessly or in place, pass parameters and return data.
- Form menus Define a form menu, its item kinds and the built in command names.
- Hosting in WinForms step by step Create the host, blocks and navigation bars, assign the manager and run the first query.
- Hosting in WPF step by step Create providers, the manager, blocks and navigation bars for a WPF form.
- Saving and loading forms There is no separate form file. The IDE writes marked regions into the designer file and reads them back.
- The IDE toolbar and dialogs The six toolbar buttons, their right click menus and the editor dialogs.
- Troubleshooting Real exception and log messages from the engine and hosts, with their causes.
- All Forms documentation The full guide, from the start page.
More in Data Management
Data Management Engine
A plugin-based .NET 8, 9 and 10 data management engine that puts databases, files, APIs and services behind one IDataSource contract, with Unit of Work, ETL, sync and migration built in.
DataSources
Plugins for the Data Management Engine that connect it to databases, files, cloud warehouses, message brokers, vector stores and SaaS APIs.