If you know the name of a method, say "methodX", you can invoke it on
a view by:
view1["methodX"](...);
Is that helpful?
You might also want to read about the history mechanism, which can be
used to save/restore the state of an application.
On 2008-07-12, at 19:57EDT, Daniel Garrido wrote:
Hello guys,
I'm rewriting a post I've made in the forum that I haven't received
any
feedback at the moment.
I've written an OpenLaszlo application that is a product
configurator, the
configuration is managed by a Java backend and OL uses Javarpc to
call java
configuration actions.
One of the options I've included in the configurator is the option
to save
the configuration status. Now my aim is to load saved configurations
into
Openlaszlo by calling a set of actions that would resume the loaded
configuration into Openlaszlo interface.
Imagine that I need to call the following actions in order to resume
the
configuration:
view1.methodX(...);
view2.methodY(...);
...
Is there a way to dynamically include these actions into Openlaszlo
and
execute them?
Here's the procedure I'm talking about:
1 - Openlaszlo allows the user to take actions, java methods invoked
by
javarpc, in order to configure a product
2 - The configuration is saved into XML
3 - When loading the configuration XML, Java parses that XML and
creates a
proper script file that are actions that allow resuming
configuration in the
openlaszlo interface.
4 - How to feed that script file into Openlaszlo so that all actions
in it
are executed? (all the actions are valid and can be manually
executed in
debug mode)
Honestly I'm not sure if you guys can understand my idea... hope so...
Best regards,
Daniel Garrido