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: DXL Beginner Questoin
Topic Summary:
Created On: 1-Jun-2006 20:38
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.
 1-Jun-2006 20:38
User is offline View Users Profile Print this message


Tracy Monteith

Posts: 33
Joined: 21-Dec-2005

I've just started trying to learn DXL in doors. 

First, in doors I have 2 attributes (A and B)
A is a field that contains a string that always ends in a number.
B is a field I want DXL to automatically contain just the number at the end.     how do I do this? Is there a regex feature in DXL?

   A                   B
------------------------------
XXX-1               1
YYY-2              2
XYZ-14            14


Second,  I'm looking for a good reference.  Can anyone recommend a good website or reference manual with cookbook examples? 

Advice ??
Thanks...

Report this to a Moderator Report this to a Moderator
 2-Jun-2006 08:42
User is offline View Users Profile Print this message


Pekka Mäkinen

Posts: 276
Joined: 18-Mar-2004

The DXL Help in DOORS is quite good (and almost only) introduction to DXL. In this forum there is also an DXL Programmers Guide (OLD!) in the thread

https://support.telelogic.com/en/doors/forums/messageview.cfm?catid=17&threadid=2838

For your question: yes, there is reqular expressions in DXL (search for them in the DXL Help). Your second column might in this case be e.g. a layout DXL (look for this in help) column showing information about attribute A.

-------------------------
Pekka.Makinen@softqa.fi
SoftQA Oy -http://www.softqa.fi/
Report this to a Moderator Report this to a Moderator
 2-Jun-2006 13:27
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

Create a new DXL attribute and add the following code:

string s= obj."attribute A" ""

string getNo(string s)
{
int i = 0
int len = 0

for (i = length(s) - 1; i >= 0; i--)
{
if (!isdigit(s))
{
len = i + 1
break
}
}

return(s[len:])
}

obj.attrDXLName = getNo(s)

-------------------------
Tony Goodman
http://www.smartdxl.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.