Solved

Passing a parameter

Posted on 2001-07-18
5
209 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
5 Comments
 
LVL 2

Accepted Solution

by:
melbor1 earned 100 total points
Comment Utility
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
Comment Utility
I had tried that, instead of sending the value of the field it sends the name of the field
0
 

Author Comment

by:GaryZ
Comment Utility
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
Comment Utility
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
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Problem "Can you help me recover my changes?  I double-clicked the attachment, made changes, and then hit Save before closing it.  But when I try to re-open it, my changes are missing!"    Solution This solution opens the Outlook Secure Temp Fold…
IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
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…

771 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

12 Experts available now in Live!

Get 1:1 Help Now