Notifications
Announcements
No record found.
I have a form with text box which i will write my job in it
i need to code a button to pull that text and save it as a job in AOT
HOW CAN I ACHIEVE THAT ?????
*This post is locked for comments
You have to use TreeNode and setSource().
Here is an example, check the second part:
http://stackoverflow.com/questions/29840202/add-a-method-dynamically-in-ax-2012-component
And another, but not for jobs:
fourone.se/.../create-class-and-methods-in-x
Nevertheless it sounds like a suspicious and dangerous piece of logic. What are you trying to achieve by that? Maybe we can suggest a better solution.
Thanks Vilmos Kintera
Not at all, I am creating a form to do all my tests through it , all in one place
You can also try RunBuf method, Its evaluates your job(Written as string) directly.
Perfect
Thanks Abhishek_mishra
i intend to save the text to job then run it, but RunBuf is PERFECT for what i need.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 4 Most Valuable Professional
Priya_K 4
MyDynamicsNAV 2