Notifications
Announcements
No record found.
Hi all ,
did anyone know how to enable Hijri calendar in ax 2012
*This post is locked for comments
Hi Faress,
I think it is not supported yet, because I have found this code in SysSetupForm -> run method
// Enable Arabc calendar option if Arabic language.
if (isLanguageArabic(userInfo.Language))
{
// Disable non-Gregorian calendar for RTM
userInfo_PreferredCalendar.visible(false);
}
else
Regards
Bilal
Thank you bilal i tried the code which you had posted in the above reply and it return buges code you please send me xpo file for AX 2012 R2 environment
the same code exists in Ax2012 R2 CU1, so Microsoft disabled non-Gregorian calendar , because it will cause issues .
Regards,
Hi Mostafa Mahmoud,
Follow below the steps,
To show Hijiri Calender, had a look in the sysdate EDT which is showing Calendar to select a particular date, this EDT is referring to SysDateLookUp Form, then I duplicated the form and made changes as Folllows.
1.Duplicate the SysDateLookUp Form and Name it as HijiriDateLookup.
2. In the Init method set the calendar type to Hijiri Calender (default is from user settings) this will show you the Hijiri Calender. But it will return the Gregorian(English) Date only
3. in CloseSelect method just convert the return date to Hijiri Date, to do this I Added a new method to convert that Gregorian(English) Date to Hijiri Date using Native AX Dotnet Namespaces.
4. Created New String EDT HijriDate and set lookup ref to this new form, and set some properties to look like default Datetime picker (look at the EDT)
5. refer this EDT in the Table fields or the controls in the form for Hijiri Date.
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