Actions

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

Name
Description
Value
captionThe name that will appear on the action button.A glossary key
modalIf set to true the link defined (link tag's value) will open in a modal.true, false
linkThe 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
classnameThe name of the EJB class containing the EJB method that is called when the action button is clicked.Valid EJB class name
functionnameThe EJB method that is called when the action is clicked.Valid EJB method name
singlecall  
actionfieldsThe fields that will be sent as input parameters to the EJB methodvalid action fields
actionsA set of sub-actionsvalid actions
visibilityclassnameThe 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
visibilityfunctionnameThe 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

 

Open A New Data Entry Page In A New Window
<actions>
	<action>
		<caption>key_new</caption>
		<topmenu>true</topmenu>
		<link>page.do?xml=subscriptions/subscriptionCreation&amp;act=new&amp;fc=loadForm&amp;jndi=ejb/CRMUISubscriptionCreation</link>
	</action>
</actions>
 Open A New Data Entry Page In A Modal

 

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

Open A New Data Entry Page In A Modal
<actions>
		<action>
			<caption>key_new</caption>
			<topmenu>true</topmenu>
			<actions>
				<action>
					<caption>key_expense</caption>
					<link>page.do?xml=products/expense&amp;act=new&amp;fc=createButton&amp;pvc=0&amp;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&amp;act=new&amp;fc=createButton&amp;pvc=0&amp;jndi=ejb/CRMUIOneTimeServiceBean</link>
					<visibilityclassname>ejb/CRMUIOneTimeServiceBean</visibilityclassname>
					<visibilityfunctionname>isProductTypeConfigured</visibilityfunctionname>
				</action>
				<action>
					<caption>key_physical_goods</caption>
					<link>page.do?xml=products/physicalGoodProduct&amp;act=new&amp;fc=createButton&amp;pvc=0&amp;jndi=ejb/CRMUIPhysicalGoodProductBean</link>
					<visibilityclassname>ejb/CRMUIPhysicalGoodProductBean</visibilityclassname>
					<visibilityfunctionname>isProductTypeConfigured</visibilityfunctionname>
				</action>
				<action>
					<caption>key_termed_service</caption>
					<link>page.do?xml=products/termedServiceProduct&amp;act=new&amp;fc=createButton&amp;pvc=0&amp;jndi=ejb/CRMUITermedServiceProductBean</link>
					<visibilityclassname>ejb/CRMUITermedServiceProductBean</visibilityclassname>
					<visibilityfunctionname>isProductTypeConfigured</visibilityfunctionname>
				</action>
				<action>
					<caption>key_usage_service</caption>
					<link>page.do?xml=products/usageServiceProduct&amp;act=new&amp;fc=createButton&amp;pvc=0&amp;jndi=ejb/CRMUIUsageServiceProductBean</link>
					<visibilityclassname>ejb/CRMUIUsageServiceProductBean</visibilityclassname>
					<visibilityfunctionname>isProductTypeConfigured</visibilityfunctionname>
				</action>
			</actions>
		</action>
	</actions>