Hello,
I am developing a custom UI component using the angular remote module provided by Creatio.
The front-end part will be in the angular project. Now, If I want to call a server action(for ex: from my custom component a button click -> pass the record id to server action -> get the record retrieved and perform more server actions) where should I put that logic and how to call that logic from remote module?
Also, how do I run/debug the remote module during the development?
TIA.
Like
You would implement the C# code and expose as a configuration service, see https://customerfx.com/article/creating-a-web-service-and-consuming-it-from-client-side-javascript-in-bpmonline/
Then to consume the service from the remote module, you'd use the devkit sdk as shown here: https://customerfx.com/article/calling-configuration-web-services-from-client-side-code-in-a-creatio-freedom-ui-page/
Ryan
Ryan Farley,
Thank you.. If I want to ship this source code along with my package.. I have to put it under Resources as shown in the below image?
Can you also tell me if it is possible to run/debug the remote module during the development?
If I run the remote module using ng serve I am getting below error.
core.mjs:6531 ERROR Error: Remote entry with name 'angproject' does not exist
at AppModule.ngDoBootstrap (app.module.ts:28:23)bootstrap.ts:7 Error: Remote entry with name 'angproject' does not exist
at AppModule.ngDoBootstrap (app.module.ts:28:23)
Sagar Rodda writes:
Ryan Farley,
If I want to ship this source code along with my package
You could sync your workspace to Creatio, add it in the package there and then download the workspace back and you'll see it under the Schemas folder. Or you could add it under Files\cs
Got it.. thank you so much.. I'll try it and let you know here how it goes..