Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Inputfield messing the actual field

Hi!

I am adding command " '0' as [Change of HS date]" to my script to create a inputfield. But when I add the " Inputfield [Change of HS date];" on top of the table where I load data the field values turn into random numbers!

Capture.PNG

Any idea why this happens and how to fix it? Thanks!

Regards, Heidi

25 Replies
avinashelite

Befor Input.pngAfter  Input.png

Not applicable
Author

That's not the problem.

I haven't been able to input any values because the whole input function is not working in table box or straight table.

-Heidi

sunny_talwar

That is true, but when she said the values were random + she also said that she commented the inputfield statement from the script which makes me think if that is the issue. Because from what I know the inputfield will only survive the reload if it stays there each time. If during one of the reloads, the inputfield was removed, the next time you reload with the inputfield, the value will be what you entered (0 in her case).

Let me know if I am thinking this incorrectly.

Best,

S

Not applicable
Author

hmm can you move your field creation up into your preceding load then, just in case the fact it is loaded twice is causing the issue

avinashelite

yes sunindia bro Exactly, when she comments inputfeild the old state values will be rest,

but when she reloads it will be set to 0

sunny_talwar

Posted the unsaved copy of the app. PFA

Best,

S

avinashelite

can you post your app.

Not applicable
Author

Hi Joe!

Doesn't do anything. When I do the join - autogenerate load Sunindia suggested - values become zeros, which is good but I still can't input anything so there is still something badly wrong with this /:

sunny_talwar

Did you look at the sample QVW file I have posted. You might be able to figure out what the difference is.

Best,

S

johnca
Specialist
Specialist

All the instances I've used an inputfield I've written it thus, after declaring it;

' ' as [Change of HS date]

(Two single quotes with a space between them.)

Try it with the single quotes like this;

'0' as [Change of HS dates]