Programming with Content Services ES > Creating Custom Actions > Defining your application logic > Implementing the action executor class > Adding action parameters

Adding action parameters
The addParameterDefinitions method implementation is required in all cases, even if no parameters are used. To add parameters to an action, you must perform the following steps:
1.
Implement the addParameterDefinitions method.
2.
3.
To implement the addParameterDefinitions method, you must go into its definition and create a new ParameterDefinition object, as shown in the following code example.
Example: Defining the parameter definition implementation
This example shows how to use the parameter list to add a new parameter definition. In this example, PARAM_TAGS contains the name of the parameter.
/** The parameter names */
   public static final String PARAM_TAGS = "tags";
 
protected void addParameterDefinitions(List<ParameterDefinition> paramList)
   {
      // Specify the parameters
      paramList.add(new ParameterDefinitionImpl(PARAM_TAGS,
            DataTypeDefinition.TEXT, true, getParamDisplayLabel(PARAM_TAGS)));
   }

Programming with Content Services ES > Creating Custom Actions > Defining your application logic > Implementing the action executor class > Adding action parameters

Programming with LiveCycle ES (LiveDocs)
Adobe LiveCycle ES Update 1

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/help/001567.html