Qlik Community

QlikView Publisher

Discussion Board for collaboration on QlikView Publisher.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
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
Honored Contributor II

Re: Reduce Document Name issue

Hi, I have tha same your needs.

Did you fix it ?

Please let me know.

Thanks

Andrea

Re: Reduce Document Name issue

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

Community Browser