Consultor Eletrônico



Kbase 18928: How To Use Href Tags To Pass Information Between Web Objects
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   15/10/2008
Status: Verified

GOAL:

How to pass information between web objects by using multiple <a href tags.

FIX:

1) Create a new CGI-Wrapper and call it test.w.
2) In the definitions section type:


DEFINE VARIABLE x AS INTEGER NO-UNDO.

3) In the process-web-request section, after the second {&out}, type:


"My custom hyperlink"

4) Save this webobject.

5) Create another CGI-wrapper calling it test2.w

6) In the definitions section of test2.w type:


DEFINE VARIABLE y AS CHARACTER NO-UNDO.

/* must be a character variable for the get-value function to */
/* return the value properly.  The get-value function returns a */
/* character data type by default */

7) In the process-web-request section before the second {&OUT} type:


y = get-value("x").

8) Again in the process-web-request section after the second {&OUT} simply type:


y

9) Now when you run test.w and click on the my custom hyperlink link, it will take the number 2 you assigned to the x variable in test.w and display it in test2.w.