Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, November 29, 2024 
 
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!
 Architect Forums - Controls
Forum to discuss usage & tips for SalesLogix controls and other 3rd party ActiveX controls. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to Controls | New ThreadView:  Search:  
 Author  Thread: Datetimeedit/picker and MainView
Fajar
Posts: 32
 
Datetimeedit/picker and MainViewYour last visit to this thread was on 1/1/1970 12:00:00 AM
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
[Reply][Quote]
Jeremy Brayton
Posts: 491
Top 10 forum poster: 491 posts
 
Re: Datetimeedit/picker and MainViewYour last visit to this thread was on 1/1/1970 12:00:00 AM
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.
[Reply][Quote]
Fajar
Posts: 32
 
Re: Datetimeedit/picker and MainViewYour last visit to this thread was on 1/1/1970 12:00:00 AM
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
[Reply][Quote]
Phil Parkin
Posts: 819
Top 10 forum poster: 819 posts
 
Re: Datetimeedit/picker and MainViewYour last visit to this thread was on 1/1/1970 12:00:00 AM
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
[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: Datetimeedit/picker and MainViewYour last visit to this thread was on 1/1/1970 12:00:00 AM
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.
[Reply][Quote]
 Page 1 of 1 
  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!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 11/29/2024 9:41:34 PM