Acumatica-创建带有标题的简单细节屏幕
针灸会让我哭的。我按照T100中的教程创建了一个简单的查询屏幕。当我打开它时,屏幕是空白的。我可以在设计视图中看到布局,当我加载屏幕时,它是空白的 我的图表:Acumatica-创建带有标题的简单细节屏幕,acumatica,Acumatica,针灸会让我哭的。我按照T100中的教程创建了一个简单的查询屏幕。当我打开它时,屏幕是空白的。我可以在设计视图中看到布局,当我加载屏幕时,它是空白的 我的图表: public class QLInventoryMaint : PXGraph<QLInventoryMaint> { public QLInventoryMaint() { ResponseRec.Cache.AllowInsert = false; ResponseRec.
public class QLInventoryMaint : PXGraph<QLInventoryMaint>
{
public QLInventoryMaint()
{
ResponseRec.Cache.AllowInsert = false;
ResponseRec.Cache.AllowDelete = false;
ResponseRec.Cache.AllowUpdate = false;
}
[Serializable]
public class StrainFilter : IBqlTable
{
#region DisplayID
public abstract class displayID : PX.Data.IBqlField
{
}
protected String _DisplayID;
[PXString(4)]
[PXUIField(DisplayName = "Display ID")]
public virtual String DisplayID
{
get
{
return this._DisplayID;
}
set
{
this._DisplayID = value;
}
}
#endregion
}
public PXCancel<StrainFilter> Cancel;
public PXFilter<StrainFilter> StrainFilterRec;
[PXFilterable]
public PXSelectReadonly<StrainResult, Where<StrainResult.displayID, Equal<Current<StrainFilter.displayID>>>> ResponseRec;
}
公共类QLInventoryMaint:PXGraph
{
公共目录维护()
{
ResponseRec.Cache.AllowInsert=false;
ResponseRec.Cache.AllowDelete=false;
ResponseRec.Cache.AllowUpdate=false;
}
[可序列化]
公共类过滤器:IBqlTable
{
#区域显示ID
公共抽象类displayID:PX.Data.IBqlField
{
}
受保护的字符串\u DisplayID;
[附表(4)]
[PXUIField(DisplayName=“Display ID”)]
公共虚拟字符串DisplayID
{
收到
{
返回此。\u DisplayID;
}
设置
{
这个。_DisplayID=值;
}
}
#端区
}
公共服务取消;
公共PX过滤器过滤器;
[可过滤]
公共PXSelectReadonly ResponseRec;
}
我的页面:
<%@ Page Language="C#" MasterPageFile="~/MasterPages/FormDetail.master" AutoEventWireup="true" ValidateRequest="false" CodeFile="SO301010.aspx.cs" Inherits="Page_SO301010" Title="Untitled Page" %>
<%@ MasterType VirtualPath="~/MasterPages/FormDetail.master" %>
<asp:Content ID="cont1" ContentPlaceHolderID="phDS" Runat="Server">
<px:PXDataSource ID="ds" runat="server" Visible="True" Width="100%" PrimaryView="StrainFilterRec" TypeName="PX.Objects.SO.QLInventoryMaint">
</px:PXDataSource>
</asp:Content>
<asp:Content ID="cont2" ContentPlaceHolderID="phF" Runat="Server">
<px:PXFormView ID="form" runat="server" DataSourceID="ds" Style="z-index: 100"
Width="100%" DataMember="StrainFilterRec" TabIndex="2500">
<Template>
<px:PXLayoutRule runat="server" StartRow="True"/>
<px:PXTextEdit ID="edDisplayID" runat="server" AlreadyLocalized="False" DataField="DisplayID" DefaultLocale="">
</px:PXTextEdit>
</Template>
</px:PXFormView>
</asp:Content>
<asp:Content ID="cont3" ContentPlaceHolderID="phG" Runat="Server">
<px:PXGrid ID="grid" runat="server" DataSourceID="ds" Style="z-index: 100"
Width="100%" Height="150px" SkinID="Details" TabIndex="3500" TemporaryFilterCaption="Filter Applied">
<EmptyMsg ComboAddMessage="No records found.
Try to change filter or modify parameters above to see records here." NamedComboMessage="No records found as '{0}'.
Try to change filter or modify parameters above to see records here." NamedComboAddMessage="No records found as '{0}'.
Try to change filter or modify parameters above to see records here." FilteredMessage="No records found.
Try to change filter to see records here." FilteredAddMessage="No records found.
Try to change filter to see records here." NamedFilteredMessage="No records found as '{0}'.
Try to change filter to see records here." NamedFilteredAddMessage="No records found as '{0}'.
Try to change filter to see records here." AnonFilteredMessage="No records found.
Try to change filter to see records here." AnonFilteredAddMessage="No records found.
Try to change filter to see records here."></EmptyMsg>
<Levels>
<px:PXGridLevel DataKeyNames="DisplayID" DataMember="ResponseRec">
<Columns>
<px:PXGridColumn DataField="Name" Width="200px">
</px:PXGridColumn>
<px:PXGridColumn DataField="Abbreviation">
</px:PXGridColumn>
<px:PXGridColumn DataField="ClonesCount" TextAlign="Right">
</px:PXGridColumn>
<px:PXGridColumn DataField="PlantsCount" TextAlign="Right">
</px:PXGridColumn>
<px:PXGridColumn DataField="HarvestedCount" TextAlign="Right">
</px:PXGridColumn>
<px:PXGridColumn DataField="WetFlowerWeight" TextAlign="Right">
</px:PXGridColumn>
<px:PXGridColumn DataField="DryFlowerWeight" TextAlign="Right">
</px:PXGridColumn>
</Columns>
</px:PXGridLevel>
</Levels>
<AutoSize Container="Window" Enabled="True" MinHeight="150" />
</px:PXGrid>
</asp:Content>
我最初想创建一个没有数据库字段的查找屏幕,但得到的结果是相同的。我决定按照教程创建查询屏幕。我讨厌这个框架。我猜当前的显示ID没有设置,所以网格查询是空的。您可以执行SQL跟踪以确认,但我会在页面的筛选器字段中使用
CommitChange=“True”
<px:PXTextEdit ID="edDisplayID" runat="server" AlreadyLocalized="False" DataField="DisplayID" CommitChanges="True">
在17.204.0019中,FormDetail创建似乎不起作用。我在17.202.0016创建了这个屏幕,它工作得很好。我将屏幕导入到17.204.0019中,它也工作了。有人能确认或否认这一点吗?设置似乎很简单。您可以在示例中包含此图形的页面文件吗?至于框架,它确实需要学习曲线。一旦您习惯了所需的关键组件,使用起来就非常简单和灵活。与我使用过的其他ERP系统相比,情况更糟。@Brendan我添加了aspx代码。不知道,我经历了T100、T300和T200的一半,但仍然花了一整天的时间在这类愚蠢的事情上。我根本没有渲染字段,甚至连过滤字段都没有。非常奇怪的问题。我在旧版本中创建了屏幕,并导入到这个版本中,似乎工作正常。build 17.204.0019I有问题,需要更多信息来诊断这是否是产品中的错误。特别是关于“当我打开它时,屏幕是空白的。”。你在哪里开门?您是指在Visual Studio窗口设计器、Acumatica自定义项目编辑器还是web浏览器中?屏幕有多空白,完全是白色的吗?浏览器和VisualStudio中提供了用于诊断此类问题的调试工具,如调试控制台或输出窗口。连接错误可能导致页面完全空白。@HB_ACUMATICA Designer工作正常。它正确显示所有字段/网格。在Acumatica(浏览器)中打开屏幕时,屏幕几乎完全为白色。它确实会显示您添加的按钮,如“取消”按钮,然后在其下方有一个灰色条,其余为白色。跟踪中没有显示任何内容。在问题中添加图像可能会有所帮助。从这个描述可以看出,根本没有数据可显示。我注意到的一件事是PXDataSource元素中的PrimaryView被设置为FilterDataView:StrainFilterRec。我会把网格数据视图放在那里:ResponseRec。此外,您还可以删除EmptyMsg ASP元素,无论生成什么,只要我认为将其保留在生产页面中没有用。