Skip to main content

Hello!

 

I am in the process of developing a benchmarking tab to compare product performance. In using the button dropdown, I have indicated my wrapping characters to be single quotes, e.g. 'Apple' -- otherwise throws an error.

 

I am facing issues when I try to select a product value that already contains a single quote in the name, e.g. Apple's. I have tried to use the backlash escape character but that did not work.

 

Any help would be greatly appreciated!

Hello Holly.

Try adding this formula:

 

REPLACE(table.column,'\\'','\\\\\\'')

 

This will replace ' by \\'

 

Remove the Escaping character from the Button Dropdown.

(this will not work for string variables, only for database fields with ' )

 

Thank you.

Daniel.


Hello Holly.

Try adding this formula:

 

REPLACE(table.column,'\\'','\\\\\\'')

 

This will replace ' by \\'

 

Remove the Escaping character from the Button Dropdown.

(this will not work for string variables, only for database fields with ' )

 

Thank you.

Daniel.

Hi Daniel,

Thank you for your response.

I am not sure I understand this formula:
REPLACE(table.column,'\\'','\\\\\\'')

Are those single quotes or double quotes? When I try either I receive an Error in Formula message. Thank you!
cid:image004.jpg@01D761D8.44655200]

Holly Kiser
Business Process Management and Operational Design – Process Improvement

Office: 980-270-8131
holly.kiser@wellsfargo.com

This transmission may contain information that is confidential and/or proprietary. If you are not the individual or entity to which it is addressed, note that any review, disclosure, copying, retransmission, or other use is strictly prohibited. If you received this transmission in error, please notify the sender immediately and delete the material from your system.

Hi Holly.

The formula replaces the single quote with the \\' (escape character and single quote); this way, you can use strings like 'Apple's' inside components without problems.

Another option is to replace ' with ` :

REPLACE(table.column,'\\'','`')

Check the images below.

(The best approach would always be to cleaning up at source)

 2021-06-18 10_19_51-ACTV_ORDER_DASHBOARD _ Studio2021-06-18 10_18_37-ACTV_ORDER_DASHBOARD _ Studioyou can find more info here: https://help.celonis.cloud/help/display/CIBC/STRING

 


Reply