Could these be separate inputs? Within your module, the inputs come in as
an array of objects, with each slot on the array corresponding to an input.
When an input isn't given - that is, there's no connection to the input tab
on the module in the visual programming environment and you haven't
specified one in the configuration dialog box, the corresponding slot in
the module's input array is NULL. Generally, the module then applies a
default value for the input. It seems like thats what you are trying to do
- allow the user to not specify an input so that the default will take
effect.
Greg
Ireneusz Szczesniak
<[EMAIL PROTECTED] To:
[email protected]
do.edu> cc: [EMAIL
PROTECTED]
Sent by: Subject: [opendx-dev]
"object list" type for a module argument?
[EMAIL PROTECTED]
son.ibm.com
09/03/2002 03:53 PM
Please respond to
opendx-dev
Hello,
I am Ireneusz Szczesniak, a software developer. I am writing a module
for OpenDX. The module requires an array of floating point numbers as
one of its inputs. The trick is that the user does not have to give
the values for all the entries. For example, the user might want to
give {NULL, 3.14, NULL, 1.2e-10} meaning that there is no value for
the first and third entries.
Choosing "scalar list" as the type for such an input is not right
because we will not be able to pass the NULL values in the
Configuration window of the module. I tried "object list", and hoped
this would solve the issue. Unfortunately OpenDX complains about this
type.
Is there a way of solving the problem?
In the module at the moment the type of the array is "string list", and
the argument looks like this: {"", "3.14", "", "1.2e-10"}.
Thank you for advice and help.
Regards,
Ireneusz Szczesniak
Software Developer
Center for Integrated Plasma Studies
University of Colorado at Boulder