Hi All,

 

I am not able to replicate https://academy.creatio.com/documents/technic-sdk/7-15/how-add-auto-numbering-edit-page-field?_ga=2.112080903.283211749.1623923008-1596851256.1623923008 it successfully on our custom package. Client-side implementation is working as expected. If we try the server side, it is not working. Could anyone please help us with what I am missing? Or is there anything specific we need to do? Even I tried following https://community.creatio.com/questions/auto-numbering-server-side-doesnt-work and could double check on the parameters mentioned.

 

Image Reference

https://ibb.co/tBcFN8Y

https://ibb.co/CMQ29nV

https://ibb.co/cDCBbFC

https://ibb.co/T12tWK7

 

Thanks in advance.

Like 0

Like

3 comments

In addition to the above, I could see the source code section on the downloaded https://academy.creatio.com/docs/node/2311 package with many autogenerated function related to event triggers. If I check my custom object it only has getter and setter for each columns.

To autogenerate the source code I have tried 

1. Generate schemas

2. Publish

3. Complie

All options I have tried but Source code is not generated.

 

 

Thanks

From the screenshots it look like the column you're storing the number in is "UsrCode", however the screenshots show you're attempting to set that in a column named "Code".

Change the line that says:

Entity.SetColumnValue("Code", UserTask1.ResultCode);

To this:

Entity.SetColumnValue("UsrCode", UserTask1.ResultCode);

Secondly, it's unlikely that the name of the UserTask component (the element titled "Generate ordinal number" in your screenshot) is really just UserTask1 (unless you've changed it to that). To find it's name, select that element, then click the three-dot button on the top of the properties on the right and switch to advanced mode to see the name. Then change the "UserTask1" part of the code in both script tasks to that name (it's likely something like UserTask_ followed by random numbers/letters)

Ryan

Ryan Farley,

 

Thanks for your reply. I have double checked my code and I have changed it into "UserTask1" also I have shown 2 examples where I am trying to follow the tutorial with property value as "Code" and my custom section with the property as "UsrCodee".

 

Also, I see this as because of missing source code details for my custom section than the sample SDK which was referenced in the document.

 

Thanks,

Altaf Hussian

 

Show all comments

Hi , please can someone assist me I am trying to create a workflow chart/brain diagram.

is there anyone who can assist , thank you in advance ?

Like 0

Like

1 comments

Hello Saun,

 

Could you please elaborate on your business task?



Best regards,

Bogdan

Show all comments

Hi,

 

I have the following flow in my business process:

I read a collection of records(rentals) and I want to display them in a detail.

I have created a process parameter of type: Collection of records to hold the collection of rentals but I am not able to display them in the detail.

Any ideas how could I achieve this? Is it possible without writing a custom implementation?

 

Thanks.

Like 0

Like

1 comments

Hello,

 

Indeed, functionality allowing you to pass collections into a pre-configured page was added not so long ago. 

Collection data can be displayed on the page only when there are adjustments made in the code of the page to process and work with a collection of records. 

 

An example of this page can be found in the bank customer journey product:

“Product selection | ProductSelectionProcessPage” 

And more hints on how to use it in the process are in the respecting academy article:

https://academy.creatio.com/docs/user/finance_and_banking/financial_pro…

Show all comments

Hi,

I'm trying to use a basic macro in my email template(ex: [#Recipient.Contact name#]), but it is not replaced with the proper value.

 

I also tried to use a custom one and the same, values are not replaced as expected.

Any idea what am I missing?

 

Thanks.

Like 2

Like

4 comments

Hi!

 

We would need to take a better look at this issue and thus advise you to create a support request by emailing us at support@creatio.com.

 

Best regards,

Max.

