Solved

Selecting multi Documents from a View [Web]

Posted on 2006-11-08
3
197 Views
Last Modified: 2013-12-18
Hi Experts

I'm not new to Domino and html but got very less ideas in javascript as I feel this can be solved from js. Need ur help in this case.

I have a form with an embedded view (displaying as HTML). View has a list of tools. I want to select multiple tools from the list (by checkboxes) and pass their 'ToolID' to a field e.g. 'RequestedToolsIds' in the form.

Please guide me with the code how can I

1. create checkboxes for each tools (documents) in the view, pass selected Tool Ids (e.g. 101, 103, 104) to RequestedTools field of form, by clicking on Submit.
2. generate a Request No (from profile or another document) and assign the Request No to selected documents' field 'RequestNo'.

waiting for ur response
thanks in advance
0
Comment
Question by:ninteen83
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 46

Accepted Solution

by:
Sjef Bosman earned 250 total points
ID: 17897036
Can it be done the other way round: you open a new Request form and you select tools from a list?

Hope this might help you:
    http:Q_21926085.html "How can I improve the ability to select a value from a dialog list (Domino R5 web)"
    http:Q_21131995.html "Embedded view on Web popup window"

0
 

Author Comment

by:ninteen83
ID: 17924127
Hi bosman

I have done it in this way:

created a column with following text in view

"[<input type=\"checkbox\" name=\"Tool\" value=\""+ToolID+"\" onClick='AddTool()'>]"

Inserted below js script in the form that has embedded view

function AddTool()
{
      var len=window.document.forms[0].Tool.length;
      window.document.forms[0].RequestedTools.value="";
      for(var a=0;a<=len-1;a++)
      {
      if(window.document.forms[0].Tool[a].checked)
        {
            window.document.forms[0].RequestedTools.value+=window.document.forms[0].Tool[a].value+";";
        }            
      }
}
0
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 17924413
Clever!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Creating a bat file fo Note.ini 4 243
Send email lotus notes / VBA 6 175
@ command if structure getting unmanageable 12 106
problem with deleted user 14 58
This is an old article, please see an updated version of this article, located here: http://www.experts-exchange.com/articles/23619/Notes-8-5x-Windows-7-Notes-info-and-tips.html
Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question