【问题标题】:how to use AllowEdit in Acumatica如何在 Acumatica 中使用 AllowEdit
【发布时间】:2016-08-24 04:35:14
【问题描述】:

我遇到了这个问题:

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

【问题讨论】:

  • 你能告诉我们DAC中的字段声明吗?所以我们可以更多地看到你在做什么。
  • 要从AllowEdit 导航,必须在相应的DAC 字段上具有PXSelector 属性。你有吗?

标签: c# erp acumatica


【解决方案1】:

连同PXSelector 属性和AllowEdit 用于PXSelector aspx 控件,确保为DAC 设置主图。 主图决定了用户编辑数据记录时重定向到的默认页面。

例子:

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

【讨论】:

  • 我也做了同样的事情,但链接仍然没有打开弹出窗口。
【解决方案2】:

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

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

浏览另一个带有链接选择器的网格,我发现了一个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 中添加了类似的部分后,链接出现了。

【讨论】:

    猜你喜欢
    • 2015-06-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-01-04
    • 2023-03-04
    相关资源
    最近更新 更多