Hi Community,

We have a simple string field in one of our Creatio instances that is not being updated (tested with a Supervisor user).

Field is NOT being updated in the following scenarios

1- Frontend: When we save the record page.

2- Application Layer : The field is not being update from Bussines Processes.

3- OData4 : We tried to update from Postman with OData4 request, without success

 

Is there any lock mechanism that prevents the field from being updated written in CSharp?

 

The field can only be updated when we perform an Update directly in the database layer.

 

Thank you

Sasor

Like 0

Like

1 comments

Hello!

 

This means that there can be logic at the event layer level that changes the value of this field when saving a record. It can be on action: OnUpdating, OnSaving. Details here:

https://academy.creatio.com/docs/8.x/dev/development-on-creatio-platfor…

 

Or changing a given field leads to another action that changes its value again.

To track exactly where this field changes, you can write additional logging when the record is saving, in various methods, such as OnUpdating and OnSaving, on the EntityEventListener. This logging will help you find exactly where the field value changes.

Show all comments

Hi Community,

 

I am trying to add a field validation via javascript code using the below article.

https://academy.creatio.com/docs/developer/getting_started/develop_appl…

 

While I am trying the validation, I am getting an error in the console as in the screenshot below. It says "Cannot read properties of undefined (reading 'invalidMessage')." I am initiating a null value in the method as described in the above article. What am I missing here? I cannot add validation to any fields because of this error. I have also added my code snippet below.

 

onEntityInitialized: function() {
				this.callParent(arguments);
				this.onBooleanChange();
				this.changeColor();
				this.setYearEnd();
				this.setNumberOfDaysInApplicationCreationStage();
				this.accountHolderValidator();
			},
 
			setValidationConfig: function() {
				this.callParent(arguments);
				//this.addColumnValidator("BEALMDateofBirth", this.dateOfBirthValidator);
				this.addColumnValidator("BEALMAccountHolderType", this.accountHolderValidator);
			},
 
			accountHolderValidator: function() {
				var invalidMessage = "";
				var lead = this.get("BEALMLead").value;
				var scope = this;
				var esq = Ext.create("Terrasoft.EntitySchemaQuery", {
					rootSchemaName: "Lead"
				});
				esq.addColumn("Id");
				esq.addColumn("BEALMIsPAHExist");
 
				var esqFilter = esq.createColumnFilterWithParameter(Terrasoft.ComparisonType.EQUAL, "Id", lead);
				esq.filters.add("esqFilter", esqFilter);
 
				esq.getEntityCollection(function (result) {
					if (result.success) {
						var isPAHExist = result.collection.collection.items[0].values.BEALMIsPAHExist;
						if (isPAHExist == true) {
							invalidMessage = this.get("Resources.Strings.BEALMInvalidAccountHolderMessage");
						}
						else {
							invalidMessage = "";
						}
						return {
							invalidMessage: invalidMessage
						};
					}
				});
			},

 

Please help to resolve this issue.

 

Thank you

Cheers!

Like 0

Like

2 comments
Best reply

There are two issues:

1) You're not including the scope in your ESQ so in the callback it no longer knows what "this" is. Change to this: 

esq.getEntityCollection(function (result) {
    // stuff here
}, this);  // <- notice passing this scope 

2) Regardless of the missing "this" scope, this will not work since the ESQ is asynchronous. You'll need to use asyncValidate instead. I have an article on how to do that here: https://customerfx.com/article/asynchonous-validation-on-pages-in-creat…

Ryan

 

There are two issues:

1) You're not including the scope in your ESQ so in the callback it no longer knows what "this" is. Change to this: 

esq.getEntityCollection(function (result) {
    // stuff here
}, this);  // <- notice passing this scope 

2) Regardless of the missing "this" scope, this will not work since the ESQ is asynchronous. You'll need to use asyncValidate instead. I have an article on how to do that here: https://customerfx.com/article/asynchonous-validation-on-pages-in-creat…

Ryan

 

Hi Ryan,

 

Thank you very much for the support. That worked like a charm.

Show all comments

Hello. 

I am doing a process where I want to create a new record  but I want that the field account fills automatic using a business process, but when I add the record it doesn't pass this information to the section, it shows a blank field, additionally i want to set the name of the record with a formula so it show the name of the account to complete the name but it doesn't pass this data. 

 

I first  tried to add the record and establish the fields that i want to be fill. Then I tried to first add the record and then modifty it to add the fields that i want to be show. And lately i tried using a subprocess to add the fields, but anything of the things that I tried haven't work. 

Can someone help me please? 

 

 

 

 

Like 0

Like

1 comments

Hi Laura, 

 

We'd need to perform a deeper analysis in order to understand and resolve your issue. 

Please forward this question to our support team. Don't forget to provide the external access to your system. 



Best regards,

Yurii

Show all comments

Hi everyone,

 

