Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Defect acknowledgement with Nprinting Engine May 2022 SR2, please READ HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
miredoju
Creator
Creator

Import variable as recipient filter with excel

Hi,

I know how to Import recipients via Excel - thats works as designed.

But how can I include a recipient filter as variable (not as field) ?

I think there must be a special syntax used in excel -  if I do it in the same way as I import recipient filter fields the variable would be imported as field.

Michael

1 Solution

Accepted Solutions
Daniel_Jenkins
Specialist III
Specialist III

Hi Michael,

In NPrinting 16.x you can import variable based filters using the syntax :

[Connection].v\[VariableName]={[Value]<calculate>}

Where:

[Connection] is the name of the connection to the .qvw that contains the variable. This is optional.

[VariableName] is the name of the QlikView variable

[Value] is the value you want to set the variable to

<calculate>  flags the “Calculate” check box in the created filter. To be used when [Value] is a formula.

Take a look at this thread if you want to download and test a working example: Nprinting - Filters vs Current Selections

NPrinting 17.x does not (yet) support variable type filters.

HTH - Daniel.

View solution in original post

8 Replies
Daniel_Jenkins
Specialist III
Specialist III

Hi Michael,

In NPrinting 16.x you can import variable based filters using the syntax :

[Connection].v\[VariableName]={[Value]<calculate>}

Where:

[Connection] is the name of the connection to the .qvw that contains the variable. This is optional.

[VariableName] is the name of the QlikView variable

[Value] is the value you want to set the variable to

<calculate>  flags the “Calculate” check box in the created filter. To be used when [Value] is a formula.

Take a look at this thread if you want to download and test a working example: Nprinting - Filters vs Current Selections

NPrinting 17.x does not (yet) support variable type filters.

HTH - Daniel.

miredoju
Creator
Creator
Author

Hi Daniel,

thanks so much - I don't know why I didn`t find this thread you send to me (I searched a lot ;-()

But now it works !

Michael

khaled_dabbous
Contributor II
Contributor II

Hi Daniel,

Does NPrinting 18.9.5 support variable type filters?


Khaled

Daniel_Jenkins
Specialist III
Specialist III

Hi Khaled,

Not yet supported in 17.x/18.x unfortunately. I have no news on when/if it will be supported.

HTH - Daniel.

Hatus
Partner - Creator II
Partner - Creator II

Hi Daniel

 

Since the new NPrinting November 2019 supports  variables as recipient filter I tried to import them in Excel like described and it seems not to work. All variables were imported as Fields.

Was the import variable as recipient filter with excel tested for the November 2019?

Best regards

Hatus

Ruggero_Piccoli
Support
Support

Hi,

Please avoid to continue a so old conversation, specially when it is already solved. Pleas open a new question, that will be more useful for other readers.

To import filters with variables from Excel files you need to add the  new column Variables as latest one of the Filters worksheet as visible in the attached file. Then you need to add the variables under that column. The syntax is:

- [VariableName]={FixedValue} in case you want to set a variable to a fixed value

-[VariableName]={"=Formula()"}<evaluate> in case you want to use a formula to calculate the value of a variable. Note the evaluate at the end.

You can add how many entries you want, you need only to separate each one with a comma.

Other parts of the same row still remain as usual.

Best Regards,

Ruggero



Best Regards,
Ruggero
---------------------------------------------
When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads with a LIKE if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads with LIKEs if you feel additional info is useful to others.
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi @Ruggero_Piccoli 

There is actually a bug in current help site as Examples.zip pack does not contain "Variables" column in recipient import template.

https://help.qlik.com/en-US/nprinting/June2019/Content/NPrinting/Examples/Examples.htm

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.
Ruggero_Piccoli
Support
Support

@Lech_Miszkiewicz ,

Yes, I know and I notify it yesterday to the documentation team with a new Examples.zip file.

Best Regards,

Ruggero



Best Regards,
Ruggero
---------------------------------------------
When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads with a LIKE if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads with LIKEs if you feel additional info is useful to others.