Solved

Selecting multi Documents from a View [Web]

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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

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…
You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
This video discusses moving either the default database or any database to a new volume.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

708 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now