Qlik Community

Qlik NPrinting Discussions

Discussion Board for collaboration on Qlik NPrinting.

markp201
Contributor III

Common report

We have three reports which only differ by a filter and report header.

Can the report header be dependent on the filter?  I thought setting up a variable or adding a column to a report - something to feed the header

We'll have 3 report objects with their respective filters but they all share the same template.

Know what I mean?

1 Solution

Accepted Solutions
elizafilip_2014
Contributor II

Re: Common report

Hello Mark,

If I understand correct your request, you can use GetFieldSelections function for header reports or columns label.

See the attach file.



6 Replies
ogster1974
Honored Contributor II

Re: Common report

Have one report and 3 publish tasks.  apply the filter to the task.  you can give the report a friendly name in the task itself when adding the report.

Regards

Andy

atkinsow
Valued Contributor II

Re: Common report

Can you provide more detail?   There are multiple possibilities but it depends on what your filter is, whether you want separate files for each report or whether they are different tabs in the same workbook, how the header is different.

You might be able to use a cyclic field at the report level.

The column names could be dynamic based on variables in Nprinting.

markp201
Contributor III

Re: Common report

With the exception of a header which is dependent on the filter, everything is the same.  What I've done so far is create a column with a small expression to build the header.   So far it works but I would prefer a simpler solution - variable maybe.  I've read that textbox are passed as an image so not digging that idea.

elizafilip_2014
Contributor II

Re: Common report

Hello Mark,

If I understand correct your request, you can use GetFieldSelections function for header reports or columns label.

See the attach file.



markp201
Contributor III

Re: Common report

Yes, that's exactly how we resolved this issue.  Great minds...

elizafilip_2014
Contributor II

Re: Common report

My pleasure .

I am glad it did help.

Community Browser