Skip to content

ALTER PAGE can't target datagrid columns #113

@ako

Description

@ako

Description

INSERT AFTER / DROP WIDGET on datagrid column names fails with "widget not found" — columns inside a DATAGRID aren't addressable as widgets. The only workaround is to CREATE OR REPLACE the entire page to add or remove a column.

Example

-- This fails: columns aren't addressable
ALTER PAGE MyModule.ProductList
  INSERT AFTER dgProducts.Description {
    COLUMN Edit (Attribute: ID, OnClick: SHOW_PAGE MyModule.Product_Edit)
  };

Workaround

Recreate the entire page with CREATE OR MODIFY PAGE including the new column.

Suggested Fix

Make datagrid columns addressable in ALTER PAGE, e.g.:

  • ALTER DATAGRID dgProducts INSERT COLUMN ...
  • Or make column names addressable as dgProducts.ColumnName

Impact

Medium — forces full page rewrites for single-column changes in grids.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions