back to top

Automatically and Immediately Saving New Rows Added to an Editable Detail in Creatio

When working with an editable detail in Creatio, when the user adds a new row to the detail, a new row is added to the list, the user then can enter values, and then click the save button in the row action buttons. However, if you’d like, you can also force newly added rows to be immediately and automatically saved when the user clicks the add button.

To do this, you must override the AddNewRowToCollection method in the ConfigurationGridUtilities mixin that provides the editable list functionality. In that method, we can force the new row to be immediately saved. The code for all this would look like this:

addNewRowToCollection: function(newRow) {
	this.mixins.ConfigurationGridUtilities.addNewRowToCollection.apply(this, arguments);
	
	this.saveDataRow(newRow, null, this);
}

This code calls the base addNewRowToCollection method in the mixin. Then it calls the saveDataRow, passing the newly added row to be saved. One thing to note, the “null” param in the above code is a callback function. So, if you need to trigger any code to fire after the save has completed, you can add that there:

addNewRowToCollection: function(newRow) {
	this.mixins.ConfigurationGridUtilities.addNewRowToCollection.apply(this, arguments);
	
	this.saveDataRow(newRow, function() {
		this.console.log("Save has completed");
	}, this);
}

One thing to note here, you can also use the newRow object passed into this function to set values for the new row. Like this:

addNewRowToCollection: function(newRow) {
	this.mixins.ConfigurationGridUtilities.addNewRowToCollection.apply(this, arguments);

	newRow.set("UsrMyText", "This is the text");
	newRow.set("UsrMyNum", 123);
	//...	

	this.saveDataRow(newRow, null, this);
}

Then these values will be included in the record with the save. This also works, of course, without the auto-save as well to just set default values for the new row.

Contact Customer FX for your CRM project
We let our expertise speak for itself - let us know how our all-star team can help on your CRM project
About the Author
Ryan Farley
Ryan Farleyhttps://customerfx.com/article/author/ryanfarley/
Ryan Farley is the Director of Development for Customer FX and creator of slxdeveloper.com. He's been blogging regularly about SalesLogix, now Infor CRM, since 2001 and believes in sharing with the community. His new passion for CRM is Creatio, formerly bpm'online. He loves C#, Javascript, web development, open source, and Linux. He also loves his hobby as an amateur filmmaker.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

AI Readiness Checklist for CRM Teams: Is Your CRM System Ready for AI?

Before using AI in Creatio, make sure your CRM data, users, processes, and automation foundation are ready. Use this practical AI readiness checklist for CRM teams.

Build Your Creatio AI Skills with the 2026 AI Summer Program

Join Creatio’s free 2026 AI Summer Program to learn how to identify, build, deploy, and manage AI agents.

Creatio 10x Is Coming: Join the Webinar to Explore the Future of AI-Native CRM

Learn what's new in Creatio 10x and how AI-native CRM, agentic AI, and no-code automation are shaping the future of customer relationship management. Join the upcoming webinar and discover what's next.

Creatio Unlimited Pricing Explained: AI Packages, Costs, Pros & Cons

Learn what Creatio’s new Unlimited pricing model includes, what it doesn’t include, how AI Action packages work, and the pros and cons for businesses evaluating Creatio.

Using the AI Prompt to Create Dynamic Folders in Creatio

Using Creatio's AI prompt to create the filter for a dynamic folder works best if you specifically ask for that, and if you are as clear and direct as possible about the filtering, conditions.

Related Articles

AI Readiness Checklist for CRM Teams: Is Your CRM System Ready for AI?

Before using AI in Creatio, make sure your CRM data, users, processes, and automation foundation are ready. Use this practical AI readiness checklist for CRM teams.

Build Your Creatio AI Skills with the 2026 AI Summer Program

Join Creatio’s free 2026 AI Summer Program to learn how to identify, build, deploy, and manage AI agents.

Creatio 10x Is Coming: Join the Webinar to Explore the Future of AI-Native CRM

Learn what's new in Creatio 10x and how AI-native CRM, agentic AI, and no-code automation are shaping the future of customer relationship management. Join the upcoming webinar and discover what's next.

Creatio Unlimited Pricing Explained: AI Packages, Costs, Pros & Cons

Learn what Creatio’s new Unlimited pricing model includes, what it doesn’t include, how AI Action packages work, and the pros and cons for businesses evaluating Creatio.

Related Videos