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>
</screen>
Or you can check permission directly in ftl.
*RONG NGUYEN (Mr)*
*OLBIUS FOUNDER**Email:* [email protected] | *Mobile:* (+84) 902
2468 45
*OLBIUS., JSC*
*Tel:* (+84) 9 88 99 3333
*Address: *6th Fl., No 195, Kham Thien St., Ha Noi City, VietNam
*Website:* http://olbius.com
On Tue, Apr 1, 2014 at 12:23 PM, gavinju [via OFBiz] <
[email protected]> wrote:
> 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 target="FindSecurityGroup"/>
> </menu-item>
> "
> Now, because some reasean, I have rewrite the code using freemarker.
> In my freemarker, my code is :
> <a
> href="${contextPath}/control/FindSecurityGroup">${uiLabelMap.CommonSecurity}
>
> but how can I invoke the service-name in my freemarker?
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://ofbiz.135035.n4.nabble.com/How-can-I-call-the-servicedef-service-xml-in-the-freemarker-tp4650039p4650044.html
> To start a new topic under OFBiz - User, email
> [email protected]
> To unsubscribe from OFBiz - User, click
> here<http://ofbiz.135035.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=135036&code=cm9uZy5uZ3V5ZW5raGFjQG9sYml1cy5jb218MTM1MDM2fC0xMzMyNzc3NDY4>
> .
> NAML<http://ofbiz.135035.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
-----
Rong Nguyen
Olbius JSC
Deliver highest business value
http://www.olbius.com/
--
View this message in context:
http://ofbiz.135035.n4.nabble.com/How-can-I-call-the-servicedef-service-xml-in-the-freemarker-tp4650039p4650045.html
Sent from the OFBiz - User mailing list archive at Nabble.com.