Hi Daors,

You can use the controlPath attribute in ofbizUrl macro like this:

<@ofbizUrl
controlPath="/partymgr/control">viewprofile?partyId=${invoice.invoiceRolePartyId}</@ofbizUrl>

HTH

Thanks and Regards,
Aditya Sharma

On Tue, Oct 27, 2020 at 2:48 PM Daors <[email protected]> wrote:

> Hello good people of OFBiz hope you're all doing good I just wanted to
> know if there is possible to call another components request map from
> another component f.e I'm in Account - AR and want to add a button to
> create a new customer there so to redirect me to the create customer screen.
>
> Is there a way to do that in the link tag like:
> <link target="NewCustomer" text="New Customer" style="buttontext create"/>
>
> I tried this but it gives me this error:
> org.apache.ofbiz.webapp.control.RequestHandlerException: Unknown request
> [NewCustomer]; this request does not exist or cannot be called directly.
>
> I know that with FTL I can just add a anchor tag and add at the href the
> url to go there but at this case I don't need FTL.
>
> Is there a solution for this or do I have to rewrite the request-map for
> creating a new customer to the component that I'm currently working.
>
> Thanks a lot for your time,
> Best Regards,
> Daors
>

Reply via email to