Qlik Community

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
Read about the latest Qlik Community enhancements on the Community News blog!
cancel
Showing results for 
Search instead for 
Did you mean: 
bguiliano
Contributor II
Contributor II

Problem removing characters from a string

Hi, 

New to qlikview, i have a list box that has county name like:

ABCD - countyname

I wanted to remove the 'ABCD -' from the displayed text.

I tried:

mid(countyname,8) 

This seemed to keep they original text and append the county name text i want to the end.

what am i missing?

 

Thanks

8 Replies
StarinieriG
Partner
Partner

Hi,

try with subfield(countyname,'-',2)

bguiliano
Contributor II
Contributor II
Author

i just tried and it appears to be the same issue. 

Seems as though the original text is locked and can't be deleted for some reason

sunny_talwar

Would you be able to share a sample to show the issue?

bguiliano
Contributor II
Contributor II
Author

clipboard_image_0.png 

this is before adding the mid(countyname,8)

after 

clipboard_image_1.png

sunny_talwar

I see the problem, but where exactly are you using the code? In the script? Can you share the script that you have used?

bguiliano
Contributor II
Contributor II
Author

No, i was adding to the list box under properties/expressions

sunny_talwar

List box expression is not the right place to use this... either do the transformation in the script or do it on the general tab

Brett_Bleess
Support (Former)
Support (Former)

Brent, did Sunny's last post get you where you needed to be?  If so, do not forget to come back and use the Accept as Solution button to mark his post as having worked and to give him credit for the help.  If you have further questions, update the thread.  If you did something else, consider posting that and then use the button to mark it after you post it.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.