Adding actual date to the format of the numbering

cprietocprieto Member Posts: 4
edited 2008-11-05 in Dynamics AX
Hello: I need to add the actual date(day+month+year) to the configuration of a numeric sequence code in the format field.It should be something like: actualdate_######. The # will be filled in with from the standard AX 4.0 but is there anything available in the standard to dinamically add the date in the format field ?.
Thank you very much.

Comments

  • AdamRoueAdamRoue Member Posts: 1,283
    Nothing as standard and I would ask why you want to go through this when the majority of date based transactions would have the date elsewhere on the record.
    The art of teaching is clarity and the art of learning is to listen
  • cprietocprieto Member Posts: 4
    I appreciate a lot your fast response Adam. Yes, I know that date is passed through almost everywhere (and we said it to the client)but he still asks for this requirement, so we will have to program it.
    Thanks a lot again.
  • kranthikranthi Member Posts: 72
    I have an idea.

    u add a checkbox field to the numbersequence form.
    the check box decides whether the date should be added to number sequence format.

    and after that u have to add the required date to the number generated at correct location.

    if(yes)
    num = num + date2str(systemdateget(),3,2,3,2,3,2);
    else
    num;

    i think it would help u
    Kranthi
  • cprietocprieto Member Posts: 4
    Thank you Kranthi:it is a pity not to have something standard but your idea of using a check box in the form is good.
  • AdamRoueAdamRoue Member Posts: 1,283
    cprieto wrote:
    I appreciate a lot your fast response Adam. Yes, I know that date is passed through almost everywhere (and we said it to the client)but he still asks for this requirement, so we will have to program it.
    Thanks a lot again.

    They may want it - but why do they want it?

    If you told them it was 10 days developement and would hamper any upgrade process how critical would the modification be then?
    The art of teaching is clarity and the art of learning is to listen
Sign In or Register to comment.