Dear,

I m trying to copy an email Model HTML content into a section textarea.

Here's my code:

onUsrModeleIdChange: function() {
 
	var ModeleId = this.get("UsrModeleId").value;
 
	var esq = this.Ext.create("Terrasoft.EntitySchemaQuery", {
		rootSchemaName: "EmailTemplate"
	});
	esq.addColumn("Body");
 
	esq.filters.add("IdFilter", esq.createColumnFilterWithParameter(
		Terrasoft.ComparisonType.EQUAL, "Id", ModeleId));
 
	esq.getEntity(ModeleId, function(result) {
 
		var BodyContent=result.entity.get("Body");
 
		this.set("Corps", BodyContent);
	});
},

I get the BodyContent variable, but the this.set comes out in error:

I don't understand why the this.set does not works.

Is it because the field is an textArea ?

Thank you !

Nicolas

 

Like 0

Like

3 comments
Best reply

As an FYI, you can retain the scope by passing this as the final parameter to the ESQ getEntity. 

esq.getEntity(ModeleId, function(result) {
    var BodyContent=result.entity.get("Body");
    this.set("Corps", BodyContent);
}, this); // note 'this' passed as final parameter

This is also the case with getEntityCollection:

esq.getEntityCollection(function(result) {
    // scope retains 'this' context
}, this);

Ryan

context error...

i used: var scope = this; to reach the object

onUsrModeleIdChange: function() {
	var scope = this;
 
	var ModeleId = this.get("UsrModeleId").value;
 
	var esq = this.Ext.create("Terrasoft.EntitySchemaQuery", {
		rootSchemaName: "EmailTemplate"
	});
	esq.addColumn("Body");
 
	esq.filters.add("IdFilter", esq.createColumnFilterWithParameter(
		Terrasoft.ComparisonType.EQUAL, "Id", ModeleId));
 
	esq.getEntity(ModeleId, function(result) {
 
		var BodyContent=result.entity.get("Body");
 
		scope.set("Corps", BodyContent);
		scope.save();
	});
},

 

As an FYI, you can retain the scope by passing this as the final parameter to the ESQ getEntity. 

esq.getEntity(ModeleId, function(result) {
    var BodyContent=result.entity.get("Body");
    this.set("Corps", BodyContent);
}, this); // note 'this' passed as final parameter

This is also the case with getEntityCollection:

esq.getEntityCollection(function(result) {
    // scope retains 'this' context
}, this);

Ryan

Ryan Farley,

Hello Ryan and thank you for the reply !

Do you know how i can retrieve the message template Body in french ?

Ryan Farley writes:

var BodyContent=result.entity.get("Body"); //in french ?

Show all comments

Hi,

 

Is there a way to disenroll a contact from a campaign temporarily? The idea is to have the ability to disenroll a contact from a campaign (manually) and enroll them back at a later point. At that time, the contact should continue the campaign from were it previously stopped.

 

Like 0

Like

1 comments

I was able to achieve this with the help of 2 static folders (enroll and disenroll) specific for each campaign. I then added filtering condition to each conditional flow element to see if the contact is present in disenroll folder. (if yes, the contact will not proceed through the campaign). When the contact needs to be enrolled back, it is removed from the disenroll folder. Hence, the contact will proceed through the campaign as the filter condition is no longer met.

Show all comments

How can we show the Delete Menu Item for a custom detail only for a certain role like System Administrator?

 

Like 0

Like

2 comments

Hello, 

you can restrict deletion rights with object permissions.



The following instructions can help you to achieve the result you are looking for: Object operation permissions

Thank you Kalymbet!

With this option, the Delete Item would still be "visible" to all users (although only certain roles will have permission to perform deletion as defined in object permissions).

Any way to display the option only for specific roles?

Show all comments

Dear Creatio community,

 

we are looking for a way for adding a position number to product positions in invoices and orders.

Is there any out of the box solution that we don't know of or did you implement your own logic for this issue?

 

