如何自定义应收账款参数调用的"Update quotation line"对话框中新字段组的标签?

How can the label of the group of a new field in the "Update quotation line" dialog called from the accounts receivable parameters be customized?

我想在应收帐款-> 设置-> 应收帐款参数中插入一个新组,在 更新报价行的对话框中有一个新的参数字段.

单击按钮 更新报价行 时,会打开一个对话框。

我插入了一个新字段,我修改了 class SalesQuotationToLineField 中的方法 getFieldDescripion

这有效,我有新参数,但我没有 Group

我想要一个带有标签的组,如下面的屏幕截图所示,但带有我的标签 (field-Label)。我必须改变什么才能实现这一目标?

谢谢大家!

尽情享受吧!

如果我对你的问题的理解正确,你在对话框 "Update sales quotation line" 中添加了一个新字段,可以从表单 CustParameters 调用,现在你想更改这个新字段的组标签领域。

为此,您必须覆盖 class SalesQuotationToLineField 的方法 fieldGroupLabel 并添加一个类似于方法 getFieldDescriptionswitch 来测试在这种情况下,新字段和 return 自定义标签。这个被覆盖的方法将被方法 dialog in class SalesPurchTableToLineParametersForm.

调用

覆盖的 fieldGroupLabel 应类似于以下示例:

public FieldLabel fieldGroupLabel()
{
    FieldLabel ret;

    ret = super();

    switch (this.parmFieldId())
    {
        case fieldNum(SalesQuotationTable, SalesGroup): // replace this with the new field
            ret = 'My Group label'; // replace this with the id of the label you want to use
            break;
    }

    return ret;
}