A study was done by Job Graphs (http://www.jobgraphs.com/) for Microsoft Dynamics AX as a global software product. I leave you with the graphs.
If you don’t have the Arabic help files of Dynamics AX you could download them from here:
To install the downloaded file to your environment, you have to get it copied to all the clients that needs to access the help files in an Arabic version. To get that, do the following:
- Download the files
- Unzip the folder in order to to get the “AR” folder
- Copy the unzipped folder in each client into: <<Installation folder>>Microsoft Dynamics AX50ClientBinHelp
By this you will be able to read the help files in the Arabic version.
And of course, do not forget to turn the Help language in the User Options form into AR!
Here we are
If you wanted to write a an X++ code to generate a number sequence and assign it to a field, you might use the following X ++ statement.
1 | yourTableBuffer.Field = NumberSeq::newGetNum(NumberSequenceReference::find(TypeID2ExtendedTypeId(TypeId(YourExtendedDataType)))).num(); |
And for the continuous number sequence (notice the “true” parameter):
1 | yourTableBuffer.Field = NumberSeq::newGetNum(NumberSequenceReference::find(TypeID2ExtendedTypeId(TypeId(YourExtendedDataType))), true).num(); |
But, what you could do if you have that field in form and you want to generate a number sequence while the user creates a new record is the class NumberSeqFormHandler.
NumberSeqFormHandler is a great class that doesn’t only take care of generating a new number sequence for your field… but also it takes care of removing or inserting that number in the Number Sequence List table when the number is not used (in case that the record hasn’t been inserted although the number has been already generated).
To use the NumberSeqFormHandler class, you have to declare a NumberSeqFormHandler object in the class declaration. Also you have to create a method at the Form level like the following:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | //Form level method NumberSeqFormHandler numberSeqFormHandler() {; //you should have been declared numberSeqFormHandler variable in the ClassDeclaration of your form if (!numberSeqFormHandler) { numberSeqFormHandler = NumberSeqFormHandler::newForm(NumberSequenceReference::find(TypeID2ExtendedTypeId(TypeId(YourExtendedDataType))).NumberSequence, element, YourDataSourceName, fieldnum(YourTableName, Field)); } return numberSeqFormHandler; } |
Then you need to actually call the NumberSeqFormHandler class methods like:
1 2 3 4 5 6 7 8 9 | //Form methods public void close() { if (numberSeqFormHandler) { numberSeqFormHandler.formMethodClose(); } super(); } |
1 2 3 4 5 6 | //DataSource method public void write() { element.numberSeqFormHandler().formMethodDataSourceWrite(); super(); } |
1 2 3 4 5 6 7 8 9 10 | //DataSource method public boolean validateWrite() { boolean ret; ret = super(); ret = element.numberSeqFormHandler().formMethodDataSourceValidateWrite(ret) && ret; return ret; } |
1 2 3 4 5 6 | //DataSource method public void linkActive() { element.numberSeqFormHandler().formMethodDataSourceLinkActive(); super(); } |
1 2 3 4 5 6 | //DataSource method public void delete() { element.numberSeqFormHandler().formMethodDataSourceDelete(); super(); } |
1 2 3 4 5 6 7 8 9 | //DataSource method public void create(boolean _append = false) { element.numberSeqFormHandler().formMethodDataSourceCreatePre(); super(_append); element.numberSeqFormHandler().formMethodDataSourceCreate(); } |
By this you will have your form works efficiently with the Number Sequence engine of Dynamics AX and you don’t have to write any code at the table level… so remove all that code that you might have written at the initValue method of your table.
One last important thing, NumberSeqFormHandler works with Continuous and non-Continuous number sequences. But if you want to “regenerate” the unused numbers that have been previously generated, you have to set your number sequence as Continuous of course.
Search the site
Dynamics AX 2012 Event
Recent Posts
- D365FO | Cannot Connect to SQL Server Database on Your Cloud Test Machines
- Intro to Microsoft Dynamics AX in Arabic – سلسلة حلقات مايكروسوفت داينامكس إيه إكس بالعربية
- Microsoft Dynamics Launch – Sunday, 24th February – Intercontinental Hotel, Riyadh
- Files of Our AX Brains Dec 2012 Event
- It was a great day!
- Tomorrow is the day for our Dynamics AX Brains Technical Seminar
- Dynamics AX Brains December 2012 Technical Seminar
- Windows Server 2012: Built from the Cloud Up
Tags
Archives
- October 2019 (1)
- January 2014 (1)
- February 2013 (1)
- December 2012 (4)
- September 2012 (2)
- December 2011 (2)
- November 2011 (3)
- July 2011 (3)
- June 2011 (4)
- May 2011 (3)
- April 2011 (4)
- March 2011 (12)
- February 2011 (2)
- January 2011 (3)
- December 2010 (1)
- November 2010 (1)
- October 2010 (5)
- August 2010 (1)
- July 2010 (3)
- June 2010 (4)
- May 2010 (5)
- April 2010 (1)
- March 2010 (9)
- February 2010 (4)
- January 2010 (4)
- December 2009 (11)
- September 2009 (1)
- August 2009 (1)
- July 2009 (2)
- September 2008 (1)
Random Testimonial
- ~ Mohamad Adel, Sr. Dynamics AX Developer at Al-Fanar IT
"I recommend Amer Atiyah as i worked with him in many simple and complicated tasks and i realized that he is very intelligent in the way of thinking to solve tasks problems. He has a very good experience and knowledge of his job. He is very hard worker, committed, organized and creative and very open mind in his work and that is the reason if his brilliant in his specialized field. He is always showing a high degree of professionalism and ability to deliver and accomplish very complicated tasks at any condition with high quality. I am recommending him to work in any team and i know he will fit with all challenges. Purely, he is a professional guy. I wish to him more and more success in his career and his life."
- Read more testimonials »