Domino Designer: Access selected rows from embedded view

走远了吗. 提交于 2019-12-23 21:34:40

问题


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.

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

@GetFocusTable produced no valuable results for me.

Thank you for your help!


回答1:


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

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.

View in designer:

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



来源:https://stackoverflow.com/questions/14585695/domino-designer-access-selected-rows-from-embedded-view

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