在视图中显示下拉列表的描述而不是别名(lotus Notes)

发布于 2024-10-30 19:10:45 字数 184 浏览 5 评论 0原文

我的表单中有一个下拉列表控件,该下拉列表将接受多个值。我输入了四个选项,并且由于值的详细描述,我为每个选项创建了一个别名。我的问题是保存文档时,保存的值是别名。所以我现在遇到了一个问题,因为在我看来,我想显示描述而不是别名。如何在我的视图中显示描述而不是别名,我很难显示它,因为该字段是多个值。我尝试使用公式@Explode,但它不会显示。有什么想法吗?

I have a dropdownlist control in my form, this dropdownlist will accept multiple value.I enter four options and for each option I created an alias due to a long description of the values. My problem is when the document was saved, the values that are saved are the alias. So I am encountering a problem now, because in my view, I want to display the description and not the alias. How can I display the description instead the alias in my view, I am having a hard time to display it,since th field is a multiple values. I tried to use the formula @Explode but it will not display. Any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

紫罗兰の梦幻 2024-11-06 19:10:46

您可以使用 @ReplaceSubstring ,它也适用于列表。

编辑:
列公式示例:

optionList := "One":"Two":"Three";
aliasList := "1":"2":"3";
@ReplaceSubstring(myFieldNameHere; aliasList; optionList)

Edit2:
@ReplaceSubstring 将返回一个与字段 Reason 大小相同的列表(在您的情况下) - 您不需要使用 @Explode< /代码>。
有了值和别名,您将看起来像这样:

optionList := "due to lack of information":"document is not ready":"not in the shorlist":"due to other reason";
aliasList := "R1":"R2":"R3":"R4";
@ReplaceSubstring(Reason; aliasList; optionList)

使用别名的缺点是,每次您想要使用该字段并向用户显示信息时,您都必须将别名“翻译”回其有意义的值 - 不仅在视图和表单,以及导出时等
另一方面,使用别名的优点是,您可以根据需要更改任何选项的措辞(而不更改其含义),但代价是在许多地方进行更改 - 视图、表单等。(TeamStudio Configurator不过会有所帮助),但不接触文档。
使用更有意义的文本替换别名可能是个好主意,例如:

aliasList := "noInfo":"notReady":"notShortlisted":"other";

否则您或支持此操作的人可能必须记住 R1 到 R4 的含义。

You can use @ReplaceSubstring which works with lists too.

Edit:
An example column formula:

optionList := "One":"Two":"Three";
aliasList := "1":"2":"3";
@ReplaceSubstring(myFieldNameHere; aliasList; optionList)

Edit2:
@ReplaceSubstring will return a list of the same size as the size of the field Reason (in your case) - you don't need to use @Explode.
With the values and aliases you have this would look like:

optionList := "due to lack of information":"document is not ready":"not in the shorlist":"due to other reason";
aliasList := "R1":"R2":"R3":"R4";
@ReplaceSubstring(Reason; aliasList; optionList)

The disadvantage of using aliases is that you have to "translate" the aliases back to their meaningful values every time you want to use the field and display information to the user - not only in views and forms, but also when exporting, etc.
On the other hand, the advantage of using aliases is that you can change the wording of any of the options if needed (without changing its meaning) at the cost of making the change in many places - views, forms, etc. (TeamStudio Configurator would help with that though), but without touching the documents.
It may be a good idea to replace the use more meaningful text for the aliases, for example:

aliasList := "noInfo":"notReady":"notShortlisted":"other";

otherwise you or the person who supports this may have to learn by heart what R1 through R4 mean.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文