Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Broly21000
Contributor
Contributor

recurring program , can i make a function ?

Hello evryone ,

I have a sheet that makes a program that I use often, is it possible to make it a function with parameters in which I could call in all applications?
For example a function that allows me to do a load to generate all the orders of a customer for a specific category.

can I make a getOrder function with customer id and category id as parameters

and that I can call this function everywhere ?

Labels (1)
1 Solution

Accepted Solutions
Aurelien_Martinez
Partner - Specialist II
Partner - Specialist II

Hi,

 

You can create function with the key word sub. Example :

 

Sub getOrder(customer_id, category_id)

//script

end sub

 

Call getOrder('1323', 'AAE33');

Help users find answers! Don't forget to mark a solution that worked for you!

View solution in original post

3 Replies
Aurelien_Martinez
Partner - Specialist II
Partner - Specialist II

Hi,

 

You can create function with the key word sub. Example :

 

Sub getOrder(customer_id, category_id)

//script

end sub

 

Call getOrder('1323', 'AAE33');

Help users find answers! Don't forget to mark a solution that worked for you!
Broly21000
Contributor
Contributor
Author

thank you for your comment, how to call this function from another application without rewriting it?

Aurelien_Martinez
Partner - Specialist II
Partner - Specialist II

You can write your function in text file and load it with the include
instruction.
Help users find answers! Don't forget to mark a solution that worked for you!