![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Print recent History of the Object only Topic Summary: Print recent History of the Object only Created On: 20-Oct-2008 07:59 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Hi @ All,
If the enumerated Attribute value is changed, I want to trigget email. So, I just want to get the modified value (Old value & New Value) to use in the email. I used History to get the Old value & new Value. Since I dont want all the history to be included in the email, I just tried this code( Please see the attached full code). So I used this code: History h for h in current Object do if (h.date == today) { returnHistory(History h) } But If i make 5 changs today Its printing all the five changes. If i use this code to send email, Its sending six individual email with each changes seperately. Is there way to get the value which was modified last. I dont want the previous history and all even if its changed today also. Thanks a lot in Advance!!! Please see the output below: Changed By: Administrator on 10/20/08 10:47:27 Attribute Name: Test_Attr: _null_ Changed to -> Test0 Changed By: Administrator on 10/20/08 10:48:14 Attribute Name: Test_Attr: Test0 Changed to -> Test5 Changed By: Administrator on 10/20/08 11:13:34 Attribute Name: Test_Attr: Test5 Changed to -> Test1 Changed By: Administrator on 10/20/08 11:16:22 Attribute Name: Test_Attr: Test1 Changed to -> Test2 Changed By: Administrator on 10/20/08 11:19:46 Attribute Name: Test_Attr: Test2 Changed to -> Test4 Changed By: Administrator on 10/20/08 11:26:13 Attribute Name: Test_Attr: Test4 Changed to -> Test0 |
|
![]() |
|
![]() |
|
If you just loop though the history items, then the last one after the loop is the last history item (latest). Then you can access the details for this latest item:
for h in current Object do { } returnHistory(h) ------------------------- Pekka.Makinen@softqa.fi SoftQA Oy -http://www.softqa.fi/ |
|
![]() |
|
![]() |
|
Great!.... It worked for me! Thansk a lot :-)
|
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Print recent History of the Object only
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.