Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Can any one help me how to add Object Heading number to existing Object text in DXL Scripting?

Eg. please consider a below scenario.

The document consists of Object heading and Object text, Object text consists of Object heading upto heading level3(1.1.1). I want to add further heading level(1.1.1.1) for Object text in DOORS through DXL scripting.

can anyone help me out please.



Regards,
Yashwanth

0 votes



2 answers

Permanent link
@yashukumar, Hi

This is DXL specific question and there are high chances of getting an answer for this in the dxl forum

Also, there are many existing scripts added there, which may already answer your question, so you can check those before asking

0 votes


Permanent link
 @yashukumar, hello

If I understand the question, you'd like to display the "object number" for objects that contain only object text values below level 3.  Please note, every object in a DOORS formal module contains both "object heading" and "object text" attributes.  Every object also has an "object number".  The "object number" is displayed in the "main" column for any object that has a value for "object heading".  This display logic for the "main" column cannot be manipulated through DXL.  It is possible to create a column that appears like the "main" column but users cannot use it to edit objects and it would not print.

You may be able to get what you want by simply displaying a column with the "object number" property.  Otherwise you may want to insert a Layout DXL column with the following:

int i = level obj
string s = number obj
Regexp isTxtObj = regexp "0-"
if (i > 3) {
if(isTxtObj s) {
s = s[0:start 0 - 1] s[end 0 +1:]
}
}

display s

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Jun 13 '13, 1:31 a.m.

Question was seen: 16,962 times

Last updated: Jun 13 '13, 9:37 a.m.

Confirmation Cancel Confirm