table 50100 "Charge Reason"
{
DataClassification = ToBeClassified;
fields
{
field(1; "ID"; Code[20])
{
DataClassification = CustomerContent;
Caption = 'ID';
NotBlank = true;
}
field(2; "Charge Reason"; Text[100])
{
DataClassification = CustomerContent;
Caption = 'Charge Reason';
}
field(3; "Charge"; Decimal)
{
DataClassification = CustomerContent;
Caption = 'Charge';
}
}
keys
{
key(PK; "ID")
{
Clustered = true;
}
}
}
page 50100 "Charge Reason List"
{
PageType = List;
SourceTable = "Charge Reason";
ApplicationArea = All;
UsageCategory = Lists;
Caption = 'Charge Reason List';
layout
{
area(content)
{
repeater(Group)
{
field("ID"; Rec."ID")
{
ApplicationArea = All;
}
field("Charge Reason"; Rec."Charge Reason")
{
ApplicationArea = All;
}
field("Charge"; Rec."Charge")
{
ApplicationArea = All;
}
}
}
}
actions
{
area(processing)
{
action(New)
{
ApplicationArea = All;
Caption = 'New';
Image = New;
RunObject = page "Charge Reason Card";
RunPageMode = Create;
}
}
}
}
page 50101 "Charge Reason Card"
{
PageType = Card;
SourceTable = "Charge Reason";
//ApplicationArea = All;
Caption = 'Charge Reason Card';
layout
{
area(content)
{
group("General")
{
field("ID"; Rec."ID") { ApplicationArea = All; }
field("Charge Reason"; Rec."Charge Reason") { ApplicationArea = All; }
field("Charge"; Rec."Charge") { ApplicationArea = All; }
}
}
}
}
permissionset 50100 "Charge Permissions"
{
Assignable = true;
Caption = 'Charge Reason Permissions';
Permissions =
tabledata "Charge Reason" = RIMD, // Read, Insert, Modify, Delete
table "Charge Reason" = X, // Execute permission for table triggers
page "Charge Reason List" = X,
page "Charge Reason Card" = X;
}
and then from user i assign this permission set and then when i open card page, list page, table from business central it gives error
1. Sorry, the current permissions prevented the action. (Page Charge Reason Card Execute: ALProject1)
Page View - Charge Reason Card has to close.
2.Sorry, the current permissions prevented the action. (Page Charge Reason List Execute: ALProject1)
Page Charge Reason List has to close.
3.Sorry, the current permissions prevented the action. (TableData Charge Reason Read: )