【问题标题】:Open specified report and page in Acumatica在 Acumatica 中打开指定的报表和页面
【发布时间】:2015-05-15 18:40:18
【问题描述】:

在 Acumatica 中存在异常 PXRedirectRequiredException,它允许重定向到 Acumatica 中的另一个页面。是否可以打开报告和申请页面?

【问题讨论】:

    标签: erp acumatica


    【解决方案1】:

    您可以使用 PXRedirectWithReportException。下面是 AssetMaint 的代码示例:

        AssetTranRelease graph = CreateInstance<AssetTranRelease>();
        AssetTranRelease.ReleaseFilter filter = (AssetTranRelease.ReleaseFilter)         
        graph.Filter.Cache.CreateCopy(graph.Filter.Current);
        filter.Origin = FARegister.origin.Disposal;
        graph.Filter.Update(filter);
        graph.SelectTimeStamp();
        int i = 0;
        Dictionary<string, string> parameters = new Dictionary<string, string>();
              foreach (FARegister register in created)
              {
                 register.Selected = true;
                 graph.FADocumentList.Update(register);
                 graph.FADocumentList.Cache.SetStatus(register, 
                 PXEntryStatus.Updated);
                        graph.FADocumentList.Cache.IsDirty = false;
                        parameters["FARegister.RefNbr" + i] = register.RefNbr;
                        i++;
                    }
    
                    parameters["DateFrom"] = null;
                    parameters["DateTo"] = null;
    
                    PXReportRequiredException reportex = new 
                    PXReportRequiredException(parameters, "FA680010", "Preview");
                    throw new PXRedirectWithReportException(graph, reportex, 
                                  "Release FA Transaction");
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-09-02
      • 1970-01-01
      • 2012-08-23
      • 1970-01-01
      • 2012-04-30
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多