Replace multiple strings with variables in text ,Conditions Not working as expected

Stimulsoft BI Designer discussion
Post Reply
luke
Posts: 42
Joined: Fri Jun 03, 2022 6:57 am

Replace multiple strings with variables in text ,Conditions Not working as expected

Post by luke »

I am struggling to replace multiple strings with variables in text :cry:

Iv attached the necessary files for analysis.
please see the image in the zip file provided for clarity.

Thank you for your help. :)
Is it possible to do it only as an expression ?
{IIF(HTML.HTML_Message.Contains("{Friends.FullName}"),HTML.HTML_Message.Replace("{Friends.FullName}",Friends.FullName),"")}
Attachments
StimProb.zip
(37.41 KiB) Downloaded 121 times
Lech Kulikowski
Posts: 6197
Joined: Tue Mar 20, 2018 5:34 am

Re: Replace multiple strings with variables in text ,Conditions Not working as expected

Post by Lech Kulikowski »

Hello,

You can use the following epression:
{Replace(Replace(HTML.HTML_Message,"{People.FullName}",People.FullName), "{Friends.FullName}", Friends.FullName)}

Thank you.
Attachments
Screenshot 2022-06-15 002123.png
Screenshot 2022-06-15 002123.png (108.83 KiB) Viewed 1373 times
luke
Posts: 42
Joined: Fri Jun 03, 2022 6:57 am

Re: Replace multiple strings with variables in text ,Conditions Not working as expected

Post by luke »

Thank you for taking time to help me.
Max Shamanov
Posts: 768
Joined: Tue Sep 07, 2021 10:11 am

Re: Replace multiple strings with variables in text ,Conditions Not working as expected

Post by Max Shamanov »

Hello,

You are welcome!
Post Reply