Page 5144 Saved Segment Criteria Subform

Base Application, Microsoft.CRM.Segment

src/Layers/W1/BaseApp/CRM/Segment/SavedSegmentCriteriaSubform.Page.al79 lines, Copyright (c) Microsoft Corporation. MIT

// ------------------------------------------------------------------------------------------------// Copyright (c) Microsoft Corporation. All rights reserved.// Licensed under the MIT License. See License.txt in the project root for license information.// ------------------------------------------------------------------------------------------------namespace Microsoft.CRM.Segment;page 5144 "Saved Segment Criteria Subform"{    Caption = 'Saved Segment Criteria Subform';    Editable = false;    LinksAllowed = false;    PageType = ListPart;    SourceTable = "Saved Segment Criteria Line";    layout    {        area(content)        {            repeater(Control1)            {                IndentationColumn = ActionTableIndent;                IndentationControls = ActionTable;                ShowCaption = false;                field("Line No."; Rec."Line No.")                {                    ApplicationArea = Basic, Suite;                    Visible = false;                }                field(Type; Rec.Type)                {                    ApplicationArea = Basic, Suite;                    Style = Strong;                    StyleExpr = StyleIsStrong;                    Visible = false;                }                field(ActionTable; Rec.ActionTable())                {                    ApplicationArea = RelationshipMgmt;                    Caption = 'Action/Table';                    Style = Strong;                    StyleExpr = StyleIsStrong;                    ToolTip = 'Specifies the actions that you have performed (adding or removing contacts) in order to define the segment criteria. The related table is shown under each action.';                }                field("Filter"; GetSegmentCriteriaFilter())                {                    ApplicationArea = RelationshipMgmt;                    Caption = 'Filter';                    ToolTip = 'Specifies which segment criteria are shown.';                }            }        }    }    actions    {    }    trigger OnAfterGetRecord()    begin        StyleIsStrong := Rec.Type = Rec.Type::Action;        if Rec.Type <> Rec.Type::Action then            ActionTableIndent := 1        else            ActionTableIndent := 0;    end;    var        StyleIsStrong: Boolean;        ActionTableIndent: Integer;    local procedure GetSegmentCriteriaFilter(): Text    var        SegCriteriaManagement: Codeunit SegCriteriaManagement;    begin        exit(SegCriteriaManagement.GetSegCriteriaFilters(Rec."Table No.", Rec."Table View"));    end;}