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?
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
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:
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.
Comments
Nice piece of work =D> =D> - looks very good 8)
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html
hello,I run your form,but the form has no mon,thu,wed,thu,....these number how can add it,
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
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?
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
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.
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: As you can see I have added Calendar.SetInitialDate("Allow Posting From") which calls a function that I added to your DateDialog Form: Just a thought....and thanks again!!
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:
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