Is there any way within AL or otherwise to adjust the size of a display box, for example, on the Purchase Invoice screen, I want to adjust the size of the Work Description field on the Sales Invoices screen?
Is there any way within AL or otherwise to adjust the size of a display box, for example, on the Purchase Invoice screen, I want to adjust the size of the Work Description field on the Sales Invoices screen?
Looks like Zhu has a good solution. One thing I would add... I have found that by moving/grouping other fields in the same area, you can usually cause a blob field to show more lines.
Hi, I just tested it briefly. If you create a Factbox to display Work Description, it can display 5 lines. . . . .
Update: As long as Editable = false and ShowCaption = false, five lines can be displayed.
My test code:
pageextension 50111 ZYSalesOrderExt extends "Sales Order" { layout { addafter(Status) { field("Work Description 2"; WorkDescription) { Editable = false; ShowCaption = false; ApplicationArea = All; MultiLine = true; } } addfirst(factboxes) { part(SalesOrderWorkdescription; "Sales Order Work description") { ApplicationArea = All; SubPageLink = "Document Type" = FIELD("Document Type"), "No." = field("No."); } } } var WorkDescription: Text; trigger OnAfterGetRecord() begin WorkDescription := Rec.GetWorkDescription(); end; } page 50111 "Sales Order Work description" { Caption = 'Sales Order Work description'; PageType = CardPart; SourceTable = "Sales Header"; InsertAllowed = false; Editable = false; DeleteAllowed = false; layout { area(Content) { field("Work Description"; WorkDescription) { Caption = 'Work Description'; ShowCaption = false; ApplicationArea = All; MultiLine = true; } } } var WorkDescription: Text; trigger OnAfterGetRecord() begin WorkDescription := Rec.GetWorkDescription(); end; }
Hope this helps as well.
Thanks.
ZHU
Unfortunately as far as I know, this cannot be adjusted by default.
In addition to the Java script that Bilal mentioned, you can also try WebPageViewer Add-in.
More details: https://yzhums.com/16061/
Hope this helps as well.
Thanks.
ZHU
Thank you, we are trying to increase the size of the field. Right now it shows 3 lines, we would like to change it to 6 lines.
Hi,
Yes there is limited options for adjustments within AL (more options using Java script). Can you elaborate what adjustment exactly you need for Work description.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,214 Most Valuable Professional
nmaenpaa 101,156