Announcements
My text of caption is very long. I want the caption of field can have break line or it can show long text.
I tried many ways but not succeeded:
It still showed a part of the text.
layout
{
addbefore(General)
{
group(Note)
{
Caption = 'Note';
// Visible = bAllowReleasePO;
ShowCaption = false;
grid(Grid1)
{
field(Notify; Rec.Notify)
{
ApplicationArea = all;
ToolTip = 'AAA - Only for showing message';
CaptionClass = Format(tNotification);
ColumnSpan = 3;
Editable = false;
}
}
}
}
}
actions
{
modify(Release)
{
Enabled = bAllowReleasePO;
}
modify(Reopen)
{
Enabled = bAllowReOpenPO;
}
}
trigger OnOpenPage()
var
lRec_UserSetup: Record "User Setup";
begin
// CurrPage.Editable(false);
tNotification := 'You can\ \n 11111111111111111111111111111111111111' + FORMAT(10) + FORMAT(13) + '11111111111111111111111 1111111111111111111 1111111111111111111 11111111111';
if lRec_UserSetup.get(UserId) then;
if lRec_UserSetup."AAA Allow Release PO" then begin
bAllowReleasePO := true;
tNotification := tNotification + ' Release';
end else begin
bAllowReleasePO := false;
tNotification := tNotification + ' NOT Release';
end;
if lRec_UserSetup."AAA Allow Reopen PO" then begin
bAllowReOpenPO := true;
tNotification := tNotification + '; can ReOpen';
end else begin
bAllowReOpenPO := false;
tNotification := tNotification + '; can NOT ReOpen';
end;
end;
var
bAllowReleasePO: Boolean;
bAllowReOpenPO: Boolean;
tNotification: Text;
ApprovalEntry: Record "Approval Entry";
ApproveTitle: Text[250];
Entryno: Integer;
Entrynostr: Text[250];
How to insert break line to caption or set the caption length to maximum of a group ?
Hi Haider,
I misunderstood you.
When I used Label instead of Field. It worked.
Thank you so much.
Hi Peter,
I have replicated example that is similar to your need.
pageextension 50100 MyExtension extends "Customer Card" { layout { addafter(General) { group(LabelTest) { ShowCaption = false; Label(LabelVal) { ApplicationArea = All; MultiLine = true; CaptionClass = Format(tNotification); } field("Global Dimension 1 Filter"; Rec."Global Dimension 1 Filter") { ApplicationArea = All; Caption = ''; } } } } trigger OnOpenPage() begin tNotification := 'You can\ \n 11111111111111111111111111111111111111' FORMAT(10) FORMAT(13) '11111111111111111111111 1111111111111111111 1111111111111111111 11111111111'; end; var tNotification: Text; }
And Result
Thanks Haider.
I tried to add as your instruction but it does not work
MultiLine = true;
It seems working for inside Text Field not for it's caption.
Please add MultiLine Property to True in page field.
André Arnaud de Cal...
294,118
Super User 2025 Season 1
Martin Dráb
232,866
Most Valuable Professional
nmaenpaa
101,158
Moderator