[在提交新项目以添加新页面的示例时出错(错误#97:视图不存在)]]

问题描述 投票:0回答:1
大家。我是acumatica版本4。10。我今天要问你一个问题。我在尝试为网站创建新页面时遇到此错误。

我为此部分添加了一个项目,其中包括所有文件,如下所示enter image description here当我尝试访问刚刚创建的新页面时发生错误enter image description here

我的新页面

<%@ Page Language="C#" MasterPageFile="~/MasterPages/FormDetail.master" AutoEventWireup="true" ValidateRequest="false" CodeFile="PO510000.aspx.cs" Inherits="Page_PO510000" 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="CodeGiftRecords" TypeName="SunfixInquiry.POCodeGiftMaint"> <CallbackCommands> <px:PXDSCallbackCommand Name="Save" CommitChanges="True" /> <px:PXDSCallbackCommand Name="Insert" CommitChanges="True" Visible="false" /> <px:PXDSCallbackCommand Name="Delete" CommitChanges="True" Visible="false" /> <px:PXDSCallbackCommand Name="First" CommitChanges="True" Visible="false" /> <px:PXDSCallbackCommand Name="Previous" CommitChanges="True" Visible="false" /> <px:PXDSCallbackCommand Name="Next" CommitChanges="True" Visible="false" /> <px:PXDSCallbackCommand Name="Last" CommitChanges="True" Visible="false" /> </CallbackCommands> </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%"> <Template> <px:PXLayoutRule runat="server" StartRow="True"/> </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="2200"> <Levels> <px:PXGridLevel DataKeyNames="CodeGift" DataMember="CodeGiftRecords"> <RowTemplate> <px:PXCheckBox ID="edDisable" runat="server" CommitChanges="True" DataField="Disable" Text="Disable"> </px:PXCheckBox> </RowTemplate> <Columns> <px:PXGridColumn DataField="CodeGift"> </px:PXGridColumn> <px:PXGridColumn DataField="Name"> </px:PXGridColumn> <px:PXGridColumn DataField="Disable" TextAlign="Center" Type="CheckBox" DataType="Boolean"> </px:PXGridColumn> </Columns> </px:PXGridLevel> </Levels> <AutoSize Container="Window" Enabled="True" MinHeight="150" /> <ActionBar ActionsText="False"> </ActionBar> <Mode AllowUpload="True" /> </px:PXGrid> </asp:Content>

我的DAC

<Graph ClassName="POCodeGift" Source="#CDATA" IsNew="True" FileType="NewDac"> <CDATA name="Source"><![CDATA[using System; using PX.Data; namespace SunfixInquiry { [Serializable] public class POCodeGift: IBqlTable { #region CodeGift [PXDBString(10, IsKey = true, InputMask = "")] [PXUIField(DisplayName = "Code Gift")] public string CodeGift { get; set; } public class codeGift : IBqlField{} #endregion #region Name [PXDBString(IsUnicode = true, InputMask = "")] [PXUIField(DisplayName = "Name")] public string Name { get; set; } public class name : IBqlField{} #endregion #region Disable [PXDBBool()] [PXUIField(DisplayName = "Disable")] public bool? Disable { get; set; } public class disable : IBqlField{} #endregion #region CreatedByID [PXDBCreatedByID()] public Guid? CreatedByID { get; set; } public class createdByID : IBqlField{} #endregion #region CreatedByScreenID [PXDBCreatedByScreenID()] public string CreatedByScreenID { get; set; } public class createdByScreenID : IBqlField{} #endregion #region CreatedDateTime [PXDBCreatedDateTime] [PXUIField(DisplayName = "Created Date Time")] public DateTime? CreatedDateTime { get; set; } public class createdDateTime : IBqlField{} #endregion #region LastModifiedByID [PXDBLastModifiedByID()] public Guid? LastModifiedByID { get; set; } public class lastModifiedByID : IBqlField{} #endregion #region LastModifiedByScreenID [PXDBLastModifiedByScreenID()] public string LastModifiedByScreenID { get; set; } public class lastModifiedByScreenID : IBqlField{} #endregion #region LastModifiedDateTime [PXDBLastModifiedDateTime()] [PXUIField(DisplayName = "Last Modified Date Time")] public DateTime? LastModifiedDateTime { get; set; } public class lastModifiedDateTime : IBqlField{} #endregion #region Tstamp [PXDBTimestamp()] [PXUIField(DisplayName = "Tstamp")] public byte[] Tstamp { get; set; } public class tstamp : IBqlField{} #endregion } }]]></CDATA> </Graph> My Graph <Graph ClassName="POCodeGiftMaint" Source="#CDATA" IsNew="True" FileType="NewGraph"> <CDATA name="Source"><![CDATA[using System; using PX.Data; namespace SunfixInquiry { [PXCustomization] public class POCodeGiftMaint: PXGraph<POCodeGiftMaint,POCodeGift> { [PXImport(typeof(POCodeGift))] public PXSelect<POCodeGift> CodeGiftRecords; #region Event Handlers #endregion } }]]></CDATA> </Graph>

[请告诉我我想念的东西,非常感谢

大家。我是acumatica版本4。10.我今天想问您一个问题。我在尝试为网站创建新页面时遇到此错误。我为此部分添加了一个项目,其中包括...

acumatica acumatica-kb
1个回答
0
投票
ASPX标记指出CodeGiftRecords是网格的PrimaryView和DataMember。您的BLC是否指定了CodeGiftRecords,还是其他名称? ASPX还显示不带DataMember的FormView标记。此页面是在处理主/详细信息,还是您打算使用ListView?
© www.soinside.com 2019 - 2024. All rights reserved.