Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing parameter to HTML from WebFocus

Status
Not open for further replies.

rummage

MIS
Apr 8, 2003
33
US
Hi,

I am calling a HTML form from my Webfocus/Focus code. I want to pass parameters to the HTML form from the focus code. How do I do it?

Thanks in advance.

Thambaiya

 
Hi FOCMAN,

I have 2 HTML webfocus forms and a webfocus procedure.

I am passing two parameters from the first HTML to the WebFocus Procedure.
From the webfocus procedure, I am trying to pass a parameter to the Second
HTML webfocus form so that I can get the value of the parameter when I am in the second HTML.

I want to explain my code


--Connecting to SQL Server

SQL
SQLMSS
-- Here the &P1 and &P2 are two parameters that I got from the previous HTML

EX GOA01_SQL.dbo.spgoa_WF_Report_Fill_TEMP ,
'E0C7EBAA-1236-4AE5-ABD3-01DF39E13512',
'2/1/02' ,'2/28/02' ,0, &P1 , &P2, null, 1;

END

-- I am calling the second HTML.
-HTMLFORM WF041803

Now I want to pass the parameter $P2 to the above HTML form WF041803. How do
I do it? Can you give me the code with respect to the above situation?

Thanks
Thambaiya
 
Hi Thambaiya,

Seems to me that I would be best not to call the html form with -HTMLFORM WF041803 but with an include:

-INCLUDE app/wf041803

if this works you will surely have the variable there.

Regards
Eva
 
Thanks Eva for the reply. I will try and get back to you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top