GL Account edit control in application studio

Has anyone successfully set up the GL Account Editor widget in Application Studio? The buttons and context menu options don’t work. I do see The requested event for erp-gl-account editor was not found. errors in the console, but the documentation seems to indicate that you shouldn’t need to create custom events unless you want to override the default behavior.

So either its bugged, or the documentation is incorrect.. (or the ‘default behavior’ is not working :roll_eyes:)

@GabeFranco Maybe your advanced AI can tell me which fields are Actually™️ required?

Looks like the Epicor OOB Examples are:

Standalone:
Erp.UI.GLBookEntry

      {
        "id": "glaeStandardAccount",
        "parentId": "div-col-5f934",
        "sourceTypeId": "erp-gl-account-editor",
        "model": {
          "id": "glaeStandardAccount",
          "guid": "f2279cdc-3441-4b24-be84-f6e0d09c1116",
          "labelText": "Standard Account",
          "isKeyField": false,
          "epBinding": "GLBook.REAccount",
          "epiLabel": "btnStandardAccount",
          "disabled": false,
          "readonly": false,
          "bindingSegments": "GLBook.RESegValue",
          "coaCodeColumn": "GLBook.COACode",
          "disableValidation": false,
          "disallowSpace": false,
          "externalCompany": false,
          "hideDynamic": false,
          "validateAccountCode": true,
          "doNotRequireDynamic": true,
          "validateDynamicSegments": true,
          "allowPattern": true,
          "patternOptions": "percent",
          "hideSegmentLabels": false,
          "accountSearchBinding": "GLBook.REAccountSearch"
        }

Grid:

      {
        "id": "grdAltList",
        "sourceTypeId": "metafx-panel-card-grid",
        "model": {
          "title": "Alternative Retained Earnings",
          "guid": "5ee60562-8a53-480c-a94a-b07e5361a45b",
          "gridModel": {
            "id": "grdAltList",
            "epBinding": "GLAccountMasks",
            "columns": [
              {
                "field": "GLMaskedAccount",
                "epBinding": "GLAccountMasks.GLMaskedAccount",
                "width": 355,
                "erpEditor": "gl",
                "erpEditorModel": {
                  "epBinding": "GLAccountMasks.GLMaskedAccount",
                  "updateOn": "blur",
                  "coaCodeColumn": "GLAccountMasks.COACode",
                  "accountSearchBinding": "GLAccountMasks.GLMaskedAccountSearch",
                  "hideDynamic": false,
                  "validateSegmentValues": true,
                  "doNotRequireDynamic": false,
                  "validateDynamicSegments": true,
                  "bindingSegments": "GLAccountMasks.SegValue",
                  "allowPattern": true,
                  "patternOptions": "underscore",
                  "validateAccountCode": true
                },
                "editable": true
              },
              {
                "field": "TgtAccount",
                "width": 355,
                "erpEditor": "gl",
                "erpEditorModel": {
                  "epBinding": "GLAccountMasks.TgtAccount",
                  "updateOn": "blur",
                  "coaCodeColumn": "GLAccountMasks.COACode",
                  "accountSearchBinding": "GLAccountMasks.TgtAccountSearch",
                  "hideDynamic": false,
                  "validateAccountCode": true,
                  "validateSegmentValues": true,
                  "doNotRequireDynamic": false,
                  "validateDynamicSegments": true,
                  "bindingSegments": "GLAccountMasks.TgtSegValue",
                  "allowPattern": true,
                  "patternOptions": "percent"
                },
                "editable": true
              }
            ],
            "editable": true,
            "disablePasteNew": true,
            "disablePasteUpdate": true
          },
          "viewOptions": [
            {
              "description": "All",
              "isDefault": true
            }
          ],
          "id": "grdAltList",
          "disablePanelCardStyle": false,
          "fullScreenButtonVisible": false,
          "expanded": false
        },
        "parentId": "div-col-5f934"
      }

G/L MultiBook:

        "id": "grdLineGLAnalysis",
        "sourceTypeId": "metafx-panel-card-grid",
        "model": {
          "guid": "0543045f-5367-4854-85b2-c32c984ae07a",
          "title": "G/L Distribution",
          "autoFillContainer": false,
          "invalidated": false,
          "expanded": true,
          "disabled": false,
          "readonly": false,
          "gridModel": {
            "id": "grdLineGLAnalysis",
            "collapseGroups": true,
            "autoLoadColumns": false,
            "epBinding": "APInvExp",
            "scrollable": "scrollable",
            "rowHeight": 0,
            "editOptions": {
              "editMode": 0,
              "updateOnChange": true
            },
            "editable": true,
            "selectable": true,
            "columns": [
              {
                "field": "ScrExpAmt"
              },
              {
                "field": "ExpDispGLAcct",
                "title": "G/L Account",
                "epBinding": "APInvExpTGLC.GLAccount",
                "width": 355,
                "erpEditor": "gl-multibook",
                "erpEditorModel": {
                  "updateOn": "blur",
                  "accountEditor": {
                    "bookSelectBinding": "APInvExpTGLC.Book",
                    "accountSearchBinding": "APInvExpTGLC.Search",
                    "coaCodeColumn": "APInvExpTGLC.COACode",
                    "bindingSegments": "APInvExpTGLC.SegValue",
                    "bindingDescription": "APInvExp.GLAccountDesc",
                    "bindingAcctDisp": "APInvExp.ExpDispGLAcct",
                    "showBookSelect": true,
                    "validateAccountCode": true,
                    "showAccountSearch": true,
                    "allowPattern": true,
                    "patternOptions": "all"
                  }
                },
                "id": "columnExpDispGLAcct"
              },
              {
                "field": "GLAccountDesc"
              },
              {
                "field": "MultiCompany"
              },
              {
                "field": "NonDedTax"
              },
              {
                "field": "ExtCompanyID",
                "erpEditor": "combo",
                "erpEditorModel": {
                  "appDesignerComboType": "../../shared/combo/ExtCompany.ExtCompanyCombo/default/combo.jsonc#/combo",
                  "appDesignerComboOverride": true,
                  "hiddenColumnsAppend": [
                    "ExtSystemID"
                  ],
                  "filtersAppend": [
                    "ExtSystemID = 'MULTI'"
                  ],
                  "$ref": "../../shared/combo/ExtCompany.ExtCompanyCombo/default/combo.jsonc#/combo"
                }
              },
              {
                "field": "ExpGlbDispGLAcct",
                "title": "External G/L Account",
                "width": 355,
                "erpEditor": "gl-multibook",
                "erpEditorModel": {
                  "epBinding": "GlbAPIETGLC.GLAccount",
                  "updateOn": "blur",
                  "accountEditor": {
                    "bookSelectBinding": "GlbAPIETGLC.Book",
                    "accountSearchBinding": "GlbAPIETGLC.Search",
                    "segmentSearchBinding": "GlbAPIETGLC.SegmentSearch",
                    "coaCodeColumn": "GlbAPIETGLC.COACode",
                    "bindingSegments": "GlbAPIETGLC.SegValue",
                    "bindingDescription": "APInvExp.ExtGLAccountDesc",
                    "bindingAcctDisp": "APInvExp.ExpGlbDispGLAcct",
                    "bindingExternalCompanyId": "GlbAPIETGLC.ExtCompanyID",
                    "showBookSelect": true,
                    "validateAccountCode": true,
                    "showAccountSearch": true,
                    "allowPattern": true,
                    "patternOptions": "space"
                  }
                }
              },
              {
                "field": "ExtGLAccountDesc"
              }
            ],
            "guid": "0543045f-5367-4854-85b2-c32c984ae07a"
          },
          "viewOptions": [
            {
              "description": "All",
              "isDefault": true
            }
          ],
          "actionData": [
            {
              "id": "btnImplementAllocation",
              "description": "Allocation",
              "epBinding": "APInvDtl.AllocationBtn",
              "showInToolBar": true
            }
          ],
          "enableActionButton": true,
          "id": "grdLineGLAnalysis"
        },
        "parentId": "PanelCard-8647f#bodyComponents"
      }