Options

Getting days of week

xavigepexavigepe Member Posts: 185
Hi. I need a form with a listbox (like in VB) with all days of the week (monday, tuesday...) in order for the user to choose one of them. How can i implement this "listbox" using Navision?.

Thanks in advance.

Comments

  • Options
    TRSOEgroupTRSOEgroup Member Posts: 37
    xavigepe wrote:
    Hi. I need a form with a listbox (like in VB) with all days of the week (monday, tuesday...) in order for the user to choose one of them. How can i implement this "listbox" using Navision?.

    Thanks in advance.

    make a option field with weekdays in the option string.
  • Options
    kinekine Member Posts: 12,562
    Or make form based on table Date (2000000007)
    and set filter to something as
    SETRANGE("Period Type","Period Type"::Date);
    SETRANGE("Period Start",030100D,090100D);
    

    If you show only column Period Name you have list of days in week (you can change the date filter to have for example first day if week Sunday...) - in column Period No. you have the no. of the selected day... It is clear, it is language independent, it is Navision solution... :-)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
Sign In or Register to comment.