skills.simulatos

← All skills · docs

bc-setup-wizard-generator

Generates assisted setup wizard pages for Business Central setup tables following Guided Experience patterns. Creates NavigatePage with step-based navigation using visibility controls, banner images (WIP/Finished from Media Repository), temporary source table, footer actions (Back/Next/Finish with InFooterBar), OnOpenPage trigger (InitRecord, EnableControls, LoadSetupBanner), OnQueryClosePage trigger with unsaved changes confirmation, navigation procedures (NextStep with Step Option variable, EnableControls with Case statement, SetControlsStepXX boolean updates), commit procedure using TransferFields pattern, and registration codeunit with OnRegisterAssistedSetup event subscriber for Guided Experience. Integrates with Assisted Setup page and Extension Management. Supports multi-step workflows with welcome step, configuration step(s), and review/finish step. Uses InstructionalText for user guidance. Completes setup via GuidedExperience.CompleteAssistedSetup. Use when creating setup wizards, implementing assisted setup for extensions, adding guided configuration to modules, creating multi-step setup pages, registering with Guided Experience framework, or building NavigatePage wizards with step navigation.

31score
★ 0repo stars
2026-12-01first seen
2026-10-06last push
Open on GitHub Raw SKILL.md javiarmesto/aldc-workshop-starters · 04-brownfield-starter/.github/skills/bc-setup-wizard-generator/SKILL.md
namedescription

What it says

---
name: bc-setup-wizard-generator
description: Generates assisted setup wizard pages for Business Central setup tables following Guided Experience patterns. Creates NavigatePage with step-based navigation using visibility controls, banner images (WIP/Finished from Media Repository), temporary source table, footer actions (Back/Next/Finish with InFooterBar), OnOpenPage trigger (InitRecord, EnableControls, LoadSetupBanner), OnQueryClosePage trigger with unsaved changes confirmation, navigation procedures (NextStep with Step Option variable, EnableControls with Case statement, SetControlsStepXX boolean updates), commit procedure using TransferFields pattern, and registration codeunit with OnRegisterAssistedSetup event subscriber for Guided Experience. Integrates with Assisted Setup page and Extension Management. Supports multi-step workflows with welcome step, configuration step(s), and review/finish step. Uses InstructionalText for user guidance. Completes setup via GuidedExperience.CompleteAssistedSetup. Use when creating setup wizards, implementing assisted setup for extensions, adding guided configuration to modules, creating multi-step setup pages, registering with Guided Experience framework, or building NavigatePage wizards with step navigation.
---

# BC Setup Wizard Generator

Automates creation of assisted setup wizards for Business Central setup tables following Guided Experience patterns.

## Overview

Generates complete NavigatePage setup wizards with step-based navigation, banner images, temporary records, and Guided Experience registration. Follows Microsoft patterns for assisted setup.

**Complete code templates available in**: [references/code-templates.md](references/code-templates.md)

## Prerequisites

- AL workspace with setup table
- Setup table with fields to configure
- (Optional) Setup page for post-wizard access

## Workflow

### Step 1: Gather Information

Collect from user:
- Setup entity name (e.g., "Statistical Account")
- Setup table name and ID
- Prefix (e.g., "BCS")
- Number of configuration steps (typically 2-4)
- Field groups per step
- Documentation URLs (video + written)

### Step 2: Plan Wizard Steps

Define wizard structure:
- **Step 1**: Welcome - InstructionalText explaining wizard purpose
- **Step 2-N**: Configuration - Field groups by logical category
- **Final Step**: Review & Finish - Read-only summary of all settings

Example 3-step wizard:
1. Welcome
2. Attachments Settings (Step 1/2)
3. Number Series Setup (Step 2/2)
4. Review & Finish

### Step 3: Create Wizard Page

Create NavigatePage with:
- `PageType = NavigatePage`
- `SourceTable = [Setup Table]`
- `SourceTableTemporary = true` ← Critical for unsaved workflow

Location: `src/Page/[Prefix][Entity]SetupWizard.Page.al`

See [code-templates.md](references/code-templates.md#wizard-page-structure) for complete structure.

### Step 4: Add Banner Groups

Add two banner groups at top of layout:
- **SetupWIPBanner**: Visible during configuration steps
- **SetupFinishedBanner**: Visible on review/finish step

Uses Media Repository records:
- `AssistedSetup-NoText-400px.png` (WIP)
- `AssistedSetupDone-NoText-400px.png` (Finished)

See [code-templates.md](references/code-templates.md#banner-groups) for complete code.

### Step 5: Add Step Groups

Create one group per step with:
- `Visible` property bound to `StepXVisible` boolean
- InstructionalText for welcome/review steps
- Field groups for configuration

**Critical**: Use step counters in captions for user guidance:
- `Caption = 'Attachments Settings 📎(Step 1/3)'`

See [code-templates.md](references/code-templates.md#step-groups) for complete patterns.

### Step 6: Add Navigation Actions

Add three actions in `area(Processing)`:
- **ActionBack**: `Enabled = BackActionEnabled`, calls `NextStep(true)`
- **ActionNext**: `Enabled = NextActionEnabled`, calls `NextStep(false)`
- **ActionFinish**: `Enabled = FinishActionEnabled`, calls `FinishAction()`

All have `InFooterBar = true` for bottom positioning.

See [code-templates.md](references/code-templates.md#navigation-actions) for complete code.

### Step 7: Add Page Triggers

**OnOpenPage**:
- Initialize temporary record from actual setup table
- Call `EnableControls()` to show first step
- Call `LoadSetupBanner()` to load banner images

**OnQueryClosePage**:
- If `FinishedProcess = true`: Commit changes, mark setup complete
- Else: Confirm user wants to exit without saving

See [code-templates.md](references/code-templates.md#page-triggers) for complete implementation.

### Step 8: Add Navigation Procedures

Create local procedures:

**ResetControls()**: Reset all visibility booleans and action states

**NextStep(Backwards: Boolean)**: Increment/decrement Step option, call EnableControls()

**EnableControls()**: Case statement routing Step to SetControlsStepXX()

**SetControlsStepXX()**: Set visibility for specific step, enable/disable actions

See [code-templates.md](references/code-templates.md#navigation-procedures) for complete code.

### Step 9: Add Data Management Procedures

**InitRecord()**: 
- Check if setup record exists
- Create temporary record from existing or initialize new

**CommitRecord()**:
- Transfer temporary record to actual setup table
- Insert if new, Modify if exists

**FinishAction()**:
- Set `FinishedProcess = true`
- Close page (triggers OnQueryClosePage commit)

See [code-templates.md](references/code-templates.md#data-management-procedures) for complete code.

### Step 10: Add Setup Banner Loading

**LoadSetupBanner()**:
- Get Media Repository records by name
- Get Media Resources by reference
- Set `BannersVisible` if media has value

See [code-templates.md](references/code-templates.md#banner-loading-procedure) for complete code.

### Step 11: Declare Variables

Declare variables:
- Record variables: Setup table, Media Repository (2), Media Resources (2)
- Codeunit: `GuidedExperience`
- Boolean: StepXVisible (per step), BackActionEnabled, NextActionEnabled, FinishAct

Also scanned in docs

Design a process, idea or body of knowledge into an ICM (Interpretable Context Methodology) workspace, where folder structure is the agent architecture, or restructure an existing folder, repo or vaul

docsRinDig/icm-architect★ 24132026-12-01

Run DataForSEO API tasks via the CLI in a shell (docs index, docs search, request). Use when the agent should execute terminal commands with npx dataforseo-mcp-server.

docsdataforseo/mcp-server-typescript★ 2622026-12-01

专业六爻纳甲筮法排盘与解卦。自动起卦排盘,十步完整流程(第零步排盘→审题取用神→判定旺衰→追踪动变→伏神分析→世应关系→六神兽取象→应期推断→综合断语→智能体审查→HTML报告)。 使用场景:六爻占卜、金钱卦、纳甲筮法、周易预测、起卦解卦。

docsSeanding1998/liuyao-frv★ 752026-12-01

恋爱军师与情绪支持 skill。用于心动、暧昧、追求、聊天记录或截图分析、约会、关系确认、多人选择、冲突、冷淡、投入失衡、分手、复合、出轨、婚姻或家庭问题;也用于分析关系信号、设计主动推进或退出策略、润色可直接发送的话术,以及把冷读、自然流、Blueprint、Mystery 等经典社交体系转译成真实、互惠、可退出的沟通能力。支持分析ChatLab已有数据和经同意可撤销的长期关系档案,不负责导出聊

docsshengjidaguai-china/goutoujunshi-chat★ 7152026-12-01