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.
Description
INSERT AFTER/DROP WIDGETon datagrid column names fails with "widget not found" — columns inside a DATAGRID aren't addressable as widgets. The only workaround is toCREATE OR REPLACEthe entire page to add or remove a column.Example
Workaround
Recreate the entire page with
CREATE OR MODIFY PAGEincluding the new column.Suggested Fix
Make datagrid columns addressable in ALTER PAGE, e.g.:
ALTER DATAGRID dgProducts INSERT COLUMN ...dgProducts.ColumnNameImpact
Medium — forces full page rewrites for single-column changes in grids.