The same issue is occurring for me using basic macros in email templates.  Specifically, [#Recipient.Contact name#] does not work.

Francine Braese,

Hello,

 

Please send us an email at support@creatio.com so we can check the details and advise you.

 

Best regards,

Yuliya

Susan O'Neill,
 

Hello,
 

Please send us an email at support@creatio.com so we can check the details and advise you.
 

Best regards,
Antonii

Show all comments

Like 0

Like

2 comments

Hello,

 

Such error may occur if any of the default localizations were deleted (any records from the dbo.SysCulture) 

Please flush Redis of your instance and try to create an object again. 

 

 

Yes Did It's working Thank you

Show all comments

Hi,

 

I'm using Creatio Studio(trial version for now) and I have created my own custom object(Car Rental) - with the Represents Structure of Database View behavior (meaning that a table should be created for it).

As part of my business process I want to add data to the object, but I'm receiving the following error:  Terrasoft.Common.DbOperationException: 42P01: relation "public.UsrCarRental" does not exist 

 

I have saved and compiled the object accordingly but it seems that it does not work.

Could you give me some hints?

Thanks.

Like 0

Like

2 comments

Iustina,

The "Represents Structure of Database View" means a table is *not* created for it. Instead it looks for a database view of the same name as the object. 

For normal objects that will have records, you should not check the "Represents Structure of Database View" checkbox for the object. Does that make sense?

Ryan

Hi Ryan, thanks a lot. Your suggestion helped me ;)

Show all comments

Hello, when I change Owner, type section also should change, please help how can i do that?

Thanks so much in advanced.

Like 1

Like

2 comments

Hi,

 

You need to set the value for the "type" column using a client-side code and this.set method. This should be added to the "Owner" attribute modification handler method (the handler example was provided in this post for example).

 

Best regards,

Oscar

You can see an article on how to wire up change events on the page here: https://customerfx.com/article/triggering-an-event-when-a-field-is-chan…

As far as setting the value of the Type lookup, a lookup needs an object with two properties to display properly, (1) a value property (the Id of the lookup item) and (2) displayValue (the text of the lookup item). You'd set it like this: 

this.set("Type", {
    value: theIdOfTheTypeItem,
    displayValue: theTextOfTheTypeItem
});

This article on getting started with client side code for Creatio might help https://customerfx.com/article/getting-started-with-writing-code-for-bp…

Ryan

Show all comments

Hello community!

I am going to change user type when button clicked, plaese help me ASAP!

 

 

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: {
			// owner is NULL = disable button 
			onPageClick: function() {
				var textInput = this.get("Owner");
				var textType = this.get("Type");
				console.log(textType);
				console.log(textInput.value);
				if (textInput) {
					this.set("Type", {value: "60733efc-f36b-1410-a883-16d83cab0980", displaValue: "Employee", markerValue: 							"Employee", customHtml: "Employee", primaryImageVisible: false });
 
				}
				var ageInput = this.get("Age");
				this.set(ageInput, 24);
				console.log(ageInput);
 
			},
			getMyButtonEnabled: function(){
				var textInput = this.get("Owner");
				var result = !!textInput;
				return result;
			}
		},
		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
					}
 
				},
 
            },
		]/**SCHEMA_DIFF*/
	};
});

 

Like 0

Like

4 comments
Best reply

Hello,

 

Eugene in this community post shared an example on how to modify the lookup value from the client-side logic. Use the:

 

this.set("LookupName", {value:"id", displayValue:"text"});

 

Best regards,

Oscar

Hello,

 

Eugene in this community post shared an example on how to modify the lookup value from the client-side logic. Use the:

 

this.set("LookupName", {value:"id", displayValue:"text"});

 

Best regards,

Oscar

it is showing undefined when i clicked the button.

Oscar Dylan,

can you help me like that?

 

Muhammadjon Yakhyoev,

 

It means that you specify something that shouldn't be set in this column. Only records present in the AccountType lookup can be set as a value in this column. Additionally you need to debug the code and see what exactly is being set in this column and check if there is no additional logic that set the value for a field there.

 

Best regards,

Oscar

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