Kbase 17156: Using output-messages() function in Webspeed 2.x
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  11/06/1998 |
|
Using output-messages() function in Webspeed 2.x
The output-messages() function returns the number of messages output
so you can say:
num-msgs = output-messages(...).
When you use it in an expression escape (backtics) for example:
`output-messages("group", "validate", "Validation Errors").`
it outputs the return value which is zero. To prevent this, use a
statement escape instead:
<script language="SpeedScript">
output-messages(...).
</script>
or
<!--WSS output-messages(...). -->
which is probably better to eliminate extra blank lines when no message
are available.
Progress Software Technical Support Note # 17156