This tag is used for defining an action which can be a page navigation or an EJB method call. Multiple actions can be set in a summary page.
Attributes
| | |
---|
caption | The name that will appear on the action button. | A glossary key |
modal | If set to true the link defined (link tag's value) will open in a modal. | true, false |
link | The link that will open once the action button is clicked. | valid link |
topmenu | If set to true the action button will be placed on the top menu. | true, false |
classname | The name of the EJB class containing the EJB method that is called when the action button is clicked. | Valid EJB class name |
functionname | The EJB method that is called when the action is clicked. | Valid EJB method name |
singlecall | | |
actionfields | The fields that will be sent as input parameters to the EJB method | valid action fields |
actions | A set of sub-actions | valid actions |
visibilityclassname | The name of the EJB class containing the EJB method that is called to define whether the action is visible or not. | Valid EJB class name |
visibilityfunctionname | The EJB method that is called to define whether the action is visible or not. The EJB method must be of Boolean return type. If the method returns true, then the action is visible. If it returns false, the method is not visible. | Valid EJB method name |
Open A New Data Entry Page
<actions>
<action>
<caption>key_new</caption>
<topmenu>true</topmenu>
<link>page.do?xml=subscriptions/subscriptionCreation&act=new&fc=loadForm&jndi=ejb/CRMUISubscriptionCreation</link>
</action>
</actions>
Open A New Data Entry Page In A Modal
<actions>
...
<action>
<caption>key_set_privacy_level</caption>
<modal>true</modal>
<link>javascript:displayModalCreate(
'subscriptions/setPrivacyLevel',
'ejb/CRMUISubscription',
'loadPrivacyLevelForm',
'java.util.ArrayList@[[SummaryComponent_((component))]]',
'edit',
null,
'',
''
)</link>
</action>
</actions>
Action with sub-actions
<actions>
<action>
<caption>key_new</caption>
<topmenu>true</topmenu>
<actions>
<action>
<caption>key_expense</caption>
<link>page.do?xml=products/expense&act=new&fc=createButton&pvc=0&jndi=ejb/CRMUIExpenseProductBean</link>
<visibilityclassname>ejb/CRMUIExpenseProductBean</visibilityclassname>
<visibilityfunctionname>isProductTypeConfigured</visibilityfunctionname>
</action>
<action>
<caption>key_one_time_service</caption>
<link>page.do?xml=products/oneTimeService&act=new&fc=createButton&pvc=0&jndi=ejb/CRMUIOneTimeServiceBean</link>
<visibilityclassname>ejb/CRMUIOneTimeServiceBean</visibilityclassname>
<visibilityfunctionname>isProductTypeConfigured</visibilityfunctionname>
</action>
<action>
<caption>key_physical_goods</caption>
<link>page.do?xml=products/physicalGoodProduct&act=new&fc=createButton&pvc=0&jndi=ejb/CRMUIPhysicalGoodProductBean</link>
<visibilityclassname>ejb/CRMUIPhysicalGoodProductBean</visibilityclassname>
<visibilityfunctionname>isProductTypeConfigured</visibilityfunctionname>
</action>
<action>
<caption>key_termed_service</caption>
<link>page.do?xml=products/termedServiceProduct&act=new&fc=createButton&pvc=0&jndi=ejb/CRMUITermedServiceProductBean</link>
<visibilityclassname>ejb/CRMUITermedServiceProductBean</visibilityclassname>
<visibilityfunctionname>isProductTypeConfigured</visibilityfunctionname>
</action>
<action>
<caption>key_usage_service</caption>
<link>page.do?xml=products/usageServiceProduct&act=new&fc=createButton&pvc=0&jndi=ejb/CRMUIUsageServiceProductBean</link>
<visibilityclassname>ejb/CRMUIUsageServiceProductBean</visibilityclassname>
<visibilityfunctionname>isProductTypeConfigured</visibilityfunctionname>
</action>
</actions>
</action>
</actions>