Page 1061 Select Payment Service
src/Layers/W1/BaseApp/Bank/Setup/SelectPaymentService.Page.al94 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.Bank.Setup;/// <summary>/// Dialog page for selecting which payment services to include on sales documents./// Allows users to choose which payment options are made available to customers./// </summary>/// <remarks>/// Source Table: Payment Service Setup (1060). Provides multi-selection interface for payment services./// Used when configuring payment options for specific documents or general settings./// </remarks>page 1061 "Select Payment Service"{ Caption = 'Select Payment Service'; DataCaptionExpression = ''; DeleteAllowed = false; InsertAllowed = false; PageType = StandardDialog; SourceTable = "Payment Service Setup"; layout { area(content) { repeater(Control3) { ShowCaption = false; field(Available; Rec.Available) { ApplicationArea = Basic, Suite; trigger OnValidate() begin if not Rec.Available then DeselectedValue := true; end; } field(Name; Rec.Name) { ApplicationArea = Basic, Suite; Editable = false; } field(Description; Rec.Description) { ApplicationArea = Basic, Suite; Editable = false; } } field(SetupPaymentServices; SetupPaymentServicesLbl) { ApplicationArea = Basic, Suite; Caption = 'SetupPaymentServices'; Editable = false; ShowCaption = false; trigger OnDrillDown() begin CurrPage.Close(); PAGE.Run(PAGE::"Payment Services"); end; } } } actions { } trigger OnQueryClosePage(CloseAction: Action): Boolean var TempPaymentServiceSetup: Record "Payment Service Setup" temporary; begin if CloseAction in [ACTION::Cancel, ACTION::LookupCancel] then exit; if DeselectedValue then exit(true); TempPaymentServiceSetup.Copy(Rec, true); TempPaymentServiceSetup.SetRange(Available, true); if not TempPaymentServiceSetup.FindFirst() then exit(Confirm(NoPaymentServicesSelectedQst)); end; var DeselectedValue: Boolean; NoPaymentServicesSelectedQst: Label 'To enable the payment service for the document, you must select the Available check box.\\Are you sure you want to exit?'; SetupPaymentServicesLbl: Label 'Set Up Payment Services';}