Hi,
Good day, I would like to ask if in AX is there any enum for month and year selection? I hope anyone can ask me this question. Thank you.
Ivan
*This post is locked for comments

Hi,
Good day, I would like to ask if in AX is there any enum for month and year selection? I hope anyone can ask me this question. Thank you.
Ivan
*This post is locked for comments
Hello Ivan,
Do you mean something like 2016-07, 2016-08, 2016-09, etc.?
Ludwig
Hi Ludwig,
Yes. something like that because I am using the datefield and I don't know if there is something like month-year instead
No, it isn't and can't be. It would be an infinite list.
Choose a period you're interested in (e.g. 12 months from the current date), put it into a temporary table and create a lookup based on this temporary table.
Hello Martin,
I use datefield and any number i choose it will automatically set (example: I choose June 20 but it will set by June 30 using endmth method and datestryr from January) I think this is okay?
Hi Ivan,
You can create new EDT and set "DateDay" property to "Day not shown". When you will add it to a dialog it will show you only month and year without day. Than you can use endmth in you code to convert any selected date to end of the month date.
Ivan, yes, you can use the date selection. I told you how to build the combobox, because I thought that was your requirement.
Martin, I would like to ask also if for the combobox is it also possible like example you have Jan-dec 2016, Jan-dec 2017 and so on? also the previous years?
Yes, it's possible - that's what I addressed in my first reply. You would generate texts such as Jan 2016, Feb 2012 and so on, put them into a temporary table and show the table in a lookup.