Specifications
COM+ reference
50
Glink: API reference manual Gallagher & Robertson
The Ggate and DSA communication modules may be configured with
parameters that should be supplied or modified by the user when connecting to
the host application. These parameters are referred to as interactive
communication parameters. If the current communication module is configured
with such interactive parameters and Glink itself is not visible
(glink.setVisible(false)), then the
GlinkEvent_INTERACTIVE_COM_PARAMS_REQUESTED is posted. The
GlinkApi application should then call the getInteractiveComParams method to
get the interactive parameters in question, modify the parameter values and set
the interactive parameters with the setInteractiveComParams method call.
The getInteractiveComParams returns a Collection with one element per
interactive parameter. Each element is a string array of 3. The first string
contains the short name of the parameter, the second the long name and the third
the actual parameter value. For example a parameter may have "pw" as the short
name, "Password" as the long name and an empty string as the parameter value.
Below is a code example where one of the parameter ("pw") is modified if
present.
Collection v = glink.getInteractiveComParams();
String param[];
for (int i = 0; i < v.size(); i++) {
param = (String[])v.elementAt(i);
if (param[0].equals("pw")) {
params[2] = "mypassword";
v.set(i,param);
}
}
glink.setInteractiveComParams(v);
Returns:
A Collection with one element per interactive config parameter.
See also:
setInteractiveComParams(Collection),
GlinkEvent_INTERACTIVE_COM_PARAMS_REQUESTED
getMarkedScreenArea
GlinkScreenArea getMarkedScreenArea()