@ReplaceSubstring doesn't display value as expected

为君一笑 提交于 2019-12-02 14:23:22

问题


I have this formula in one of the columns in my view in Lotus notes database. However, it does not change the value of the field "EmployeeName" in the view and still displays the original name.

Example: Original value: Franco Martínez, José Ramó Expected output: Franco Martinez, Jose Ramo

value1:="i";
value2:="e";
value3:="o";

optionList := value1:value2:value3;
aliasList := "í":"é":"ó";


@ReplaceSubstring(@Text(EmployeeName); aliasList; optionList)

回答1:


As the formula is absolutely correct, the issue has to be somewhere else. You already checked, that the field is summary, so this cannot be the issue.

Please check the programmatic name of the column (last tab in the properties): Does it happen to match another column in the same view or is it probably "EmployeeName"? Then just remove the name, it will be repopulated by a new unique name.

Explanation: Duplicate programmatic names mean, that both columns show the same value, and the formula of the second columnn is never executed. If there is a Fieldname in the name of the column, then it will always show the value of that field, no matter what the formula sais.

Another explanation could be that "í" <> "í"... Probably one of them is the representation of another Unicode- Character and just happens to "look" like the other one... You can check this using a button or agent that just @Prompts the value after replacesubstring, or copy the content of the field into a Hex- Editor...

You could also try the @Ascii() - @Function to convert to ascii without having to replace characters.



来源:https://stackoverflow.com/questions/23122306/replacesubstring-doesnt-display-value-as-expected

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!