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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] Change function in tmap

Hi team ,
StringHandling.CHANGE("Adwit_S1795 (add)","adwit_","AC")|| StringHandling.CHANGE("Adwit & Sukta PLC SP1","adwit &sukata","ACC1")
Like this I have many values in row.customer_Name ,which I need to replace  but I m getting below error . please help



Exception in thread "main" java.lang.Error: Unresolved compilation problem:
The operator || is undefined for the argument type(s) java.lang.String, java.lang.String

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi  
You can not use the operator || in a String field, try to change your expression to:

StringHanding.CHANGE(StringHandling.CHANGE(row1.customer_name,"adwit_","AC"), "adwit &sukata" ,"ACC1")

View solution in original post

2 Replies
Anonymous
Not applicable
Author

Hi  
You can not use the operator || in a String field, try to change your expression to:

StringHanding.CHANGE(StringHandling.CHANGE(row1.customer_name,"adwit_","AC"), "adwit &sukata" ,"ACC1")
Anonymous
Not applicable
Author

thank you shong , I am able to achieve this using treplace (processing) component