![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: WEXP in DOORS 8.2 error Topic Summary: Created On: 23-May-2007 14:23 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Running WEXP ( 11.4 ) in DOORS 8.2 produces a warning 'Cannot extract path name from ... '
When clicking the Export button. Further investigating, it looks like the behaviour of matches() has changed between 7.1 and 8.2 this code snippet will extract the file path OK in 7.1 but not 8.2 string fname = "C:\\temp\\wordFile.doc"; // debug // extract pathname - assumes subdocuments go into path specified string wordFilePath = "" if ( matches("[\\/]([^\\/]*)$", fname) ) wordFilePath = fname[0:start 0]; else { warningBox "Cannot extract path name from " fname return false } Modifying the matches stament to: string fname = "C:\\temp\\wordFile.doc"; // debug // extract pathname - assumes subdocuments go into path specified string wordFilePath = "" if ( matches("[\\\\/]([^\\\\/]*)$", fname) ) wordFilePath = fname[0:start 0]; // modified else { warningBox "Cannot extract path name from " fname return false } now works in 8.2 and 7.1 This code snippet is @ line 165 in wexpinit.inc if you find your copy of WEXP doesn't run in 8.2 ------------------------- Dave +44 (0)23 9270 5711 david.robbins@astrium.eads.net ~~~~~~~~~~~~~~~~~~~~ EADS Astrium, Anchorage Road Portsmouth. Hampshire. UK PO3 5PU Edited: 23-May-2007 at 14:26 by Dave Robbins |
|
![]() |
|
![]() |
|
I have had a response back from support:
The difference is due to a defect that was fixed in DOORS 8.2. Defect ID 25255. See also: https://support.telelogic.com/en/doors/info/fixed/fixed.cfm?vid=236&SearchPhrase=&ContentGroup=DXL&StartRecord=21 The problem was that pre-8.2 clients wouldn't always recognise incorrect regular expressions. So, beware of this, as code that ran previously on 7.1 may not now work as expected. ------------------------- Dave +44 (0)23 9270 5711 david.robbins@astrium.eads.net ~~~~~~~~~~~~~~~~~~~~ EADS Astrium, Anchorage Road Portsmouth. Hampshire. UK PO3 5PU |
|
![]() |
|
![]() |
|
Good work dave. Nice to see you are still on the case.
------------------------- Andrew Tagg Thales Air Systems, Melbourne Australia. andrew.tagg@thalesatm.com |
|
![]() |
|
![]() |
|
Dave,
My version of WEXP (11.4.8) is encrypted. How did you make the change? Steve Kay Hologic, Inc. |
|
![]() |
|
![]() |
|
Dave,
Thanks for providing the solution to this problem! However, you state the change is on line 165 in wexpinit.inc. In my version of wexpinit.inc, the line of code you modified occurs twice, on lines 193 and 356. Did you also modify the second occurrence? My version of WEXP is "WEXP 1104 20050816" The last update to wexpinit.inc was "JD 26/04/05" Regards, Ken. |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
WEXP in DOORS 8.2 error
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.