Domino Designer:从嵌入式视图访问选定的行 [英] Domino Designer: Access selected rows from embedded view

查看:50
本文介绍了Domino Designer:从嵌入式视图访问选定的行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我再次有一个关于Domino Designer的问题.

Once again I have a question concerning Domino Designer.

有些新闻通讯应分配给多个联系人.

There are newsletters which should be assigned to several contacts.

因此,我构建了一个包含用于选择新闻通讯的组合框的表单. 在下面,有一个包含所有可用联系人的嵌入式视图.

Therefore I built a form containing a combo box to select the newsletter. Beneath, there is an embedded view containing all available contacts.

Combobox:
 _______________________
| ComboBox Newsletter  ⇓|
 -----------------------


Embedded View:
__________________________________
  |  Name   | Lastname |  Company |
-----------------------------------
   John       Smith        ABC 
 • Anna       Tylor        XYZ      (<- Anna is selected)
   Michael    Williams     ZYX

Button:
 ________
| Submit |

想法是,要选择新闻通讯,请选择每个所需的联系人(按选择边距),然后单击一个按钮.该按钮所具有的神奇之处在于,通过将所选新闻稿附加到联系人表单中的预期多值字段中,将所选新闻稿分配给每个所选联系人.

The idea is, to choose the newsletter, select each of the desired contacts (by selection margin) and hitting a button afterwards. The magic, which should be done by the button is to assign the chosen newsletter to each of the selected contacts by appending it to the intended multiple value field in the contact form.

但是我如何找出FormulaLotusScriptJavaScript(按此顺序:-P选中)选择了哪些行?

But how to I find out which rows are selected by either Formula, LotusScript or JavaScript (favored in this order :-P )?

@GetFocusTable对我没有产生任何有价值的结果.

@GetFocusTable produced no valuable results for me.

谢谢您的帮助!

推荐答案

如果从嵌入式视图的动作栏中的某个动作运行代码,则可以实现此目的.这必须是嵌入式视图的视图操作

You can achieve this if you run the code from an action in the action bar of the embedded view. This must be a view action of the embedded view

我认为您不能使用@Formulas来做到这一点.您需要的是LotusScript.您可以使用NotesDatabase类的UnprocessedDocuments属性来获取所选文档的句柄.以下是一些详细信息和代码示例: http://www-01.ibm.com/support/docview. wss?uid = swg21279380

I don't think you can do that with @Formulas. What you need is LotusScript. You can get the handle on the selected documents using the UnprocessedDocuments property of the NotesDatabase class. Here are some details and a code example: http://www-01.ibm.com/support/docview.wss?uid=swg21279380

要在嵌入式视图中显示操作栏,必须在嵌入式视图的属性中启用选项显示操作栏".

To display the action bar in the embedded view you must enable the option "Show action bar" in the properties of the embedded view.

在设计器中查看:

在Notes客户端中,它应该是这样:

This is how it should look like then in in the notes client:

这篇关于Domino Designer:从嵌入式视图访问选定的行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