Qlik Community

QlikView Layout & Visualizations

Discussion Board for collaboration on QlikView Layout & Visualizations.

Not applicable

When should a developer make a new tab in edit script

When should a developer make a new tab in edit script

1: when code exceeds 255 lines

2: When he first time access edit script

3: when the script is no more logically related

Tags (1)
1 Solution

Accepted Solutions
ngulliver
Valued Contributor III

Re: When should a developer make a new tab in edit script

Hi, Sreeharsha.

Jason is absolutely correct.

Remember, the person coding the edit script may not be the same person who has to amend or maintain it.

So it is important to break it down into logical sections so that the code can be easily followed. By having clearly named tabs you can resolve issues much quicker.

Regards,

Neil

6 Replies
jason_michaelid
Honored Contributor II

Re: When should a developer make a new tab in edit script

Number 3.  The best use of tabs in the edit script is to logically divide the sections of the script. Then you can put a nice big header of comments explaining what this section of script will do (plus of course more commenting on lines that need it, which will be many of them).

Jason

Not applicable

Re: When should a developer make a new tab in edit script

This is really help full,

what if entire script is related with only one section?

Re: When should a developer make a new tab in edit script

Whenever it improves maintainability of the application.


talk is cheap, supply exceeds demand
ngulliver
Valued Contributor III

Re: When should a developer make a new tab in edit script

Hi, Sreeharsha.

Jason is absolutely correct.

Remember, the person coding the edit script may not be the same person who has to amend or maintain it.

So it is important to break it down into logical sections so that the code can be easily followed. By having clearly named tabs you can resolve issues much quicker.

Regards,

Neil

jason_michaelid
Honored Contributor II

Re: When should a developer make a new tab in edit script

"what if entire script is related with only one section?"

Then try to break it down further. But if it is a small script only performing one logical function that one tab is fine (although the settings is usually best in a tab of its own for tidiness)

Re: When should a developer make a new tab in edit script

Some developers put every load in a sub routine and put groups of related sub routines on their own tab. On a 'main' tab all those subs are called in the order they should be executed. This makes it easy to follow the flow of the script at a high level and dive into details in the subs.


talk is cheap, supply exceeds demand
Community Browser