Date Dialog v1.1.0.0

AdministratorAdministrator Member, Moderator, Administrator Posts: 2,500
edited 2009-02-19 in Download section
Date Dialog
Graphical Date Picker Dialog. Just a neat little toy I created, check it out. :)

http://www.mibuso.com/dlinfo.asp?FileID=1009

Discuss this download here.

Comments

  • DaveTDaveT Member Posts: 1,039
    Hi Johathan,

    Nice piece of work =D> =D> - looks very good 8)
    Dave Treanor

    Dynamics Nav Add-ons
    http://www.simplydynamics.ie/Addons.html
  • XypherXypher Member Posts: 297
    Why thank you very much :D
  • GRUBBYFANSGRUBBYFANS Member Posts: 154
    Date Dialog
    Graphical Date Picker Dialog. Just a neat little toy I created, check it out. :)

    http://www.mibuso.com/dlinfo.asp?FileID=1009

    Discuss this download here.


    hello,I run your form,but the form has no mon,thu,wed,thu,....these number how can add it,
  • AsallaiAsallai Member Posts: 141
    Really nice one! Why MS does not make a standard Date Selection form with references? :?
  • ara3nara3n Member Posts: 9,256
    main reason i think is that data is entered through keyboard and manual entry is a lot faster.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • XypherXypher Member Posts: 297
    GRUBBYFANS wrote:
    hello,I run your form,but the form has no mon,thu,wed,thu,....these number how can add it,


    If you can please provide a link to a screen shot of the form.

    By default it should be setting the 1st day of the Week to (1) Monday (which is also default to Navision). Are you using the SetOptions procedure to specify which day of the week to start on?
  • ajhvdbajhvdb Member Posts: 672
    I'm using this one http://www.mibuso.com/dlinfo.asp?FileID=584

    Your layout is better but I'like the weeknumbers
  • XypherXypher Member Posts: 297
    ajhvdb wrote:
    I'm using this one http://www.mibuso.com/dlinfo.asp?FileID=584

    Your layout is better but I'like the weeknumbers

    Yeah I thought about including the week number or so. I just don't think I have an 100% accurate (at least I don't feel fully secure with) week number calculator algorithm since my form has a customizable start day for the week. Specifically concerning the weeks bordering the beginning/ending of the year.

    I thought I had found all the date picker forms and I had overlooked this one. It is very nice, I may update mine to include some of its features :D
  • AdministratorAdministrator Member, Moderator, Administrator Posts: 2,500
    Date Dialog v1.1.0.0
    Graphical Date Picker Dialog. Just a neat little toy I created, check it out. :)

    V1.1.0.0:
    Date2, of SetOptions(#[,Date1][,Date2]), has been fixed to properly display the supplied month calendar page.

    (Soon to be included: Quick selection of Month/Year; Display of Week Numbers.)

    http://www.mibuso.com/dlinfo.asp?FileID=1009

    Discuss this download here.
  • headley27headley27 Member Posts: 188
    Very nice. Thank you.

    A suggestion if I may.....

    It would be nice if the Selected Date could acquire a value that was passed in prior to opening your form.
    This way the user could see what date was previously selected when your form is opened via a date field's Lookup or AssistEdit button.

    For example:
    I added this code to the General Ledger Setup Form:
    Allow Posting From - OnLookup(VAR Text : Text[1024];) : Boolean
    Calendar.SetInitialDate("Allow Posting From");
    Calendar.RUNMODAL();
    IF Calendar.GetSelectedDate <> 0D THEN
      "Allow Posting From" := Calendar.GetSelectedDate;
    CLEAR(Calendar);
    
    As you can see I have added Calendar.SetInitialDate("Allow Posting From") which calls a function that I added to your DateDialog Form:
    SetInitialDate(InitialDate : Date)
    gSelectedDate := InitialDate;
    CurrForm.CmdOK.ENABLED(TRUE);
    
    Just a thought....and thanks again!! :D
  • vasilis6669vasilis6669 Member Posts: 109
    Hi,

    I could not find any sample on this calendar form. Can someone explain how to use the caledar?

    Thanks,
    Vasilis
  • XypherXypher Member Posts: 297
    Hi,

    I could not find any sample on this calendar form. Can someone explain how to use the caledar?

    Thanks,
    Vasilis

    The image provided in the download and in the preview of this download gives some detail on usage.

    This download is a bit out of date and still has some bugs but I can provide you a quick example:
    WeekStartDay := 7; //Sunday
    SelectedDate := TODAY;
    DisplayMonth := TODAY;
    
    DateDialog.SetOptions(WeekStartDay,SelectedDate,DisplayMonth);
    
    IF DateDialog.RUNMODAL = ACTION::LookupOK THEN
      ResultDate := DateDialog.GetSelectedDate();
    
  • vasilis6669vasilis6669 Member Posts: 109
    Hi,

    The sample works fine now.
    On the image it did not say "declare the following variables" that's why i was confused. I am new to this so you can understand.

    Thanks,
    Vasilis
Sign In or Register to comment.