Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] Newline in tMap Condition

Hi everybody,
I have a problem with an expression, i would like to insert newline in my result :
MY EXPRESSION :
row1.PS_DESCR+" Longueur : "+ row1.PS_LONG+" Largeur : "+ row1.PS_LARG +" Epaisseur : "+ row1.PS_EPAIS+ " Poids : " +row1.PS_POIDS
I HAVE
---------------------------------------------------------------------------------------------------------------------
Results : Longueur : 25 Largeur : 15 Epaisseur : 10 Poids : 5  
----------------------------------------------------------------------------------------------------------------------

I WANT

----------------------------------------------------------------------------------------------------------------------
Results :
Longueur : 25
Largeur : 15
Epaisseur : 10
Poids : 5  
----------------------------------------------------------------------------------------------------------------------
Labels (2)
10 Replies
Anonymous
Not applicable
Author

Hi,
row1.PS_DESCR+" Longueur : "+ row1.PS_LONG+" Largeur : "+ row1.PS_LARG +" Epaisseur : "+ row1.PS_EPAIS+ " Poids : " +row1.PS_POIDS

If I understand you well, you should insert newline in each row.
Please see my screenshot
Best regards
Sabrina
0683p000009MEbl.png
Anonymous
Not applicable
Author

 
  0683p000009MEbq.png
Anonymous
Not applicable
Author

No i want to import row1.PS_DESCR row1.PS_LONG row1.PS_LARG  row1.PS_EPAIS row1.PS_POIDS     in the row 2 column description ( concatenation of row1 columns in one field (with newline))
Anonymous
Not applicable
Author

Hi mmegrous,
Have you tried concatenating \n char between your columns?
row2.column = row1.PS_DESCR+"\n"+row1.PS_LONG+"\n"+row1.PS_LARG+"\n"+row1.PS_EPAIS+"\n"+row1.PS_POIDS
Try above.
Vaibhav
Anonymous
Not applicable
Author

Hi,
If so, you can link tMap to component tNormalize which normalizes the input flow following SQL standard.
Best regards
Sabrina
0683p000009MEay.png 0683p000009MEVf.png 0683p000009MEbv.png
Anonymous
Not applicable
Author

And can i make a return a line  ? Easily ? with a symbol or other because +"/n" don't work
Anonymous
Not applicable
Author

Hi,
It works, what is the error you are getting? You need to use "\n" and not "/n".
0683p000009MEc0.png
This is what i used inside tmap with sample data with me
row9.Insurance_SegmentID + "\n"+row9.SetID +"\n"+row9.InsurancePlanID+"\n"+row9.CompanyID+"\n"+row9.CompanyName
I have following row in tfixedflow
IN1|1|MEDICARE|3|MEDICARE
Please check once again.
Vaibhav
Anonymous
Not applicable
Author

Hi,
I'm trying to import with your example, the transfert is completed but no new line ( the result appear just on a line)
Anonymous
Not applicable
Author

Try outputting results to delimited or log row... or try copying the contents of cell into the notepad...
Vaibhav