I try to add a field in user table with table extension and add it in user card using Page extension.
here my code.
tableextension 50107 UserExt extends User { fields { field(50100; IsAuthorized; Boolean) { DataClassification = CustomerContent; Caption = 'Is Authorized'; } } }
pageextension 50107 UserCardExt extends "User Card" { layout { // Add changes to page layout here addafter("User Name") { field(IsAuthorized; IsAuthorized) { ApplicationArea = All; Caption = 'Is Authorized'; } } } }
when I open users page, I hit error "The supplied field number '50100' cannot be found in the 'User' table."
Please Help.
thanks for your reply
Hi , user table is a system table and currently not supported to extend field from this table. Based on replies from microsoft , they are working to prevent this during compilation stage , so that you will get error during compile if trying to extend user table .
Details :