Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
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
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 18-Jul-2008 22:57
User is offline View Users Profile Print this message


Krishna Kandala

Posts: 170
Joined: 8-Jul-2006

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
Report this to a Moderator Report this to a Moderator
 21-Jul-2008 10:40
User is offline View Users Profile Print this message


Tony Goodman

Posts: 97
Joined: 6-May-2008

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
Report this to a Moderator Report this to a Moderator
 21-Jul-2008 15:04
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

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
Report this to a Moderator Report this to a Moderator
 21-Jul-2008 16:39
User is offline View Users Profile Print this message


Krishna Kandala

Posts: 170
Joined: 8-Jul-2006

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
Report this to a Moderator Report this to a Moderator
 22-Jul-2008 13:48
User is offline View Users Profile Print this message


Tony Goodman

Posts: 97
Joined: 6-May-2008

I find when pressing the enter key after selecting a date, the callback fires.


How interesting. Thanks David.

-------------------------
Tony Goodman
Smart DXL limited
www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 22-Jul-2008 17:46
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

See. You guys keep me around for a reason.

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.