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
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
2 answers
@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
This is DXL specific question and there are high chances of getting an answer for this in the dxl forum
|
@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