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

Is it possible to provide external stylesheet parameter value in document specification file in RPE?

I am using RPE v2.0.1.  I am using external stylesheet common for all documents which I am applying everytime while generating report. There is an entry in stylesheet named XYZ,  and I want to implement XYZ in document specification(dsx file).

Is there a way to make XYZ as an external variable in stylesheet so that I can provide value for XYZ while generating report?

0 votes



2 answers

Permanent link

No, you cannot refer RPE variables in "Stylesheet" property of the output.

0 votes

Comments

Thanks for your response Subramanya.

Does it mean stylesheet which we apply in RPE is fixed. we can not change stylesheet values in document specification by any way?

It is not. When you generate document, you can edit the Stylesheet as in the following screen grab.

But you should provide the file name (along with full path or relative path) - ss1.doc in this example. You CANNOT set it to a variable XYZ (that holds value "ss1.doc").

I will rephrase the question.

For example, I have one entry in stylesheet(.dot file) named DocumentNumber. I want to edit DocumentNumber in such a way that it will pop up as an external variable while generating the output. I want to provide DocumentNumber value by User interface every time I generate the report.

Can you tell what "DocumentNumber" will be used for? Based on its purpose, I can suggest other options available.

DocumentNumber is a field in a stylesheet to provide the proper document number as per client specification(for eg TAS3469).  right now that field is filled manually after every document generation. so our requirement is to provide this value from the user interface while generating document(in document specification file).

This DocumentNumber field is in the stylesheet so I am not able to find any way to make it as an external variable and provide it's value while generating output.

Could you please suggest any thing so that I can make this stylesheet field to work as an external variable?


Permanent link
In that case, you can try using "Field" element in RPE template. This will insert the field in Word output.
You can set "Field code" property similar to Field code that you use in Word (without quotes). You can use RPE variable in "Field code" property so that the field is filled with value given by user during document generation.

0 votes

Comments
 Thank you for the suggestion. I followed the steps but it didn't worked.
 
 Let me rephrase my exact requirement again:
 
 I have a word stylesheet (.dot file) which has few fields like documentNumber and revisionnumber. This stylesheet will be used to genrate 
 a document through RPE template file(.dta).I want to populate some value against the fields (documentNumber and revisionnumber), i have created 
 an external variable by using filed code as mentioned above but the values are not getting reflected in the generated document.
 
 Sample output : 
 
 documentNumber > RP_1234
 RevisionNumber > REV_1
 
 Please let me know if i am missing something or doing something wrong.
 

 Thanks in Advance!! 

Can you share the stylesheet you are using? I will provide you a sample template that inserts same fields like your stylesheet does.

I have created fields in RPE template and mapped those with stylesheet fields.

It's working now.

Thank you so much for your help.

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,024

Question asked: Dec 11 '18, 1:55 a.m.

Question was seen: 2,206 times

Last updated: Dec 13 '18, 6:07 a.m.

Confirmation Cancel Confirm