This article describes how to use a QScript to unhide all hidden variable sets in your document.
Requirements
Please note these steps require a Displayr license.
Method - Tools Menu
1. Select your data set in Data Sources
2. Click on the Tools Menu to expand it > Hide > Unhide All Hidden Variable Sets.
Method - Custom QScript
If wanting more customization outside the built-in automation, a Displayr Enterprise user license which includes the ability to add custom analysis menu items and QScripts. See How to Use QScripts in Displayr for more details.
To run the QScript to unhide all variable sets in the document:
- From the toolbar menu, select Anything (+) > [Your account name] > Open QScript Editor.
- Paste the following code into the QScript editor:
// QScript Hide/Unihde - Unhide All includeWeb('QScript Selection Functions'); let data_file = requestOneDataFileFromProject(false); let previously_hidden = []; data_file.questions.forEach(function (q) { if (q.isHidden) { q.isHidden = false; previously_hidden.push(q) } }); project.report.setSelectedRaw(previously_hidden);
- Click the Play button in the QScript Editor toolbar to run the QScript:
- If you want to save the QScript for future use, click OK then enter a file name for the QScript and click OK. This will save the QScript to your Displayr cloud drive and will then be available in all of your documents by selecting Anything (+) > [Your account name] > Open QScript from Displayr Cloud Drive > [QScript Name]. If you don't wish to save the QScript to the cloud drive, click Cancel in the QScript Editor.
Next
How to Hide a Category in a Pick One Variable Set
How to Hide/Unhide Variables Sets Selected from a List
How to Hide/Unhide Questions with Many Categories
How to Use QScripts in Displayr
How to Create a Custom QScript