hi Gavinju,
Your service may be called by mapping form's action to the URI in
controller.xml file(request-map), and then you declare it.
for example: your form with action is 'createPartyRelationship'
request-map uri=createPartyRelationship
security https=true auth=true/
event
If you mean call service from Java code, the following code is one way:
DispatchContext dctx = Method_or_parameter;
LocalDispatcher lcDispatcher = dctx.getDispatcher();
Map inputMap = Your_init_method;
resultMap = lcDispatcher.runSync(Your_target_service,
inputMap);
-
Rong Nguyen
Olbius
Thank you for your help.
My case is, For example, in PartyMenus.xml:
menu-item align-style=party07 name=security
title=${uiLabelMap.CommonSecurity}
condition
if-service-permission service-name=partyBasePermissionCheck
main-action=VIEW/
/condition
link
You can create one screen and then include this screen in your ftl:
screen name=test
section
condition
if-service-permission service-name=partyBasePermissionCheck
main-action=VIEW/
/condition
widgets
link target=/control/FindSecurityGroup
text=${uiLabelMap.CommonSecurity}/link
/widgets
/section