×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Passing parameter to HTML from WebFocus

Passing parameter to HTML from WebFocus

Passing parameter to HTML from WebFocus

(OP)
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

RE: Passing parameter to HTML from WebFocus

Give me an example of what you want to do.

RE: Passing parameter to HTML from WebFocus

(OP)
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                                                                       

RE: Passing parameter to HTML from WebFocus

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

RE: Passing parameter to HTML from WebFocus

(OP)
Thanks Eva for the reply. I will try and get back to you.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close