Question:
How do you store strings containing single quotes to a keyword field in a workflow? Currently, the string is always broken up when using the following KBA.
KBA-36107 · DocuWare Support Portal
Answer:
When storing strings containing single quotes, we need to add an escape character before the single quote so that it will not cause the value to be broken up when stored in the keyword field.
For example, in the above KBA article, the following arithmetic expression is used when referencing the string,
"'"+GV_text01+"'"
To add the escape character, you'll need to use the following expression.
"'" + Replace(GV_text01,"'","\'") + "'"
KBA is applicable for both Cloud and On-premise Organizations.
Views:
This article is valid for DocuWare versions: 7 7.1 7.2 7.3 7.4 7.5 7.6 7.7 7.8 7.9 7.10 | Storing strings containing single quotes; Workflow