Skip to content

[Bug]: RecordSelection should not display Media Fields #1198

Open
@pri-kise

Description

@pri-kise

Describe the issue

Currently the RecordSelection Codeunit uses the page summary to select the fields for the record selection.

This results in non-helping media fields being displayed in a list view.

Expected behavior

Media should be ignored.

Steps to reproduce

                field("Record SystemId"; RecordSystemId)
                {
                    Caption = 'Record SystemId';
                    Editable = false;
                    ToolTip = 'Specifies the SystemId of the record.';
                    trigger OnAssistEdit()
                    var
                        TempRecordSelectionBuffer: Record "Record Selection Buffer" temporary;
                        RecordSelection: Codeunit "Record Selection";
                        RecordSystemId : Guid;
                    begin
                        CheckForTableId(true);
                        if RecordSelection.Open(Database::167, 2147483647, TempRecordSelectionBuffer) then
                            RecordSystemId := TempRecordSelectionBuffer."Record System Id";
                    end;
                }

image

Additional context

Furthermore it would be usefult to replace fields for custom apps.

I will provide a fix for a bug

  • I will provide a fix for a bug

Metadata

Metadata

Assignees

Labels

ApprovedThe issue is approvedIntegrationGitHub request for Integration area

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions