web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Hijri Calendar

(0) ShareShare
ReportReport
Posted on by 5,125

Hi all , 

did anyone know how to enable Hijri calendar in ax 2012 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Bilal Issa Profile Picture
    4,370 on at

    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

       {

           userInfo_PreferredCalendar.visible(false);

       }

    Regards

    Bilal

  • mostafa mahmoud Profile Picture
    5,125 on at

    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

  • Bilal Issa Profile Picture
    4,370 on at

    Hi Faress,

    the same code exists in Ax2012 R2 CU1, so Microsoft disabled non-Gregorian calendar , because it will cause issues .

    Regards,

    Bilal

  • Suggested answer
    Venkygeorge Profile Picture
    60 on at

    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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans