Basic Customization > User Interface Customization > Adding Actions and Hooking Them Up in the UI > Defining Menus > Displaying Actions > Displaying Toolbar Actions for a Table
  
Displaying Toolbar Actions for a Table
1. Define the actions in an actions.xml file. See Defining a New Action for more information.
2. Add the actions to an action model . See Defining a New Action for more information. Action models that used in the toolbar need to contain “toolbar” in the name of the action model.
<model name="part toolbar actions">
<action name="create" type="Part"/>
<action name="create" type="Document"/>

</model>
3. Add the action model to your table by calling the setActionModel(action_model_name) in your MVC builder:
public ComponentConfig buildComponentConfig (ComponentParams params) {
ComponentConfigFactory factory = getComponentConfigFactory ();
JcaTableConfig table = (JcaTableConfig) factory.newTableConfig ();
// add the toolbar action model to the table
table.setActionModel (“part toolbar actions”);
....
return table;
}
Trouble Shooting
Problem Description
Solution
Some actions don’t appear in the list in the UI
There may be a validator configured on it which may hide the action in certain conditions. See Client Architecture Action Framework Overview for information on configuring an action with a validator.
Add jcaDebug=true to the url to see even the hidden actions. With the jcaDebug option enabled, you’ll see more information in the menu, and there will be an action at the end of the list that takes you to the action model report for that menu.