Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content
Announcements
WEBINAR June 25, 2025: Build on Apache Iceberg with Qlik Open Lakehouse - REGISTER TODAY
cancel
Showing results for 
Search instead for 
Did you mean: 
marconim_
Contributor
Contributor

How can I call a subroutine in another tab at load editor?

I want to create a tab only with the main subroutines. 

How can I call a sub from another tab?

 

 

2 Replies
ar5
Partner - Contributor III
Partner - Contributor III

rajuamet
Partner - Creator III
Partner - Creator III

Hi @marconim_ , 

To call a subroutine from another tab in the Qlik load script editor, you simply define the subroutine in one tab and call it from any other tab. The script is executed sequentially through all tabs, so subroutines defined in earlier tabs are available to call in later tabs.

Example:

Tab 1 - Subroutine:

UB FormatDate(InputDate)
LET FormattedDate = Date(InputDate, 'DD-MM-YYYY');
TRACE Date formatted: $(FormattedDate);
END SUB;

Tab 2 - Main Script:

CALL FormatDate('2024-03-12');

raju_insights_0-1741765021766.png