Defining actions for product
The gadget spec URL could not be found



At this point you've designed the workflow process for the product model. In this section, we will build the actions associated with each worflow activity.

Actions to be added in the product form:
  • Save
  • Cancel 

Creating "AddProduct" action
  
Open action design perspective. Click on the "Insert Action" icon.
   
   


"Insert New Action" dialog box will be displayed.

Enter the action name as "AddProduct".
   
   


Click on the line connector between start and end to view the available commands.
   
   


List of available commands will be displayed as shown in the screen capture.
   


Point and click to insert the update command.
   
Click on the properties tab to configure the command parameters.

Click on the "+" button to add a new parameter.

List of the public cells in the "ProductDetails" model will be displayed in the Param field.

Select "Added" from the list.

Enter the following in the value field: =1

Click on the "+" button to add a new parameter.

Select "Product_Status" from the list.

 Enter the following in the value field: ="Active"


Point and click to insert the submit action.
   
   


Select the submit action.
 
Click on the properties tab to configure the command parameters.

Select "Draft" from the dropdown list for "Submit from Activity" field.
   


Creating "MakeActive" action
  
Click on the "Insert Action" icon.
   
"Insert New Action" dialog box will be displayed.

Enter the action name as "MakeActive".
   
   


Click on the "Open Action" icon.
   
List of available actions will be displayed.

Double click on the "MakeActive" action to open.
   


Insert the update command.
   
Click on the properties tab to configure the command parameters.

Click on the "+" button to add a new parameter.

List of the public cells in the "ProductDetails" model will be displayed.

Select "Product_Status" from the list.

Enter the following in the value field: ="Active"

   
   


Insert the submit command.
   
Click on the properties tab to configure the command parameters.

Select "Inactive" from the dropdown list for "Submit from Activity" field.
   
   


Creating "MakeInactive" action
  
Create a new action 'MakeInactive" using the "Insert Action" icon.

Open the "MakeInactive" action.
   
Insert the update command.
   
Click on the properties tab to configure the command parameters.

Click on the "+" button to add a new parameter.

List of the public cells in the "ProductDetails" model will be displayed.

Select "Product_Status" from the list.

Enter the following in the value field: ="Inactive"


Insert the submit command.
   
Click on the properties tab to configure the command parameters.

Select "Active" from the dropdown list for "Submit from Activity" field.
   
What's the next step?

Adding buttons to forms.