Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Selecting multi Documents from a View [Web]

Posted on 2006-11-08
3
Medium Priority
?
200 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 1000 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

For Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
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
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

688 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