Create custom User Control for Acumatica
Asked Answered
H

1

69

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?

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

Horsy answered 9/6, 2016 at 11:41 Comment(2)
I can provide you an example of how to work with a pure HTML/JS control and have it interact with the graph, but as far creating an ASP.NET control that will seamlessly work with the Acumatica framework, it's not something I've seen before. I tried it a while ago but wasn't able to figure out how to have my global JS functions loaded - didn't try very hard however. Will be watching this question with great interest!Ardelia
This question is too broad; questions asking only for generic examples are off-topic for Stack Overflow. Instead, start writing code, and come back when you have a more specific problem. Be sure to show us what you have tried and include a Minimal, Complete, Verifiable Example.Vicarious
E
2

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.

enter image description here

Enter answered 9/9, 2017 at 10:40 Comment(4)
The product doesn't really support custom control (no option for that in Add Control tab). On the other hand JavaScript is correctly highlighted as the closest you can get to a custom control..Boogiewoogie
@HuguesBeauséjour technically any custom asp.net control can be used with Acumatica Framework. The other question is that the Layout Editor won't automatically show or manage that control with drag&drop. But the question is not specific to Layout Editor.Preen
Correct, this is a possibility when creating new pages.Boogiewoogie
I'm not sure you can customize existing pages with any asp.net control. The customization parser will likely break on unknown controls.Boogiewoogie

© 2022 - 2024 — McMap. All rights reserved.