Consultor Eletrônico



Kbase 20723: WebSpeed 3.x Example HTML Output Using Break By and {&out}
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/28/2008
Status: Verified

GOAL:

How to use HTML Output by Using Break By and {&out}

FACT(s) (Environment):

WebSpeed 3.x

FIX:


-----------------------dynacolumnoutput.html--------------------------

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>

<head>
<meta name="AUTHOR" content="Alex Pearlstein">
<title>WebSpeed Example of columned </title>
</head>
<body>

<script language="SpeedScript">
FOR each order-line break by order-num:
IF first-of(order-num) THEN
{&out} '<table border="0" cellpadding="0" cellspacing="3" bgcolor="white"> <TR> <TD><BOLD>Order Number: ' order-num '</TD><TR><TD><Center>Item Numbers: ' Item-num.
else
{&out} ' ' Item-num.
IF Last-Of(order-num) THEN
IF last-OF(order-num) = first-of(order-num) THEN
{&out} '</TD></TR><BR>'.
Else
{&out} ' ' Item-num '</TD></TR><BR>'.

END.
</script>

</body>
</html>