Filters

How to auto click button client side from BP (Business Process)?

Like 0

Like

2 comments

Hello,

 

Could you please describe what logic you are trying to implement in more detail?

Mira Dmitruk,

Hello, 

i have a button with the name calculate where the button contains javascript method, then i want the button to run when the section / form loads using BP (Business Process)

 

Show all comments
Idea
Discussion

Hi everyone! We have released a new version of Clio and Clio Explorer.

What's new:

  1. .NET 6 is supported and Clio is now compatible with iOS on M series processors.

  2. OAuth settings are supported in the UI for easy connection with the Creatio trial version.

  3. Quick access to all Clio settings in Clio Explorer for advanced users.

  4. Support for working with auto-generated code in the package assembly for local development in workplaces.

1 comments

Links on Clio explorer and clio

Show all comments

I was creating a button that runs a simple business process that sends a mail.

The problem is after altering the schema of the Portal user profile and adding a button the business process doesn't run nor gets mentioned in the process logs for tracing.

here are the codes used in the schema to run a bp in the portal contact page :

 

define("SspProfileContactPage", ["ProcessModuleUtilities","css!UsrCSSPortalProfile"], function(ProcessModuleUtilities) {
    return {

....

methods: {
            OnClickTest: function(){
                var args = {
                    sysProcessName: "UsrProcess_e179057",
                    parameters: { 
                        test: "testing" 
                    }
                };
                ProcessModuleUtilities.executeProcess(args); 
                this.showInformationDialog("Busniess process triggered");
            },

...

diff...

...

"operation": "insert",
                "name": "UpdateButton",
                "parentName": "Tabc34c9c60TabLabelGroup654f02cd",
                "propertyName": "items",
                "values": {
                    "itemType": Terrasoft.ViewItemType.BUTTON,
                    "caption": "Update Info",
                    "style": Terrasoft.controls.ButtonEnums.style.BLUE,
                    "click": {
                        "bindTo": "OnClickTest"
                    },
                    //"tag": "OnClickTest",
                    "hint": "TEST BUTTON"
                },

Like 0

Like

1 comments

Hello,

 

I've used the same code in the demo application and the process was triggered. Maybe the process is not logged in the process log ("Enable logging" in the process settings in the process designer) or you receive some actual error in the console when starting the process. You need to check if the code of the schema doesn't contain duplicates of methods or errors as well. The complete code from my side:

define("SspProfileContactPage", ["ProcessModuleUtilities", "css!UsrCSSPortalProfile"], function(ProcessModuleUtilities) {
	return {
		mixins: {},
		entitySchemaName: "Contact",
		messages: {},
		details: /**SCHEMA_DETAILS*/{}/**SCHEMA_DETAILS*/,
		diff: /**SCHEMA_DIFF*/[
			{
				"operation": "insert",
                "name": "UpdateButton",
                "parentName": "GeneralInfoTab",
                "propertyName": "items",
                "values": {
					"itemType": Terrasoft.ViewItemType.BUTTON,
					"caption": "Update Info",
                    "style": Terrasoft.controls.ButtonEnums.style.BLUE,
                    "click": {
                        "bindTo": "OnClickTest"
                    },
					"hint": "TEST BUTTON"}
			},
		]/**SCHEMA_DIFF*/,
		attributes: {},
		methods: {
				OnClickTest: function(){
					var args = {
						sysProcessName: "UsrProcess_b0eee32",
						parameters: { 
							test: "testing" 
						}
					};
                ProcessModuleUtilities.executeProcess(args); 
                this.showInformationDialog("Busniess process triggered");
            },
		},
		rules: {},
		userCode: {}
	};
});

 

Show all comments

Creatio's Founder and CEO Katherine Kostereva has been named as a Gold Stevie® Award Winner in the Female Entrepreneur of the Year category! The 19th annual Stevie Awards for Women in Business shines a spotlight on women executives, entrepreneurs, and organizations run by women. According to the judges, Katherine Kostereva was recognized because of her contribution "to the incredible growth of the company not locally but internationally.” 

 

Learn more

Like 12

Like

Share

0 comments
Show all comments

Good day, everyone!

miCPQ Insurance for Creatio developed by Mitra is available on our Marketplace! 🥳

It’s a unique one-stop solution for managing your leads & closing deals faster by helping you configure, price, quote, negotiate, manage and automate workflows.

The app is useful for the Insurance Industry to generate quotations without effort.

Like 1

Like

Share

0 comments
Show all comments