![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Date picker call back Topic Summary: call back on selecting date Created On: 4-May-2007 11:05 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Hi,
I tried using the set(select) option to attach a callback function to the date DBE. The intention was to give the user an error message if he were to select a past date from the date picker. However this function is not fired on selecting a date. I did notice that if I were to hit Enter, which is not really required, the function is called. Any suggestions on how I can get it to call my function?? Rgds, Uma |
|
![]() |
|
![]() |
|
Use the following.
This fires the callback whenever the DBE gets the focus. Be aware that this fires twice, once when the user selects the picker, and again when the user clicks on the date. setGotFocus(dbeDatePicker, doCheckDate) ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
Hi Tony, On using the setGotFocus option the call back is being fired too many times and it does not let me close the DB or do anything else at times. void selectDate(DBE option) { ack " should show up when date is changed"} DB db = create("testing Date picker DBE") DBE dbeDatePicker = date(db,30,today(),true) DBE dField = field(db,"","",30,false) setGotFocus(dbeDatePicker, selectDate) setSize(db,300,200) show db
|
|
![]() |
|
![]() |
|
The problem is the ack box.
Don't show any dialogs or popups from your callback. If you need to warn the user, then do so after they click OK or Apply. ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
I also notice that you can select a date without using the pulldown by clicking on the day, month or year and using the up/down curser keys.
These events do not fire the callback. ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
Yes Tony, using the cursor keys also does not fire the callback. Only way it is fired is on hitting Enter
![]() |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Date picker call back
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.