11/29/2024 11:34:24 PM
|
|
slxdeveloper.com Community Forums |
|
|
|
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
Forum to discuss usage & tips for SalesLogix controls and other 3rd party ActiveX controls. View the code of conduct for posting guidelines.
|
|
|
|
Datetimeedit/picker and MainView
Posted: 18 Apr 06 10:13 PM
|
fiogf49gjkf0d Hey again everybody,
I've 2 question, maybe someone here knows about the answer and can share his/her knowledge :
1. is there any way that datetimepicker or datetimeedit only shows month and years without dates? i mean the popup calendar selector part. 2. can i made invisible the "Drag a tab here to display a view" part on the MainView, it always comes out even tough i already made the middleview, tabspane, and groupspane invisible.
Cheers, -Fajar |
|
|
|
Re: Datetimeedit/picker and MainView
Posted: 24 Apr 06 12:44 PM
|
fiogf49gjkf0d DateTimePicker shouldn't really be used. I seriously question it still being in the list of controls since almost everyone I know hates using it or supporting it. What I found fun was the fact that it doesn't set NULL dates.
The calendar control is most likely hardcoded but the cool part about it is if you left click on the month, it displays a drop down of months. If you left click on the year, you can quickly change the year by typing it in. I personally set every DateTimeEdit control to read only, which forces users to always use the popup control which inadvertantly keeps every date normal. No more 2/2/200 date errors. Try typing that in sometime to see what happens. I believe that's a bug in the VBScript IsDate() function.
The problem with not having a date is the date would then be in the format 4/2006 for this month, which most likely wouldn't store properly. If you're looking for a way to store just a month and a year it might be best to break it up into 2 hidden controls that get their data from parsing one editbox's date format. Problem with that is validation as people could just type anything in like 4-2005, 4/2005, 2005/4, or whatever and you'd have to figure out exactly what they mean. You'd probably do better just using a DateTimeEdit and ignoring the date they pick, which you can do if you say pass Control.Text to the Month() or Year() VBScript functions. |
|
|
|
Re: Datetimeedit/picker and MainView
Posted: 24 Apr 06 8:16 PM
|
fiogf49gjkf0d Thx for the tips, i never know before that i can left click on the month and year part on datetimeedit.
-Fajar |
|
|
|
Re: Datetimeedit/picker and MainView
Posted: 06 Jan 09 7:48 PM
|
I didn't know that either, thanks Jeremy.
But (7.2.2) I have just found that the 'RecordChanges' flag of the dte control does not work on my custom form, whereas it does work if I use dtp controls. But yuk, that problem with nulls is a real ****er.
Phil |
|
|
|
Re: Datetimeedit/picker and MainView
Posted: 07 Jan 09 9:28 AM
|
Record Changes doesn't work on very many custom tables, fields, forms....regardless of the ActiveX control type. Really bad for one to many tables, for example. Remember Record Changes ends up as a History Record attached to an Account(ID)......always.
|
|
|
|
You can
subscribe to receive a daily forum digest in your
user profile. View the site code
of conduct for posting guidelines.
Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
|
|
|
|
|
|
|
|