Thanks a lot

Markus

Like 0

Like

2 comments
Best reply

Hello Markus,



This feature is available in 8.x sections and pages OOTB in Application Hub. You should create an Application and add sections and pages based on existing objects. The "list" tool will help you to achieve the needed list view.

 

In the 7.x pages - there is no no-code solution, you would need development to add numeration to OrderPageV2 and InvoicePageV2 details.

 

I hope my answer was useful for you!

 

Best Regards,

Dan

Hello Markus,



This feature is available in 8.x sections and pages OOTB in Application Hub. You should create an Application and add sections and pages based on existing objects. The "list" tool will help you to achieve the needed list view.

 

In the 7.x pages - there is no no-code solution, you would need development to add numeration to OrderPageV2 and InvoicePageV2 details.

 

I hope my answer was useful for you!

 

Best Regards,

Dan

Thank you very much! 

We will test it out :)

Show all comments

We are using the Advanced list setup for Creatio. Is there a way to utilize the columns already setup on a folder to copy when creating a new folder?

What’s happening is if you copy a folder and go to edit the columns, the columns are blank and you have to start from scratch to setup the columns you want to see in the folder.  Is there a way to start with the columns already set on a folder?

Like 0

Like

2 comments

Hello Melanie,

 

Thank you for your question. The add-on does not currently support this function. You will need to set up columns for the copied folder from scratch. However, I have forwarded your feedback to the developer in charge, and, hopefully, we'll have more information soon.

Thank you for your patience.

Hello, Is there any update that will allow users to utilize the columns already setup on a folder to copy when creating a new folder?

Show all comments

Hello,

 

I have an inherited Schema in Custom package. There are no changes of functionality there, but there are possible changes in LocalizableStrings.

How can I see, what LocalizableStrings was changes in Page Schema?

 

Thank you!

Like 0

Like

2 comments

Hello,

You can check the LocalizableStrings in the config section.

To do this, you need to open your schema and check the Localizable strings tab:

Cherednichenko Nikita,

Hello, I understand how to check the LocalizableStrings in the schema.



But there are a lot of them. So, how to find, which one was changed?



Thank you.

Vladimir

Show all comments

не розумію де можна обрати формулу, для побудови лічильника?

Like 0

Like

0 comments
Show all comments
Question

Hi Community,

 

I have a business task to add a search button to the email at the communication panel - which will allow the client to search for a specific email / search by the sender of the email, etc.

 

Something like this:

 

I would like to know if it possible? how ?

 

Thanks in advance!

 

Like 0

Like

2 comments

Hi,

Theoretically, this is possible, however, this is quite a difficult task to do and I cannot even say if this is even possible.

If you really want to do it then probably you should start with analyzing the base logic behind this module. Change the email box and see what requests the system will send, see the initiator of these requests. In your button, you should do something similar to them. 

Show all comments

Hi Creatio Team,



we currently have an issue compiling processes containing script object : 

the compiling start but seems to never end. There is no error message.

I tried to leave the script object empty, just to check if my script code was the problem : no luck, compile still take forever, without error...

 

My colleague tell me that this issue has also happen for him since some weeks (maybe since 8.0)

Is it a known problem ? What may cause that kind of issue ?



Best regards,

Patrice

Like 0

Like

1 comments

Hello colleagues,



To investigate this issue and help you we have to check the application logs of your environment for the day when the issue was reproduced.

Please contact support with details.



Best regards, Alex.

Show all comments

Hi Team,

 

I need help in adding Custom Business Rules and in adding a detail to a section in Atlas 8.0 Version.

 

Please provide me with the relevant information required.

 

Best Regards,

Sarika

Like 1

Like

2 comments

It seems business rules are only arriving post 8.0.3 ( this last version is not yet released, and business rules are only in beta in 8.0.3)

Hello,



The features are available for beta testing in Creatio version 8.0.3 Atlas. 



Please find more information here



Best regards,

Bogdan

Show all comments