Kbase 17670: Apptivity: Passing parameters from applet HTML
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  5/10/1998 |
|
Apptivity: Passing parameters from applet HTML
This K-base describes a method to get Parameters set in the HTML of
an applet to the Apptivity environment.
The main class for an Apptivity applet doesn't extend
java.applet.Applet (which contains the getParameter method) but
instead, extends abApplication.á So, to call getParameter, you need to
get a reference to the Applet object first.
Here is an example on how to get the value out of Parameter Color into
a String. This has to be put into the init() routine of the project
(project.java file):
String tbo1 = applet().getParameter("Color");
To pass this parameter around your application you could pop it onto
the "theApp()" stack in the following way:
theApp().putObject("Stringtbo1",tbo1,true);
In a form or some other place in the application you are developping,
you can retrieve the value like this:
String newValue = (String) theApp().getObject("Stringtbo1");
TBO
02/09/98
Progress Software Technical Support Note # 17670