Solved

Passing a parameter

Posted on 2001-07-18
5
218 Views
Last Modified: 2013-12-18
I have the following code in a Notes form to create a popup window. The popup window sends some values back to the original form, no problem, however, I need to now pass a value to the popup window, but I am having no luck.

<a href="F2?OpenForm"  onclick="NewWindow(this.href,'wx','700','400','yes','center');return false" >Click Here</a> to generate this section.
0
Comment
Question by:GaryZ
[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
5 Comments
 
LVL 2

Accepted Solution

by:
melbor1 earned 100 total points
ID: 6294073
Use querystring....i.e.

a href="F2?OpenForm&Parameter=Test"

place your parameter after the "&". Put a computed for display field on the 'F2' form named 'Query_String' and all text after the '&' in the URL will be placed there.  Then you can parse out what you want.

Hope this helps.
0
 

Author Comment

by:GaryZ
ID: 6294377
I had tried that, instead of sending the value of the field it sends the name of the field
0
 

Author Comment

by:GaryZ
ID: 6294407
The problem is I did not state this correctly.

Form 1 has a field named State with a value of OH.

When I do the F2?OpenForm I need to pass the value of the field to the next form.
0
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 6294705
melbor1 is right. It is the best method to go about.

As far as you passing the name of the field, use javascript to grab the value of the field to be passed.

Like this

<input type=button name="Open New Window" onClick="window.open('Document?OpenForm&' + document.forms[0].fld_1.value + ',' + document.forms[0].fld_2.value)  ">

And then extract the field values by using query_string field, which will be hidden

~Hemanth
0
 
LVL 2

Expert Comment

by:typerracer
ID: 6319830
You can also use the opener object and directly reference the value on the parent window from the popup window.

for example:

on the parent document:
<input type="value="OH">

on the popup form, you get the value of the field by referencing:

opener.document.forms[0].State.value

OR

opener.document.<insert form name here>.State.value

This should get put inside a JavaScript function and be called from whatever event you want to have retrieve the value.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

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.
Sometimes clients can lose connectivity with the Lotus Notes Domino Server, but there's not always an obvious answer as to why it happens.   Read this article to follow one of the first experiences I had with Lotus Notes on a client's machine, my…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

705 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