@ReplaceSubstring doesn't display value as exp

2019-03-04 06:44发布

问题:

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.