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

RPE DNG Force Level 1 Heading Sequence Renumbering

Hi,

It is possible in Word to get the level 1 heading number sequence to skip some numbers in the sequence as in the following example.


This can be achieved via the 'set numbering value' dialog by right-clicking on the heading number.


Is it possible to get RPE to do this when publishing a DNG module?

e.g. publish the first 3 headings as 1,2,3 and then publish the 4th heading as 10 ?

0 votes


Accepted answer

Permanent link

If List element is used in RPE template, you can use "Set Numbering Value" property for the List Item element within it. However, when publishing a DNG module, usually dataSource/artifact/title (for Heading artifact) will be printed through Text element. There is no property for Text element that can be used to set list number value.

The simple solution to skip numbers is to use JavaScript in RPE. You can print dataSource/artifact/moduleContext/contextBinding/section before the Heading and modify its value based on some logic (Check its value - if it is >3, add 6).

If you refer sample template %rpe_home%\templates\DNG\DNG_Module.dta, just print dataSource/artifact/moduleContext/contextBinding/section (as Script Expression) from $2 before dataSource/artifact/title.

Sean F selected this answer as the correct answer

0 votes


2 other answers

Permanent link

You can adapt a Word stylesheet for use with RPE and use the DOORS chapter/section numbering instead of automatic Word chapter numbering in your template - at least that's how it can be solved and looks like it would solve your issue (presuming the skipped chapters are filtered out in a view you are exporting from and you want to seeĀ  DOORS chapter numbers for consistency).

1 vote


Permanent link
^^Thanks Prasad
^Thanks Adrian

Yes, we can solve it by generating the heading numbers from RPE.

But we want to use the normal Word stylesheet auto-numbering.

It is actually possible to force auto-numbering to jump forward and skip sections as shown in the screenshot.

I was just trying to see if that could be done from RPE. Very unlikely but just checking.

I suspect it may be possible using a post-processing macro but I will have to do more research.

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
× 12,025

Question asked: Jun 16 '19, 4:08 a.m.

Question was seen: 3,709 times

Last updated: Jun 28 '19, 11:01 a.m.

Confirmation Cancel Confirm