Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Reduce Document Name issue

Hello Gurus,

I want to distribute a report with name as [Document Name]-[Parameter Value]  format. e.g. Document Name = SALE, Parameter = RunDate, Parameter Value = 20120801

then, My distributed document shuold have name as SALE-20120801.QVW

I have tried using Reduce Document Name functionality with %SourceDocumentName%-%ScriptParameter%  but it produces document as "SALE-RunDate=20120801" 

I dont want parameter to appear on the name.

Please help.

2 Replies
agigliotti
Partner - Champion
Partner - Champion

Hi, I have tha same your needs.

Did you fix it ?

Please let me know.

Thanks

Andrea

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

I think the solution is to load the parameter variable into a document field, and then use the Field name as part of the reduced document name. For example, in the script add:

LOAD '$(RunDate) ' as _RunDate AUTOGENERATE 1;

Then in the template:

%SourceDocumentName%-%DocumentField,_RunDate%

-Rob