Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Multiple values pasting from excel to Input box issue

Hi All,

i have a issue Doing multiple selection pasting in Input box and searching using a button..

please find the attachment:

Excel File Like

ID

1

2

3

When i am copying this cells from excel and pasting in QV- Input box it's showing like "1  2  " Each cell ending with Double Spaces.

Can anyone help me this asap.

Thanks,

Surya.

1 Solution

Accepted Solutions
prieper
Master II
Master II

Think that you need to cover the linebreak as well.

Please try something like

'(' & REPLACE(REPLACE(REPLACE(TRIM('$(vSearchProduct)'), '  ', '|'),' ', '|'), CHR(10), '|') & ')'

Peter

View solution in original post

11 Replies
prieper
Master II
Master II

Think that you need to cover the linebreak as well.

Please try something like

'(' & REPLACE(REPLACE(REPLACE(TRIM('$(vSearchProduct)'), '  ', '|'),' ', '|'), CHR(10), '|') & ')'

Peter

RonaldDoes
Partner - Creator III
Partner - Creator III

Hi Surya,

I've tested this and found out that a combination of CR and LF work (with my Excel/QV12).

='(' & REPLACE(REPLACE(REPLACE(TRIM('$(vSearch)'), '  ', '|'),' ', '|'), CHR(10)&CHR(13), '|') & ')'

Please find the QVW attached.

Naamloos.png

Not applicable
Author

Hi Peter,

Thanks for your reply.. 

When i am Copy 1 and 13 and pasted in Input box it's not working..

Thanks.

Surya

Not applicable
Author

Hi Ronald,

Thanks for your reply.. 

When i am Copy 1 and 13 and pasted in Input box it's not working..

Thanks.

Surya

RonaldDoes
Partner - Creator III
Partner - Creator III

What does the text box say when you do so?

Not applicable
Author

you Just Give in input box "2  13  ". you will be know my issue ronald..

RonaldDoes
Partner - Creator III
Partner - Creator III

That gives the below result. Is that not what you are expecting?

Naamloos.png

Not applicable
Author

I want show green color of Product Name also.. Can you please help me .

Not applicable
Author

Product also need to associate with green color . We can see Input box as Product that's needs to be associated data...