Kbase P30984: What are the options for DO blocks in Webspeed with embedded
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  25/11/2003 |
|
Status: Unverified
GOAL:
What are the options for DO blocks in Webspeed with embedded HTML
FACT(s) (Environment):
WebSpeed 3.x
FACT(s) (Environment):
WebSpeed 2.x
FIX:
Syntax Sample;
-------------------------------------------------------------------------------
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML>
<HEAD>
<META NAME="AUTHOR" CONTENT="Your Name">
<TITLE>WebSpeed Script</TITLE>
<SCRIPT LANGUAGE="SpeedScript">
/* Create an unnamed pool to store all the widgets created by this procedure.
This is a good default which assures that this procedure's triggers and
internal procedures will execute in this procedure's storage, and that
proper cleanup will occur on deletion of the procedure. */
CREATE WIDGET-POOL.
</SCRIPT>
</HEAD>
<BODY>
<BR>
<B>This is an example of a loop in a SpeedScript Block:</B><BR>
<SCRIPT LANGUAGE="SpeedScript">
FOR each salesrep:
{&out} "<li>Repname: " + Salesrep.repname + " RepID: " + Salesrep.SalesRep + "</LI><BR>".
END.
</SCRIPT>
<BR><BR><BR>
<B>This is an example of a loop in a SpeedScript & HTML Block:</B><BR>
<SCRIPT LANGUAGE="SpeedScript">
FOR each salesrep:
</SCRIPT>
<LI>Sales Rep:` Salesrep.repname ` REPID: `Salesrep.SalesRep` </LI><BR>
<SCRIPT LANGUAGE="SpeedScript">
END.
</SCRIPT>
</BODY>
</HTML>