如何在 Acumatica 中使用 AllowEdit

how to use AllowEdit in Acumatica

我遇到了这个问题:

我想尝试使用 AllowEdit = "true" 弹出 CrossSection table 页面,铅笔符号已经显示,但它没有打开任何东西, CrossSection的页面我已经进入隐藏在SiteMap中了。有什么我想念使用 AllowEdit 的步骤吗?如何使用 AllowEdit

连同 PXSelector 属性和 PXSelector aspx 控件的 AllowEdit,请确保为 DAC 设置主图形。 主要图表确定用户被重定向以编辑数据记录的默认页面。

示例:

[PXPrimaryGraph(typeof(CrossSectionMaint))]
[Serializable]
public class CrossSection : PX.Data.IBqlTable
{
...
}

这不是完整的答案,但可能是必要的步骤。

我发现我的网格字段不允许我设置 AllowEdit 属性,我的意思是,它根本不存在。它是 PXSelector 等等,但不同于普通的独立选择器。我什至尝试手动添加 AllowEdit 代码,但它在保存时被删除了。

浏览另一个带有 links 选择器的网格时,我发现了一个 RowTemplate 部分,这是我以前从未见过的。

<px:PXTabItem Text="Salespersons" LoadOnDemand="True">
    <Template>
      <px:PXGrid ID="PXGrid1" runat="server" Height="300px" Width="100%" SkinID="DetailsInTab" DataSourceID="ds">
        <Levels>
          <px:PXGridLevel DataMember="SalesPersons" DataKeyNames="SalesPersonID,LocationID">
            <Columns>
              <px:PXGridColumn DataField="SalesPersonID" ></px:PXGridColumn>
              <px:PXGridColumn DataField="SalesPersonID_SalesPerson_descr" ></px:PXGridColumn>
              <px:PXGridColumn DataField="LocationID" ></px:PXGridColumn>
              <px:PXGridColumn DataField="LocationID_description" ></px:PXGridColumn>
              <px:PXGridColumn DataField="CommisionPct" TextAlign="Right" ></px:PXGridColumn>
              <px:PXGridColumn DataField="IsDefault" Type="CheckBox" TextAlign="Center" ></px:PXGridColumn>
            </Columns>
            <RowTemplate>
              <px:PXLayoutRule runat="server" StartColumn="True" LabelsWidth="SM" ControlSize="M" ></px:PXLayoutRule>
              <px:PXSegmentMask ID="edSalesPersonID" runat="server" DataField="SalesPersonID" AutoRefresh="True" AllowEdit="True" ></px:PXSegmentMask>
              <px:PXSegmentMask ID="edLocationID" runat="server" DataField="LocationID" AutoRefresh="True" AllowEdit="True" ></px:PXSegmentMask>
              <px:PXTextEdit ID="edLocation_descr" runat="server" DataField="LocationID_description" Enabled="False" ></px:PXTextEdit>
              <px:PXNumberEdit ID="edCommisionPct" runat="server" DataField="CommisionPct" ></px:PXNumberEdit>
            </RowTemplate>
            <Mode InitNewRow="False" ></Mode>
            <Layout FormViewHeight="" ></Layout>
          </px:PXGridLevel>
        </Levels>
        <AutoSize Enabled="True" MinHeight="100" MinWidth="100" ></AutoSize>
        <ActionBar>
          <Actions>
            <Save Enabled="False" ></Save>
          </Actions>
        </ActionBar>
      </px:PXGrid>
    </Template>
  </px:PXTabItem>

这似乎为数据字段提供了设计模板之类的东西。在我的 ASPX 中添加类似的部分后,link 出现了。