Hi,
I have a requirement to display a success message or an error message based on the wdk action that happens after the invoke button of forms is clicked.
I have an invoke button in forms which is set to invoke a wdk action configured in my taskspace child application.
The wdk action looks like below :
abc_action.xml
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<config version='1.0'>
<scope>
<action id="abcaction">
<params>
<param name="param1" required="true"></param>
<param name="param2" required="true"></param>
</params>
<execution />
</action>
</scope>
</config>
abc.java
public boolean execute (String strAction, IConfigElement config, ArgumentList args, Context context,
Component component, Map completionArgs)
{
try{
//perform action
completionArgs.put("message","Action successfully executed");
}catch(Exception e){
completionArgs.put("message",e.getMessage());
}
}
In my forms builder invoke button in forms has the setting as below:
actionContext = empty
input parameters has:
name = param1 value = /testform/box1/param1
name = param2 value = /testform/box1/param2
output parameters has:
name = message value = /testforms/box1/text1
When i open this forms in taskspace and after click of invoke button there is no message displayed on screen.
Can anyone please let me know what is wrong in the settings or if there is some other way to achieve this.