Page 9174 All Objects with Caption
- App
- Base Application
- Namespace
- System.Reflection
- Versions
- 17-28
- Source table
- 2000000058
Versions171819202122232425262728
Source29
Source in 29
src/Layers/W1/BaseApp/Modules/System/ObjectSelection/AllObjectswithCaption.Page.al113 lines, Copyright (c) Microsoft Corporation. MIT
namespace System.Reflection;
using System.Apps;
page 9174 "All Objects with Caption"
{
ApplicationArea = Basic, Suite;
Caption = 'All Objects with Caption';
Editable = false;
PageType = List;
SourceTable = AllObjWithCaption;
UsageCategory = Tasks;
layout
{
area(content)
{
repeater(Control1102601000)
{
ShowCaption = false;
field("Object Type"; Rec."Object Type")
{
ApplicationArea = All;
Caption = 'Object Type';
ToolTip = 'Specifies the type of the object.';
Visible = VisibleObjType;
}
field("Object ID"; Rec."Object ID")
{
ApplicationArea = All;
Caption = 'Object ID';
ToolTip = 'Specifies the ID of the object.';
}
field("Object Name"; Rec."Object Name")
{
ApplicationArea = All;
Caption = 'Object Name';
ToolTip = 'Specifies the name of the object.';
}
field("Object Caption"; Rec."Object Caption")
{
ApplicationArea = All;
Caption = 'Object Caption';
ToolTip = 'Specifies the caption of the object, that is, the name that will be displayed in the user interface.';
}
field("Object Subtype"; Rec."Object Subtype")
{
ApplicationArea = All;
Caption = 'Object Subtype';
ToolTip = 'Specifies the subtype of the object.';
Visible = VisibleObjType;
}
field("App Name"; AppName)
{
ApplicationArea = All;
Caption = 'App Name';
ToolTip = 'Specifies the App (extension) that provides this object.';
Visible = VisibleAppName;
}
}
}
}
actions
{
}
trigger OnInit()
var
PublishedApplication: Record "Published Application";
begin
VisibleObjType := true;
VisibleAppName := PublishedApplication.ReadPermission();
end;
trigger OnAfterGetRecord()
var
PublishedApplication: Record "Published Application";
begin
if PublishedApplication.ReadPermission() then
if PublishedApplication.Get(Rec."App Runtime Package ID") then
AppName := PublishedApplication.Name;
end;
var
VisibleObjType: Boolean;
VisibleAppName: Boolean;
AppName: Text;
procedure IsObjectTypeVisible(Visible: Boolean)
begin
VisibleObjType := Visible;
end;
procedure OnLookupObjectId(ObjectType: option; var ObjectIDText: Text): Boolean
var
AllObjWithCaption: Record AllObjWithCaption;
ObjectID: Integer;
begin
AllObjWithCaption.SetRange("Object Type", ObjectType);
AllObjWithCaption."Object Type" := ObjectType;
if Evaluate(ObjectID, ObjectIDText) then
AllObjWithCaption."Object ID" := ObjectID;
if Page.RunModal(Page::"All Objects with Caption", AllObjWithCaption) <> ACTION::LookupOK then
exit(false);
ObjectIDText := Format(AllObjWithCaption."Object ID");
exit(true);
end;
}