Hi, I have a frontend extension with a custom page, where i want to retrieve some records on the click of a button. I was thinking to find a way to call a php file to use some beans but can’t find a way to do so? What can i do here?
Have you try to use getBean or load_relationship methods?
The problem is that I’m in an angular extension, so i need a way to call a php file from frontend so that i can use getBean.
I’m trying to create a new process handler but I’m unable to call it from the frontend.
Could you please see if the following steps would help here.
- Create a process handler (PHP) with a PROCESS_TYPE
- Create an Injectable service (Typescript) that you can run by passing parameters. This service would call the run method in the PHP process handler.
- Pass the reference to this service in the constructor of your component and trigger the run method in your method called by the button click.
You can refer ‘recover-password’ functionality present in core/app/core/src/lib/views/login/components/login/login.component.ts to implement your functionality.
I’m trying to create it but haven’t managed to call it from the frontend. This issue goes back to that other post i made.
If possible please share your code with sensitive information removed, it would easy to understand the issue. Thanks
Here’s the other thread Custom process handler not working, recently posted the code of the file there.