Solved

Selecting multi Documents from a View [Web]

Posted on 2006-11-08
3
194 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
  • 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

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
Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

778 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