Hi community,

I'm trying to read the value of a custom system setting in creatio from the client-side, but I noticed that even if my setting has the flag "Cached" it results undefined when I try to get the value using this code:

var test = Terrasoft.SysSettings.cachedSettings.UsrSysSettingTest;





while when I use the asynchronous way it works fine.

Code for the asynchronous way:

Terrasoft.SysSettings.querySysSettingsItem("UsrSysSettingTest", function(sysSettingTest) { 

       var test = sysSettingTest; //here is defined

}, this);



Do you know why this is happening?

 

Let me know.

Thanks in advance,

Luca

Like 0

Like

5 comments
Best reply

Hi everyone,

I discovered that the problem with the cached setting was the type of it. To fix the issue I simply had to change the type from Text (500) to Text (250), I tried to do the same in other environments and I had the same result.

Hope it can help.

 

Best regards,

Luca

Hi Luca,

 

I was able to reproduce this behavior using the following steps:

 

1) Create a system setting

2) Don't relogin to the app and execute both commands you've shared in the developer console

 

As a result synchronous call returns undefined, async call returns value.

 

You need to relogin to the app to start using the setting value synchronously (if it won't help try flushing Redis).

 

Best regards,

Oscar

Hi Oscar,

I've actually logged into the app many times, I even closed the browser and flushed Redis, but I still have this issue.

 

Is there anything else I can do?

Thanks.

 

Best regards,

Luca

Luca Tavasanis,

 

Does this issue occur in another browser? In my case cached system setting was fetched properly after relogin and the issue is not in the rights for the setting since you can fetch it asynchronously.

 

Best regards,

Oscar

Oscar Dylan,

Yes, I have this problem also in other browsers.

 

Best regards,

Luca

Hi everyone,

I discovered that the problem with the cached setting was the type of it. To fix the issue I simply had to change the type from Text (500) to Text (250), I tried to do the same in other environments and I had the same result.

Hope it can help.

 

Best regards,

Luca

Show all comments

Hi Team,

 

Kindly provide me some resolution for the following scenario:

 

In the instance, there is one parent object 'Enquiry' and 'EnquiryForInsurers' is the child object of Enquiry. Now , I deleted one lookup field from the parent object Enquiry and published the object successfully.

 

But while I'm updating the child object EnquiryForInsurers, I'm facing the error which says failed to update the database structure. Although the deleted lookup field is not there in the inherited columns of the child object EnquiryForInsurers, but still I'm not able to publish the child object successfully.

 

Please refer to the screenshots for errors information.

 

 

 

kindly help in resolving this error..

 

Thanks,

 

Sarika

 

 

 

Like 0

Like

2 comments
Best reply

The issue was in the foreign key constraint left in the database after the column was deleted from your object and this constraint prevented the database structure from being updated. We've removed that foreign key and the issue was fixed.

 

Best regards,

Oscar

The issue was in the foreign key constraint left in the database after the column was deleted from your object and this constraint prevented the database structure from being updated. We've removed that foreign key and the issue was fixed.

 

Best regards,

Oscar

Hi Oscar,

 

Thanks for the help

Show all comments

Hello community,

I'm trying to insert a datatable with a thousand rows in the database from the server side. Does Creatio offer bulk operations to the database?

Like 0

Like

1 comments

Hello,



To achieve your business task you can also use Import build-in toll.

Please refer to the article by the link below:

https://academy.creatio.com/docs/user/platform_basics/business_data/exc…

 

Please also check the OData functionality, it could help you to implement your task.

 

If you want to do it directly from the database please check the information on the official website of its developer.



Best regards,

Bogdan

Show all comments

Hi Team,

 

I urgently need one solution for how we can highlight or apply background color to a specific word in the sentence that is modified.

 

For example : There is one string field in section. On record creation , the value is entered in the field - 'This is a example.' and record is saved.

 

Now, later if the user modifies the value to 'This is an example'., the changed field value should be highlighted in the following manner which means only the specific word that is changed is highlighted in color.

 

 

Please provide some solution for this.

 

Sarika

 

 

 

 

Like 0

Like

1 comments

Hello Sarika,

 

There is no such oob functionality, implementation of this idea will require development. Unfortunately, we do not have any ready to use examples of how it can be achieved with code. 

 

I have forwarded your idea to our responsible R&D team to consider it's implementation in the upcoming versions of the Application. 

 

Thank you for helping us to make our application better!

 

Best regards,

Anastasiia

 

Show all comments

Hi,



Any ideas how to change the order of Account and Contact in the "Customer" selection of opportunities ?





 

Like 0

Like

1 comments

Nevermind found it, but leaving the post as this can interest some people:

 

attributes: {
			"Client": {
				"multiLookupColumns": ["Account","Contact"]
			}

 

Show all comments

Hi Colleagues! How are you?

I'm trying to develop a kind of webhook on Creatio. To achieve it I have created an anonymous web service. The issue I'm experiencing is a Bad Request 400 when receiving the request that is going to be sent by third party app. They are going to send an XML using  POST request, Content-Type = text/xml, and XML Body similar to this one:

<?xml version="1.0" encoding="ISO-8859-1"?>

 

 

If i change the encoding for example to UTF-8 it works.

I tried a lot of alternatives but always I get the same result:

  1. Changing the service contract,
  2. Operation contract,
  3. Mapping a custom class,
  4. Override WebContentTypeMapper

 

Any recommendation? Any workaround?

Appreciate it!

Regards.

Like 0

Like

2 comments

can you post the code?

keith schmitt,

How are you? Thank you your interest. As I commented I tried a lot of alternatives. Attached the code. Focus on UpdateSMSStatus / 

GetInstructions / ProfileRequest. Each method has a different behavior but none of them works.

 

https://drive.google.com/file/d/1Q1cIxIN7GCUT-DsEJCHT2IKr1R39DkKL/view



Thank you!

Show all comments

I am going to add custom button which alerts some text on contact page. Is it possible?

Like 0

Like

2 comments

Hello Muhammadjon,

 

in order to achieve this you need to create a Replacing view model at the Custom package.

For the partent object you will need to select ContactSectionV2, or the section where you want to create this button.

Then you need to create a new localizable string (you will see the possibility to create a new one on the left) where you will put the desired text. for the button. While creating the localizable string you will need to enter the value, and the code. The code is something that you will use later.

 

After that you insert this code on the page:

 define("ContactSectionV2",

        function(BaseFiltersGenerateModule, Enums, ConfigurationConstants, BusinessRuleModule) {

            return {

                entitySchemaName: "Contact",

                messages: {},

                attributes: {},

                rules: {}/**SCHEMA_MODULES*/,

                /**

                 * Current schema mixins

                 */

                mixins: {},

                methods: {

                    OnTestButtonClick : function() {

                        Terrasoft.showInformation('Test') 

                    }

                },

                diff: /**SCHEMA_DIFF*/[

                    {

                    "operation": "insert",

                    "parentName": "ActionButtonsContainer",

                    "propertyName": "items",

                    "name": "TestButton",

                    "values": {

                        "itemType": Terrasoft.ViewItemType.BUTTON,

                        "style": Terrasoft.controls.ButtonEnums.style.GREEN,

                        "caption": {"bindTo": "Resources.Strings.TestButtonCaption"},

                        "markerValue": {"bindTo": "QualificationProcessButtonCaption"},

                        "classes": {"wrapperClass": ["t-btn-wrapper t-btn-text t-btn-style-blue actions-button-margin-right"]},

                        "iconAlign": Terrasoft.controls.ButtonEnums.iconAlign.RIGHT,

                        "click": {"bindTo": "OnTestButtonClick"},

                        "layout": {

                            "column": 6,

                            "row": 0,

                            "colSpan": 2

                        },

                        "visible": true

                    }

                }    ]/**SCHEMA_DIFF*/

            };

        });

 

The method  Terrasoft.showInformation('Test')  is the one responsible for displaying the message on screen. Here instead of Test you can write any message. 

The part where it says "caption": {"bindTo": "Resources.Strings.TestButtonCaption"}" , this is where you put the code from the localizable string previously created. So if the code of the string was called TestButtonCaption, then you need to put Resources.Strings.TestButtonCaption. If you name the code like "RandomButton" then it will be Resources.Strings.RandomButton.

 

Best regards,

Dariy 

Thanks so much! This is so helpful

Dariy Pavlyk,

Show all comments

Hi All,

 

We have a requirement to enable SSO with OKTA. Please suggest whether is it possible? If yes, how we can do that?

 

Thanks & Regards,

Sourav Kumar Samal

Like 0

Like

5 comments

Hello,

 

Yes, it is possible to set up SSO through OKTA. Unfortunately, we do not have specific instructions for this product, but you can use the Single Sign-On via ADFS Academy article for your reference. 

 

Best regards,

Bogdan

 

 

Bogdan,

 

We are also trying to configure from OKTA's side as well. But there are certain ask that we are unsure about. Could you please suggest on the following questions from Creatio perspective?

Thanks,

Sourav

Bogdan,

Is there any information on this?

 

Thanks

Sourav, 



This application is in "Upcoming" state meaning that it will be available in Future. 

As for your first question, you need to insert following values:

 



Kind regards,

Roman

 

Roman Brown,

 

What is the LocalCertificateFile and where to get this for onsite applications?

 

Thanks,

Sourav

Show all comments

I'm trying to update a column of type date using Entity object as below:

//Example 1
entity.SetColumnValue("BirthDate", "2001-09-15");
 
//Example 2
DateTime Date = DateTime.Parse("2001-09-15");
entity.SetColumnValue("BirthDate", Date );

The second example modifies the value successfully but when I open in client side the value doesn't show.

 

Like 0

Like

1 comments

Which error message do you get in the console from the client-side when opening a record? Also which value is being stored in the database. Finally, what does this.get("BirthDate") returns inside the onEntityInitialized method execution from the client-side?

 

Best regards,

Oscar

Show all comments

Is it possible to disable the option to create a new record when editing a Lookup field, so that the user can select an existing record, but not create one?  Users can sometimes unwittingly do this when not able to find the record using the Lookup.  If not is there a workaround?  It is not an option to remove create rights for the Lookup object.

Like 1

Like

2 comments

Hello Gareth,

 

Please check the answer on this post: 

https://community.creatio.com/questions/disable-new-option-city-state-l…

 

Here was a contrary question to DISABLE "NEW" OPTION. But you can try by analogy to change  "Lookup view" from  "List" to "Selection window" and the "New" button should be available.

 

Best regards,

Bogdan

 

 

Hello Gareth,

 

you can also disable New in "List", but with a little coding:

1. Override LookupQuickAddMixin

 

define("UsrLookupQuickAddMixin", ["LookupQuickAddMixin"], function() {
	Ext.define("Terrasoft.UsrLookupQuickAddMixin", {
		override: "Terrasoft.LookupQuickAddMixin",
		onLookupDataLoaded: Terrasoft.emptyFn
	});
});

 

2. Replace BootstrapModulesV2

define("BootstrapModulesV2", ["UsrLookupQuickAddMixin"], function() {
	return {};
});

 

Show all comments