Hello Aditya, thank you for your response Where exactly I need to put this piece of code because right now I need a button to include into my screen and for the button to show up, I have to add the link tag like this:
<link target="NewCustomer" text="New Customer" style="buttontext create" /> Sorry maybe I didn't get quite right your answer, can you guide me with this. Thanks a lot! Daors On Tue, Oct 27, 2020 at 10:34 AM Aditya Sharma <[email protected]> wrote: > 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 > > >
