Author |
Message |
21/05/2019 08:38:03
|
rchiluano
Power User
Joined: 28/12/2017 07:21:54
Messages: 79
Offline
|
Hi captain,
I would like to do something every time the user clicks the function tree.
e.g The user clicked the Hello world in workplace demo, instead of just displaying the work page container, I would like to pass a data or display a popup message.
Is it possible to do this?
Kind Regards,
Ryan
|
|
|
21/05/2019 09:59:05
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5521
Offline
|
Hi,
yes this is possible, you may pass parameter by
1. You can define parameters in the WokrpageStartInfo instance, which then are read-able from the page processing:
WorkpageStartInfo.paramMap, the Java-API is: set/get/removeParam()
The parameters are passed to the workpage processing, so that you can grab the paramer in the construction of the opened page bean (which needs to extend from IWorkpageDispatchedPAgeBean): getWorkpage().getParam(...);
2. in WorkpageStartInfo you can also pass a function, or better the class name of an implementation of "IWorkpageFunctionExecute", which is executed if you click the corresponding function tree node.
Regards, Björnn
|
Björn Müller, CaptainCasa GmbH |
|
|
21/05/2019 10:15:40
|
rchiluano
Power User
Joined: 28/12/2017 07:21:54
Messages: 79
Offline
|
Thanks captain, that solved it. Thanks
|
|
|
06/06/2019 03:57:35
|
rchiluano
Power User
Joined: 28/12/2017 07:21:54
Messages: 79
Offline
|
Hi captain,
How can we pass an instance of a class, from the function tree?
I don't think I can use setParam since it is only usable for string objects.
Is there any alternative ways to do this?
Regards, Ryan
|
|
|
|