Solved

Passing a parameter

Posted on 2001-07-18
5
211 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Work Space in Lotus Notes cannot found 6 166
VBA Lotus notes 2 195
Only send email if contains "abcd" 3 144
Lotus Notes transfer mail box problem 6 91
I thought it will be a good idea to make a post as it will help in case someone else faces these issues. I trust this gives an idea how each entry in Notes.ini can mean a lot for the Domino Server to be functioning properly. This article discusses t…
  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

914 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

22 Experts available now in Live!

Get 1:1 Help Now