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

I am going to change the value of an input when i clicked a buttun. How can i do that?

Like 0

Like

3 comments

Hello,

 

Could you please elaborate on the task you want to achieve?

Which button are you referring to? 

 

Thank you,

Artem.

Artem,

Artem thanks for your reply.

 

I am going to change Inputs` value on ContactPageV2 page when I click costum button. Like I when I clicked button Age's value should change to 24.

Hello, 

 

You could use the next method:

Insert the code below into the click handler function of your button:

 

this.set("Age", 24);

 

Thank you,

Artem.

Show all comments

I am going to set input's value to a text element when button is clicked? How can i do that?

define("ContactPageV2", [], function() {
	return {
		entitySchemaName: "Contact",
		attributes: {},
		modules: /**SCHEMA_MODULES*/{}/**SCHEMA_MODULES*/,
		details: /**SCHEMA_DETAILS*/{}/**SCHEMA_DETAILS*/,
		businessRules: /**SCHEMA_BUSINESS_RULES*/{}/**SCHEMA_BUSINESS_RULES*/,
		methods: {
			onPageClick: function() {
				var GreetingValue = this.get("SalutationType").value;
				var GreetingDisplayValue = this.get("SalutationType").displayValue;
 
 
				console.log(GreetingDisplayValue);
			},
			getMyButtonEnabled: function(){
				return true;
			}
		},
		dataModels: /**SCHEMA_DATA_MODELS*/{}/**SCHEMA_DATA_MODELS*/,
		diff: /**SCHEMA_DIFF*/[
			{
				"operation": "insert",	
				"parentName": "ContactGeneralInfoBlock",
				"propertyName": "items",
				"name": "NewButton",
				"values": {
					itemType: Terrasoft.ViewItemType.BUTTON,
                    caption: {bindTo: "Resources.Strings.NewButtonCaption"},
					click: {bindTo: "onPageClick"},
					enabled: {bindTo: "getMyButtonEnabled"},
					"style": Terrasoft.controls.ButtonEnums.style.BLUE,
					"layout": {
						"column": 12,
						"row": 2,
						"colSpan": 8,
						"rowSpan": 1
					}
 
				},
 
            },
			{
				"operation": "insert",	
				"parentName": "ContactGeneralInfoBlock",
				"propertyName": "items",
				"name": "NewInput",
				"values": {
					itemType: Terrasoft.utils.inputBox,
                    caption: {bindTo: "Resources.Strings.NewButtonCaption"},
					click: {bindTo: "onPageClick"},
					enabled: {bindTo: "getMyButtonEnabled"},
					"style": Terrasoft.controls.ButtonEnums.style.BLUE,
					"layout": {
						"column": 6,
						"row": 3,
						"colSpan": 8,
						"rowSpan": 1
					}
 
				},
			}
		]/**SCHEMA_DIFF*/
	};
});

 

Like 0

Like

3 comments
Best reply

You can do it by using this.set("StringColumn", valueNeeded); in the click-handler function for your button.

 

Best regards,

Oscar

You can do it by using this.set("StringColumn", valueNeeded); in the click-handler function for your button.

 

Best regards,

Oscar

Oscar Dylan,

thanks i will try it

 

Oscar Dylan,

how can i get innertext or innerhtml of something?

 

Show all comments
Question

Hello,

 

Please advise, I'm currently working with boolean type fields in Creatio process, after auto generated page (survey) and update of request object I need to sum chosen fields ( type: integer ) in function all my fields are read as false value. (([#RP2.First item of resulting collection.Field Sales#] == true ? 2 : 1)   False :1 is calculated. How and where I can change it?

Thx,

 

Regards,

Patrycja

 

Like 0

Like

1 comments

Hello Patrycja,

 

Let me confirm the understanding of the situation you're trying to resolve. From what you have described, you need to define value 2 or 1 based on what has been chosen on the auto-generated page. If YES was selected, you need to define 2 as a value, in case of NO - 1 should be set.

I see that you are reading some data (e.g. RP2.First item of resulting collection.Field Sales) and based on this defining the values 2 or 1. If you need to define the values based on the auto-generated page selection, you can avoid reading data and directly define the values based on the selection on auto-generated page.

Could you please provide some screenshots of how this part of the business process is set up? Mainly elements after the auto-generated page.

 

Best regards,

Artur

Show all comments