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

Announcements
AWS Degraded - You may experience Community slowness, timeouts, or trouble accessing: LATEST HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to get a specific text value from the text Box


Hi

I have fetched the mail from outlook into the textbox. now what I want is to keep some specific text from the mail.

for eg now the textbox contains.

"Following application are failed

  ABC.qvw

  ggg.qvw

  Xyz.qvw

  yyy.qvw

thanks

"

Here i want to take only the apps name i.e

"ABC.qvw

  ggg.qvw

  Xyz.qvw

  yyy.qvw"

so what I need to do is take the text after the word "failed" and before "thanks" and place it in another textbox.

Which funtion should i use to trim the text the way I want?? or i have write macro for this?

Thanks in advance

Bhumika

1 Solution

Accepted Solutions
alexandros17
Partner - Champion III
Partner - Champion III

=TextBetween(

'Following application are failed

  ABC.qvw

  ggg.qvw

  Xyz.qvw

  yyy.qvw

thanks'

,

'failed'

,

'thanks'

)

View solution in original post

6 Replies
shane_spencer
Specialist
Specialist

Use subfield

i.e.

subfield(email,'failed',2)

you can build this up in parts by using 'thanks' and ' ' (space). You may need to do 3 subfields to achieve this but it's faily easy.

alexandros17
Partner - Champion III
Partner - Champion III

=TextBetween(

'Following application are failed

  ABC.qvw

  ggg.qvw

  Xyz.qvw

  yyy.qvw

thanks'

,

'failed'

,

'thanks'

)

MarcoWedel

Hi,

another solution:

LOAD *,

     Mid(mailBody, 35, Len(mailBody)-42) as apps;

LOAD

'Following application are failed'&chr(13)&chr(10)&'ABC.qvw'&chr(13)&chr(10)&'ggg.qvw'&chr(13)&chr(10)&'Xyz.qvw'&chr(13)&chr(10)&'yyy.qvw'&chr(13)&chr(10)&'thanks' as mailBody

AutoGenerate 1;

QlikCommunity_Thread_122679_Pic1.JPG.jpg

QlikCommunity_Thread_122679_Pic2.JPG.jpg

hope this helps

regards

Marco

PradeepReddy
Specialist II
Specialist II

We can achieve this using SubField() also....

Subfield(subfield('"Following application are failed

  ABC.qvw

  ggg.qvw

  Xyz.qvw

  yyy.qvw

thanks

"
','failed',2),'thanks',1)

Anonymous
Not applicable
Author

Hi guys

thanks for the fast help..

Bhumika

Anonymous
Not applicable
Author

hey Alessandro

Thanks

it is working perfectly