X++ - How do you Run a class
Short Answer
Views 14
Answer:
You have several options.
- Create a X++ job in the Jobs AOT node. Place code that invokes your class in the job body and press F5 to run.
-
Create a main method on your class with the following signature:
static void main (Args _args) { // Your X++ code here. }
You can execute this method by pressing F5 when the class is open in the code editor. Be aware that this method gets invoked when a class is associated with a menu item, so not all production classes will need this method. Works great for testing though.
Related Articles:
This section is dedicated exclusively to Questions & Answers. For an in-depth exploration of X++ Programming Language, click the links and dive deeper into this subject.
Join Our telegram group to ask Questions
Click below button to join our groups.