需要在约会中向 Acumatica 移动应用程序添加自定义操作

问题描述 投票:0回答:0

我已经完成了 T400 和 T410 培训,但我无法在我自己的应用程序中使用它。

我有一个已添加到 FS300200 的自定义操作。这将调用外部 Web 应用程序以允许填写表格,该表格最终将生成附加到约会的 PDF。

它在网络 ERP 中运行良好。但我不知道如何让这个新按钮(动作)在移动应用程序中工作。

这是我的自定义 DLL 中的操作定义(略有删减):

    #region XForm Button
    public PXAction<FSAppointment> asgExtForms;
    [PXUIField(DisplayName = "DoorForm", MapEnableRights = PXCacheRights.Select)]
    [PXButton]
    public virtual void ASGExtForms()
    {
        var allCaches = Base.Caches.Caches;

        /************************************************
         * Code builds full url based on what is found in cache
         ************************************************/
        string fullURL = "SOME VALUE BASED ON CACHE";  

        // Everything is gathered up. Time to send it
        var redirectException =
          new PXRedirectToUrlException(fullURL,
              PXBaseRedirectException.WindowMode.New, "Acumatica.com");
        throw redirectException;  // call URL
        
    }
    #endregion

[编辑] 我最近尝试使用此代码来更新移动应用程序。它没有给出语法错误,但是当我发布它时,我没有看到任何操作添加到移动屏幕:

update screen FS300200
  {
  update container "AppointmentRecords"
    {
        update layout "AdditionalTab"
          {
              add layout "ASGLine"
               {
                  add recordActionLink "ASGExtForms"
               }
           }
         add recordAction "ASGExtForms"
          {
            displayName = "DoorForms"
            behavior = Void
          }
    }
 }

[结束编辑]

[原创尝试] 在我的定制中,我试图修改移动应用程序的 FS300200:

这是我正在尝试的移动标记:

update screen FS300200
  {
  update container "AppointmentRecords"
    {
        add layout "ASG"
          {
            displayName = "ASG"
            layout = "Tab"
            add group "DoorForms"
            {
              displayName = "DoorForms"
              collapsable = True
              collapsed = True
              add layout "ASGLine"
               {
                  displayName = "WebForm"
                  layout = "Inline"
                  add field "OtherSourceInfoDocumentType#ReferenceNbr"
                  add recordAction "ASGExtForms"
                   {
                     Behavior = Void
                     displayName = "DoorForms"      
                     redirect = True
                   }      
               }
            }
          }
    }
  }

但是我得到一个错误:

第 19 行: 不能在当前上下文中使用实体类型“listAction”。

我错过了什么?

c# mobile acumatica
© www.soinside.com 2019 - 2024. All rights reserved.