OBJECT Page 1071 MS - PayPal Standard Template
{
  OBJECT-PROPERTIES
  {
    Date=;
    Time=;
    Version List=;
  }
  PROPERTIES
  {
    CaptionML=ENU=PayPal Payments Standard Template;
    SourceTable=Table1071;
    PageType=Card;
    OnOpenPage=VAR
                 TempMSPayPalStandardTemplate@1001 : TEMPORARY Record 1071;
                 MSPayPalStandardMgt@1000 : Codeunit 1070;
               BEGIN
                 IF NOT GET THEN BEGIN
                   MSPayPalStandardMgt.GetTemplate(TempMSPayPalStandardTemplate);
                   TRANSFERFIELDS(TempMSPayPalStandardTemplate);
                   INSERT;
                 END;
               END;

    OnAfterGetCurrRecord=BEGIN
                           LogoURL := GetLogoURL;
                           TargetURL := GetTargetURL;
                         END;

    ActionList=ACTIONS
    {
      { 9       ;    ;ActionContainer;
                      ActionContainerType=ActionItems }
      { 10      ;1   ;Action    ;
                      Name=ResetToDefault;
                      CaptionML=ENU=Reset To Default;
                      ToolTipML=ENU=Resets values to default.;
                      ApplicationArea=#Basic,#Suite;
                      Promoted=Yes;
                      PromotedIsBig=Yes;
                      Image=Restore;
                      PromotedCategory=Process;
                      OnAction=VAR
                                 MSPayPalStandardMgt@1000 : Codeunit 1070;
                               BEGIN
                                 MSPayPalStandardMgt.TemplateAssignDefaultValues(Rec);
                                 MESSAGE(SetToDefaultMsg);
                               END;
                                }
    }
  }
  CONTROLS
  {
    { 1   ;0   ;Container ;
                ContainerType=ContentArea }

    { 2   ;1   ;Group     ;
                Name=General;
                CaptionML=ENU=General;
                GroupType=Group }

    { 3   ;2   ;Field     ;
                ToolTipML=ENU=Specifies the default name for the PayPal payment service.;
                ApplicationArea=#Basic,#Suite;
                SourceExpr=Name }

    { 4   ;2   ;Field     ;
                ToolTipML=ENU=Specifies the default description for the PayPal payment service.;
                ApplicationArea=#Basic,#Suite;
                SourceExpr=Description }

    { 5   ;2   ;Field     ;
                ToolTipML=ENU=Specifies the default logo for the PayPal payment service.;
                ApplicationArea=#Basic,#Suite;
                SourceExpr=Logo }

    { 6   ;2   ;Field     ;
                Name=TargetURL;
                CaptionML=ENU=Target URL;
                ToolTipML=ENU=Specifies the default target URL that will be used for the PayPal payment services.;
                ApplicationArea=#Basic,#Suite;
                SourceExpr=TargetURL;
                MultiLine=Yes;
                OnValidate=VAR
                             MSPayPalStandardMgt@1000 : Codeunit 1070;
                           BEGIN
                             MSPayPalStandardMgt.ValidateChangeTargetURL;
                             SetTargetURL(TargetURL);
                           END;
                            }

    { 7   ;2   ;Field     ;
                ToolTipML=ENU=Specifies the terms of use for the PayPal payment service.;
                ApplicationArea=#Basic,#Suite;
                SourceExpr="Terms of Service" }

    { 8   ;2   ;Field     ;
                Name=LogoURL;
                CaptionML=ENU=Logo URL;
                ToolTipML=ENU=Specifies the URL from which the logo will be refreshed regularly.;
                ApplicationArea=#Basic,#Suite;
                SourceExpr=LogoURL;
                MultiLine=Yes;
                OnValidate=BEGIN
                             SetLogoURL(LogoURL);
                           END;
                            }

    { 11  ;2   ;Field     ;
                ToolTipML=ENU=Specifies the frequency with which the logo is updated.;
                ApplicationArea=#Basic,#Suite;
                SourceExpr="Logo Update Frequency" }

  }
  CODE
  {
    VAR
      LogoURL@1002 : Text;
      TargetURL@1003 : Text;
      SetToDefaultMsg@1000 : TextConst 'ENU=Settings have been set to default.';

    BEGIN
    END.
  }
}

