## ## Document History ## ## Created (peeje01) ## 27-Apr-1999 (peeje01) ## Change include file name from -h.html to _h.html ## 02-Apr-2004 (fanra01) ## Bug 112091 ## Editorial changes from griel02. ##
<html>
<head>
<title>Link generated sub-set of Shakespeare's Plays by type</title>
</head>
<body>
<center>
<h1>Link generated sub-set of Shakespeare's Plays by type</h1>
</center>
<FORM ACTION="/ice-bin/oiice.dll/playgroup/plays[play_typeLinkSubSet.html]"
METHOD="GET">
<!-- #ICE DECLARE=`session.e_playTxn=Complete` -->
<!-- #ICE DECLARE=`session.e_playTxnCommitted=FALSE` -->
<!-- #ICE REPEAT
DATABASE = `icetutor`
SQL=`select * from plays where type = ':type'`
TRANSACTION=`Complete`
CURSOR=`Works`
ROWS=`5`
TYPE=`TABLE`
-->
<p>
<!-- #ICE VAR=`
<A HREF="/ice-bin/oiice.dll/playgroup/plays[:e_return]">Select a new play type</A>`
-->
<p>
<INPUT TYPE="submit" NAME="More" VALUE="More" ALT="Show more plays">
<!-- #ICE VAR=`<INPUT TYPE="hidden" NAME="type" VALUE=":type">` -->
</FORM>
<!-- #ICE REPEAT INCLUDE=`plays[play_SessionControl_h.html]` -->
</body>
</html>
The hyperlink that returns the user to the calling page is created by expanding the Web Deployment Option session variable e_return. The VAR keyword takes any text (including HTML text) containing Web Deployment Option variables and replaces them with their contents. Here we make use of this to generate a hyperlink dynamically:
<!-- #ICE VAR=` <A HREF="/ice-bin/oiice.dll/playgroup/plays[:e_return]">Select a new play type</A>` -->
With this pair of documents we have ended up with text links based on the contents of the table making the page dynamic. As an improvement we would like to have an image to click on rather than plain text.