S
Sidd
Hi experts,
I would like to add tags to a document with the following
requirements:
1. The tag has two counters
2. The value of one counter is typical, i.e. it depends
on its position within the document and hence can get re-
computed if content is moved around and its relative
position changes.
3. The value of the other counter within the tag is
temporally sequential - strictly based on when I added the
tag. It should not change based on its position within
the document - it is a running counter.
Thus if I move the tag around, the first counter will
readjust its value, while the second counter will have a
fixed value.
Also, if I delete a tag, then there may be "holes" in the
sequence of values of the second counter, whereas the
first counter will have happily readjusted its values
through the document.
Can I do this using any standard fields - SEQ, LISTNUM
etc. or do I have to do some deft VBA programming? --
Code snippets welcome in this case.
Thanks much
-Sidd
Example below:
PRD:1 TPRD:1 The case shall be blue.
PRD:2 TPRD:2 The handles shall be white.
.....
After adding another tagged statement you would have.
PRD:1 TRD:1 The case shall be blue.
PRD:2 TRD:45 The case shall be scratch resistant.
PRD:3 TRD:2 The handles shall be white.
.....
45 (as example here) reflects the number of all tags
intended or inadvertent that have thus far been entered
into the document, some of which may have been deleted, in
this case 45.
I would like to add tags to a document with the following
requirements:
1. The tag has two counters
2. The value of one counter is typical, i.e. it depends
on its position within the document and hence can get re-
computed if content is moved around and its relative
position changes.
3. The value of the other counter within the tag is
temporally sequential - strictly based on when I added the
tag. It should not change based on its position within
the document - it is a running counter.
Thus if I move the tag around, the first counter will
readjust its value, while the second counter will have a
fixed value.
Also, if I delete a tag, then there may be "holes" in the
sequence of values of the second counter, whereas the
first counter will have happily readjusted its values
through the document.
Can I do this using any standard fields - SEQ, LISTNUM
etc. or do I have to do some deft VBA programming? --
Code snippets welcome in this case.
Thanks much
-Sidd
Example below:
PRD:1 TPRD:1 The case shall be blue.
PRD:2 TPRD:2 The handles shall be white.
.....
After adding another tagged statement you would have.
PRD:1 TRD:1 The case shall be blue.
PRD:2 TRD:45 The case shall be scratch resistant.
PRD:3 TRD:2 The handles shall be white.
.....
45 (as example here) reflects the number of all tags
intended or inadvertent that have thus far been entered
into the document, some of which may have been deleted, in
this case 45.