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

Save $160

3 products, and every one added later. Paid in advance, does not renew automatically.

Runs on
.NET 10 on Windows
Language
C# 12
Hosts
WinForms and WPF
Engine
BeepDM
Register a trigger, an LOV, a rule and a relation C#
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

  1. 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.

  2. 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.

  3. 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)
  4. 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);
  5. 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

Start with Forms

SubscribeData Management: $80/mo or $800/yr, save $160 a year
$ reconnecting --to server connection lost — attempting to rejoin…