OBJECT Page 1074 MS - PayPal Standard Settings
{
  OBJECT-PROPERTIES
  {
    Date=;
    Time=;
    Version List=;
  }
  PROPERTIES
  {
    CaptionML=ENU=PayPal;
    SourceTable=Table1070;
    PageType=Card;
    OnOpenPage=VAR
                 TempPaymentServiceSetup@1001 : TEMPORARY Record 1060;
                 MSPayPalStandardMgt@1000 : Codeunit 1070;
               BEGIN
                 IF ISEMPTY THEN BEGIN
                   MSPayPalStandardMgt.RegisterPayPalStandardTemplate(TempPaymentServiceSetup);

                   MSPayPalStandardMgt.GetTemplate(MSPayPalStandardTemplate);
                   MSPayPalStandardTemplate.RefreshLogoIfNeeded;
                   TRANSFERFIELDS(MSPayPalStandardTemplate,FALSE);
                   INSERT(TRUE);

                   COMMIT;
                 END;
               END;

    OnQueryClosePage=BEGIN
                       HideAllDialogs;
                       IF "Account ID" <> '' THEN BEGIN
                         VALIDATE(Name,"Account ID");
                         VALIDATE(Enabled,TRUE);
                         VALIDATE("Always Include on Documents",TRUE);
                         MODIFY(TRUE);
                       END ELSE BEGIN
                         VALIDATE(Enabled,FALSE);
                         MODIFY(TRUE);
                       END;
                     END;

    OnAfterGetCurrRecord=BEGIN
                           AccountID := "Account ID";
                         END;

  }
  CONTROLS
  {
    { 1   ;0   ;Container ;
                ContainerType=ContentArea }

    { 2   ;1   ;Group     ;
                CaptionML=ENU=PayPal Information;
                GroupType=Group }

    { 3   ;2   ;Field     ;
                CaptionML=ENU=PayPal Email;
                ApplicationArea=#Basic,#Suite;
                SourceExpr=AccountID;
                OnValidate=BEGIN
                             HideAllDialogs;
                             VALIDATE("Account ID",AccountID);
                           END;
                            }

    { 4   ;2   ;Field     ;
                ApplicationArea=#Basic,#Suite;
                SourceExpr="Terms of Service";
                Editable=FALSE;
                OnDrillDown=BEGIN
                              HYPERLINK("Terms of Service");
                            END;
                             }

  }
  CODE
  {
    VAR
      MSPayPalStandardTemplate@1000 : Record 1071;
      AccountID@1001 : Text[250];

    BEGIN
    END.
  }
}

