![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Date value by clicking on the dateDBE of the calendar Topic Summary: Is there any function to output this value? Created On: 18-Jul-2008 22:57 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
I am using two Date DBEs in addition to many other DBEs to generate the metrics for a module. One will be set as the 'startDate' and the second for the 'endDate'. I would be using the values of these DBEs to set the limits for the metrics generated. Various sets of results will be generated by different pushbuttons through the function format:
set(DBE pushbutton, some function) The date DBEs are declared along with other DBEs: DBE stDateDBE = date(..relevant code here..) DBE endDateDBE = date(..relevant code here..) I am now realizing the startDate and endDate values by repeating the following code in each of the functions for the pusbuttons. startDate = getDate(stDateDBE) endDate = getDate(endDateDBE) Is there any function that outputs the date value when I click on the choice of date in the drop-down calendar? Then there would be no need to repeat this code in each of the functions. - Krishna |
|
![]() |
|
![]() |
|
I don't think there is. I tried adding a callback to the date DBE. No errors, but the callback did not fire. This is different behaviour from other choice DBE's.
DB db = null DBE dbeDate = null Date d = today void doDate(DBE dbe) { // this callback doesn't get called infoBox("callback fired on date dbe") d = getDate(dbeDate) } db = create(dbExplorer, "test") dbeDate = date(db, 20, d, true) realize db // does not cause any errors set(dbeDate, doDate) show db ------------------------- Tony Goodman Smart DXL limited www.smartdxl.com |
|
![]() |
|
![]() |
|
I find when pressing the enter key after selecting a date, the callback fires.
------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com |
|
![]() |
|
![]() |
|
Thanks, Tony.
Hi David, This is really an interesting observation. The user of the dxl code should know (or be reminded) to press enter every time the date is changed. - Krishna |
|
![]() |
|
![]() |
|
How interesting. Thanks David. ------------------------- Tony Goodman Smart DXL limited www.smartdxl.com |
|
![]() |
|
![]() |
|
See. You guys keep me around for a reason.
![]() ------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.