E_PDM: Review table in a Word document

Hello

No matter how hard I look, I can't find the solution. 

I created a Word doc template in which I mapped the variables I need. everything works well to fill them. However, I also want to have a revision table (SW table type), which displays 3 revisions: the first A, and the last 2 (B and C, or E and F if you can do it).

I don't know how to go about it... I tried with direct mail type fields (Yes...), but it doesn't work at all.

For example, my Revision variable is set to A. A new revision of the document is undergone. I want the first line to stay A, and the 2nd one goes to B. With IFs in word, I can't get by.

The approach in my opinion:

    - 1st revision:   fill in the A index and the default comment Creation

    - 2nd revision: if REV <> rev_dessus, put new rev. (B).  Same with the transition commentary.

    - 3rd revision: if REV <> rev_dessus, put new rev. (C).  Same with the transition comment.

    - 4th revision: if REV<> dernière_rev_tableau, copy the last line C, paste on the 2nd line (replace B). Same as transitional comment.

                                  put the new rev D last. Same as transitional comment.

 

Should you go through a macro?

 

Cdt 

Hello

I think that a macro would be the most likely to meet the need. I'm afraid that with the if of word it will be a little more complicated since you would have to switch the mapped variable from one line to another.

As it stands, the simplest thing I see would be to have a pre-parameterized line with the fields pointing to the properties mapped with the varaibles, then copy and paste these fields to another row of the table according to the evolutions via a macro.

I am in the process of setting up a similar system and I have a solution via EPDM variables and Workflow, in the attached image.

 

however I have a problem, I can't add all the variables, does Word have a limit in the quantity of custom properties, it blocks me at 15


table_de_revision_pdm.png