Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Using inputfield

Hello!

I define a column as an 'inputfield' then my user via the plugin can change the contents. No-one else can see anyone elses changes though. When the user closes the browser and then goes back to the document, their changes are still there, but is this simply until their instance of the document is unloaded from memory?

How is 'inputfield' designed to be used?

I am using 8.20

Regards,

Gordon

1 Solution

Accepted Solutions
blaise
Partner - Specialist
Partner - Specialist

The inputfields are stored for each user, in the DocumentName.qvw.shared file (you cannot read from the file though).

The values survives a document reload, the only way to restore them i by using a macro (.RestoreInputFieldValues if im correct) or by right click and choose restore. If you restore them, they will be restored to what was loaded in the qvw application.

I guess that the inputfield function was implemented because of Qv Salespersons Wink Hey look, you can also change and input values in the application, how cool is that Wink

I use inputfield for two reasons, storing variables that, for some reasons must survive a reaload, and for saving data into csv files. I've worked quite a while with the inputfields and always store the data into a file, I simply don't trust the function to store critical values.

View solution in original post

7 Replies
Not applicable
Author

Edited: Blaise is correct.

blaise
Partner - Specialist
Partner - Specialist

The inputfields are stored for each user, in the DocumentName.qvw.shared file (you cannot read from the file though).

The values survives a document reload, the only way to restore them i by using a macro (.RestoreInputFieldValues if im correct) or by right click and choose restore. If you restore them, they will be restored to what was loaded in the qvw application.

I guess that the inputfield function was implemented because of Qv Salespersons Wink Hey look, you can also change and input values in the application, how cool is that Wink

I use inputfield for two reasons, storing variables that, for some reasons must survive a reaload, and for saving data into csv files. I've worked quite a while with the inputfields and always store the data into a file, I simply don't trust the function to store critical values.

blaise
Partner - Specialist
Partner - Specialist

Are you sure about that? What I've found out is that the values is stored in the *.qvw.shared file. That file will not be cleared if the document is unloaded (the server is restared f.ex.).

Not applicable
Author

Thanks for the replies.

So I guess its main value would be in something like 'what if' analysis at the row level? It feels like inputfield should have more value than I can see!

Blaise - I'm intrigued by the way you use them. How do you do this when the column occurs at the row level? How do you save / restore the values automatically in a server environment?

Regards,

Gordon

blaise
Partner - Specialist
Partner - Specialist

Well i dont save them automatically 🙂 There isn't a way to auto save them, I've tried the onChange/onInput event but they also runs on clear (and that is very stupid but it is WAD accourding to Qt).

dmohanty
Partner - Specialist
Partner - Specialist

Hi blaise

Any idea how to read the Inputfield values from the .shared files?

I am able to fetch all bookmarks data, but not the inputfield values from .shared file.

Regards,

Dicky

jafari_ervin
Creator III
Creator III

end user should right click on the input column in the table then select  RestoreValue ->Restore All Value;


if you comment or not execute the input field command in your script then all your value reset, then for this purpose please set the if statement for your input field like below then create two job in qlikview server depend on another. first with passing 1 and second with passing 0 (in Reload Tab -> Passing Parameter);


if('$(v_ReloadType)'=1) then  

INPUTFIELD inputfield1;

end if;