[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Action Event in Function Tree - Workplace  XML
Forum Index -> Development
Author Message
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
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5519
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
rchiluano

Power User

Joined: 28/12/2017 07:21:54
Messages: 79
Offline

Thanks captain, that solved it. Thanks
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
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team