I have just created a multi-select text field on Classic UI but I am trying to implement the same code within Freedom UI and it is not working. Any idea why, Does Freedom UI not support such feature? I am using the 3rd party for multi-select from Creatio Marketplace

Like 0

Like

4 comments
Best reply

Not yet supported in Freedom UI. 

Ryan

Not yet supported in Freedom UI. 

Ryan

The need for multiselect lookup is immense in our current project. Is there anyway to go about this or do we have to build our own component?

Shivani Lakshman,

In version 8.1 lookups now have the ability to do multi select.

Ryan

in the new version 8.2.1 Energy of creatio you can now use the multiselect lookup

Show all comments

Greetings. 

I have a need to give users the ability to decide, which fields should be required for a particular page. I had some sort of the solution in my head. It makes an request and returns with a list of fields that need to be required for this particular page. The problem I am facing is making fields required via JS code (not in Diff section but in the code section, like "onEntityInitialized"). Looking forward to seeing the possible ways to solve this problem.

Like 0

Like

1 comments

Hello,

In order to make a field required based on the condition you need to bind it to an attribute, here is an example of how to do it:

1) Create a new boolean attribute

attributes: {
			"IsValueRequired": {
				"dataValueType": Terrasoft.DataValueType.BOOLEAN,
				"value": false
			}
		},

2) Bind this attribute to an "IsRequired" parameter in the field diff:

"values": {
					"isRequired": {"bindTo": "IsValueRequired"},
					"layout": {

3) Set the value to this attribute in the onEntityInitialized method:

methods: {
			onEntityInitialized: function() {
				this.callParent(arguments);
				this.setIsValueRequired();
			},
			setIsValueRequired: function() {
				if (YOUR CONDITION) {
					this.set("IsValueRequired", true);
				}
				else this.set("IsValueRequired", false);
			}
		},

 

Show all comments

i can't add new text field to contact (customer360app) module



Collection "EntitySchemaColumnCollection" item "EntitySchemaColumn" with unique identifier "{65DB5BF4-C253-4BD3-8988-CA1C6397A7EE}" not found.

Like 0

Like

3 comments

Hello Arkadiusz Polus,

 

This is not a typical error and it does not recreate OOTB.

 

Please contact Creatio support directly at support@creatio.com. It would be required to inspect this particular issue individually.

 

Best Regards,

Dan

Hello Arkadiusz Polus,

Did you get the answer for this issue? Because I have the same issue.

Thanks, 

Timea

Timea Losonc,

Hello Timea,

 

Please contact Creatio support directly at support@creatio.com providing the details of your issue. This is not a typical error and, thus, each case should be inspected individually.

 

Best regards,

Yuliya

Show all comments

I want to filled in automatically from another field (From Date field to DATA (text) field)

but i don't see this option to choose

Like 1

Like

1 comments

Hello Arkadiusz,

 

unfortunately, you cannot achieve this via Business rules.

 

However, you can build a Business process, which will read the date and insert it to a different text field. The process will automatically change the data type to string so you won't need to do anything else.

 

Hope this way works for you.

 

Regards,

Gleb.

Show all comments

Hi!

Can I set an integer field with limited characters with help of no-code tools? I need a field with registred company number (it is always 10 digits code ) and i can only save this field when it is 10 digits

Like 0

Like

1 comments

Hi Arkadiusz Polus,

 

It is possible to add the column/field validation using the below function.

setValidationConfig: function()

 

The below article will have the complete information.

https://academy.creatio.com/documents/technic-sdk/7-15/how-add-field-validation





 

BR,

Bhoobalan Palanivelu.

Show all comments

Hi Team,

We have an OOTB feature introduced to set the field values using Business Rule.

There are function options provided while setting the field values if the Source(Target field) is numeric.

 

a)The OOTB feature shows formula and it has an in-built date function along with operators to write a formula and set values to a field.

b)But when a String field is selected there were no options for formula. It would be nice to have string functionalities such as,

strcat - concatenate two strings
strcmp - compare two strings
strcpy - copy a string
strlen - get the string length
String.Remove - Remove specified part of string





Best regards,

Bhoobalan Palanivelu.

1 comments

Hello Bhoobalan,



Thank you so much for your idea. We've registered it in our R&D team backlog for consideration and implementation in future application releases. Thank you for helping us to improve our product. 

 

Best regards,

Bogdan

Show all comments

Is it possible to change an item value (not caption) color on an edit page ?

Like 0

Like

2 comments

Hi Ricardo,

Yes, you can add CSS to a page and then can set the color of a field using the CSS. See https://customerfx.com/article/adding-custom-css-style-sheets-in-bpmonl…

Ryan

Hello Ricardo,

 

As was correctly mentioned by Ryan, for this purpose you need to add CSS, where you will be able to configure any colors your business task requires. Additionally to the article which was kindly shared above, the next articles can be helpful as well:

Kind regards,

Roman

Show all comments