Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
Jennell_McIntire
Employee
Employee

A few months ago, I worked on a ROI Calculator project that allowed me to use QlikView in a way that is not often used.  In this application, users entered various data and assumptions into input boxes that were then used to calculate some financial figures in the script.  One requirement of the application was that users were able to save the assumptions/scenarios they entered and load these scenarios at a later time as a starting point or basis for other scenarios.  I thought I would share how I used input boxes, variables and reloads to fulfill the requirements.

In this example, I simplified the application so that I could focus on what is being done and not so much the calculations in the script.  In the example I created, students can enter their grades to see their average score.

UI.png


Once they enter their data they can click the Save button to store what they entered into a QVD.  Users can also use the Load saved scenario button to select a previous entry to display in the input boxes.  When users click the Load saved scenario button, they are prompted with the window below where they can select the scenario they want to display in the input boxes.

window.png

Reloads are used often in this application to either get the scenario the user wants to see from the scenarios QVD or to save the data entered into the scenarios QVD.  Variables are also used a great deal in the input boxes like this:

input prop.png

There is a variable for each input box on the user interface.  There are also various variables used to determine what action the user would like to perform.  For example, in the script the first thing I check for is whether the user wants to load a selected scenario.  The vLoadScenarios variable is set to 1 when the user clicks the Load saved scenario button.  When vLoadScenarios is equal to 1, the data for the selected scenario is loaded and the variables used in the input boxes are set to the saved values.  Then all the scenarios are loaded into the application.

script.png

Other parts of the script handle creating a table with the entered data and storing it into a QVD.  To view this example application in action and to see the full script, check out my technical brief.

Using input boxes in this manner provides ease of use when entering data.  In the case of the ROI Calculator application, there was several input boxes so being able to use previously entered scenarios as a basis for new scenarios allowed users to “tweak” or make a few changes to their assumptions to determine the ROI impact.

Thanks,

Jennell

24 Comments
Not applicable

Chadd, you can use EDX without Publisher.  The task name is the QVW name.  Here are some reference posts: http://community.qlik.com/search.jspa?q=edx+without+publisher

1,603 Views
Not applicable

!!!!!!

0 Likes
1,603 Views
Not applicable

Hi

What I do to make it possible to enter data persistently and without traditional reload is as follows:
1. Create a website for entry and storage in a SQL database.

(I use IIS both for QV and this website)
2. View this in a object extension.
3. Read data in using Direct Discovery with stale cache few seconds.

To get it to work well. Add extension on a sheet that appears when you

want to enter data and you leave when you are finished.
When leaving the sheet the DD is triggered and loads new data.

If you want to edit the data, send the id over the querystring or something and have the website get the data from the SQL...

No waiting to reload, works on the server, all users gets the data, no macro ...

BR
Hans


1,666 Views
marthacano01
Partner - Creator
Partner - Creator

thanks for sharing!

0 Likes
1,666 Views
Anonymous
Not applicable

Hi Jennell,

Thanks for a Beautiful post!!

I just want to know is this scenario fine - performance wise?

Regards

Neetha

0 Likes
1,666 Views
datanibbler
Champion
Champion

Hi Jennell,

would it be possible to post this qvw, even in scrabbled form?

We might plan to do something similar on a large scale - to basically replace (part of) the myriad Excel files we have in the company with QlikView and I just need an example to show how this would look like.

Thanks a lot!

Best regards,

DataNibbler

0 Likes
1,666 Views
Jennell_McIntire
Employee
Employee

Hi Friedrich,

You can find the QVW I referred to in the technical brief.

Jennell

0 Likes
1,666 Views
datanibbler
Champion
Champion

Hi Jennell,

many thanks for that!

It doesn't seem to work on my machine, however. I can't seem to go any further than the date of birth? I cannot go from one input_field to the next using TAB, so I have to click -  but as soon as I click in the field for "Grade 1", that date disappears - if I use that editor window and click on OK, it doesn't even appear?

Never mind, though. I can build my own example. Anyway, it's just supposed to be a proof_of_concept, just to show that it's basically possible to build an input_mask in QlikView.

Best regards,

DataNibbler

0 Likes
1,666 Views
Not applicable

I am interested in how you used input boxes and assumptions to create a calculation, not so much on the saving scenario aspect. Can anyone help?

0 Likes
1,535 Views
Anonymous
Not applicable

Execellent  post,

Thanks for sharing Jennell

Regards.

0 Likes
1,535 Views