为Acumatica创建自定义用户控件。

时间:2022-08-10 01:20:32

I am attempting to create a custom User Control that is usable in the Acumatica Framework. Documentation is very limited so I was hoping someone may have some experience/examples of how best to implement?

我正在尝试创建一个在Acumatica框架中可用的自定义用户控件。文档是非常有限的,所以我希望有人可能有一些经验/例子,如何最好地实现?

It appears possible by creating a WebControl derived from PXWebControl and creating a global JS function with a matching name.

通过创建一个从PXWebControl派生的WebControl,并创建一个具有匹配名称的全局JS函数,这看起来是可能的。

1 个解决方案

#1


1  

To create a custom User Control in an easy way, you need to:

要轻松地创建自定义用户控件,您需要:

  • Open Customization of your project (System - Customization - Customization Project)
  • 项目的开放定制(系统-定制-定制项目)
  • On the left side, you can see your screens in your customization. Find screen that needs or add needed screen. Go to the necessary view.
  • 在左边,您可以在定制中看到您的屏幕。查找需要的屏幕或添加需要的屏幕。进入必要的视图。
  • Select add controls and add your needed control.
  • 选择添加控件并添加所需的控件。

You can see in an image provided below.

您可以在下图中看到。

为Acumatica创建自定义用户控件。

#1


1  

To create a custom User Control in an easy way, you need to:

要轻松地创建自定义用户控件,您需要:

  • Open Customization of your project (System - Customization - Customization Project)
  • 项目的开放定制(系统-定制-定制项目)
  • On the left side, you can see your screens in your customization. Find screen that needs or add needed screen. Go to the necessary view.
  • 在左边,您可以在定制中看到您的屏幕。查找需要的屏幕或添加需要的屏幕。进入必要的视图。
  • Select add controls and add your needed control.
  • 选择添加控件并添加所需的控件。

You can see in an image provided below.

您可以在下图中看到。

为Acumatica创建自定义用户控件。