Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

is it possible to create more than 1 inputfield?

Hi all,

I am trying to put 2 different input field in my report but when I refresh I get  "Script line error"! Anybody can help please?

Thank you in advance

4 Replies
vinieme12
Champion III
Champion III

please post your script

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
Not applicable
Author

Here you are, thx:

Inputfield test1;

Test1:
Load RecNo() as InputKey,
'Fill In Capital "Y" or "N"' as Test1
autogenerate  10;

Inputfield test2;
test2:
Load RecNo() as InputKey,
'To do' as test2
autogenerate  12;

Not applicable
Author

Capture.JPGInstead, i think you can create two input box, and hide one caption and put them into a container, this is my dummy method.

Not applicable
Author

Sorry I found the error.

I was using peek() function; for the first table it works but the second not. I replaced the peek function by a  variable. and all seems to work fine:

let vNr = peek('NrOfLines');

Inputfield test1;
Test1:
Load RecNo() as InputKey,
'Fill In Capital "Y" or "N"' as Test1
autogenerate  $(vNr); //peek(NrOfLines);

Inputfield test2;
test2:
Load RecNo() as InputKey,
'To do' as test2
autogenerate  $(vNr); //peek(NrOfLines);

thank you for your contribution