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

input field back to zero

Hi everybody,

Who knows exactly what makes  input fields  reinitialised to zero?

Is there any doc (except ref manual i read) about it?

Best regards

chris

8 Replies
Gysbert_Wassenaar

They'll be reset to their original value when you reload the document.


talk is cheap, supply exceeds demand
Not applicable
Author

Hi Gysbert,

Not really. Sometimes it does when i modify the document and reload, sometilmes it doesn't when i just reload it.

Sometimes it does when i just reload it from an other place and replace it to the folder for access point.

Input fields are attached to records and document by the way

So i need to be sure what are exactly the events which set input fields to zero.

regards

chris

narender123
Specialist
Specialist

Hi,

For this you have to create a button and set that button property to your input id to 0 so that when you will press that button then input box will reset to the value 0

Regards:

Narender

Gysbert_Wassenaar

Ah, looks like I'm totally wrong regarding inputfields. See here. That post is from 2009 however, so maybe this behaviour has changed in some way.


talk is cheap, supply exceeds demand
Not applicable
Author

Hi

Thank you, but my goal is not to set values to zero but to understand how and when they are automatically reinitialised.

regards

chris

pennetzdorfer
Creator III
Creator III

Hi Chris, could you find out anything regarding that issue?

Thanks,

Florian

Not applicable
Author

Hi Florian;

not a really full and definitive one!

Input Fields are stored into QVW and belongs to the user who created it. I mean, with QVS, each user can see his own values.

I guess, a new (modified) loaded QVW posted on the repository set every value to 0. But not every time (!?)

So if once you get more informations please let me know

Best regards

Christian

Not applicable
Author

Hi,

I have a solution and you might try it out.

Document properties - Triggers - OnPostReload - Add Run Macro - Edit Module - enter the script below with ur field.

sub resetvalues

  set f = ActiveDocument.Fields("Fieldname")

  f.ResetInputFieldValues 0, x 

end sub

After that, reload your document and the macro will run automatically after reload.

Hope this would solve!

Thanks and best regards,

Chanel