0

我有一个名为 Customer 的屏幕,并有一个参数 ID。

要通过我正在使用的代码打开屏幕:

Application.ShowCustomer(customerId);

我在客户屏幕中调用它,但没有任何反应。我可以打开不同的屏幕,但我需要打开相同的屏幕但具有不同的实体。

我不确定目前正在发生什么。

谢谢

4

1 回答 1

0

客户屏幕应该有一个您可以修改的参数属性。您可以设置此参数值并刷新屏幕。例如,我用 CustomerKey 1000 加载了我的客户屏幕,并添加了一个附加到名为“不同客户”的方法的按钮:

    partial void differentCustomer_Execute()
    {
        // Instead of what you were doing:
        // Application.ShowCustomerDetail(5200);

        // Do this instead:
        this.CustomerCustomerKey = 5200;
        Refresh();
    }
于 2013-05-02T23:49:06.227 回答