Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Help plz

I have a drop down list in my qlikview application that contains 3 values (lose, wine, new) how do i edit the script so that only the data with lose (for example) values are available without the need for a drop down selection box.

1 Solution

Accepted Solutions
montubhardwaj
Specialist
Specialist

Actions will be the best way to achieve this. The attached will help you. Here, Main sheet will always show you Jan data, Sheet1 will show you Feb data and Sheet 3 will show you Mar data. So this way you dont have to have Selection box. Hope that was helpful.

View solution in original post

9 Replies
Not applicable
Author

Hi,

try this!


SET mVar = 'lose';

LOAD
myField1,
myField2,
....
FROM myTable
WHERE myField1 = $(mVar);


Not applicable
Author

My biggest problem is that the application has a different tab for each category (lose,win,new) so in each tab I only want to see the relivent records. Every piece of ciode I have seen seem to be removing the other records from the whole application.

Is there any way to create a new qvd for each and then call on them at the designated tab's

brenner_martina
Partner - Specialist II
Partner - Specialist II

Hi,

you can enter an action to select the right content for each tab, look at sheet properties for triggers, Add Action, Add, Selection: Select in Field

montubhardwaj
Specialist
Specialist

Actions will be the best way to achieve this. The attached will help you. Here, Main sheet will always show you Jan data, Sheet1 will show you Feb data and Sheet 3 will show you Mar data. So this way you dont have to have Selection box. Hope that wa shelpful.

montubhardwaj
Specialist
Specialist

Actions will be the best way to achieve this. The attached will help you. Here, Main sheet will always show you Jan data, Sheet1 will show you Feb data and Sheet 3 will show you Mar data. So this way you dont have to have Selection box. Hope that was helpful.

Not applicable
Author

That definately helps alot ,Thanks .

but is their anyway the other records can be removed on each page so that the user can't change the selection from lose to win

montubhardwaj
Specialist
Specialist

Yes. you can do that. Go to properties of the list box ->General tab -> and then check Read only option. That will not allow anyone to make any selections in the selection box.

Not applicable
Author

You can still change the selection by selecting greyed out data from another field .

Sorry for bein a pain lol

montubhardwaj
Specialist
Specialist

Yes! you are right. If you select in other fields, this value will change and this is the way QV works(associative logic). Because you are not going to have any selection box there, so i think you should'nt be worrying about that .....

Hope I am right ....LoL