Hi Academy,

 

We would like to make one of the sections in the 'Connections' on the activity mini page mandatory when the category is "task".

Do you have any suggestions on how we can accomplish this?

 

Thank you in advance.

Like 1

Like

2 comments

Hello,

 

It depends on which column should be required here. One particular example: this method can be added to ActivityMiniPage:

save: function(callback, scope) {
				var opportunity = this.get("Opportunity");
				if (opportunity) {
					this.callParent(arguments);
				} else {
					Terrasoft.showInformation("Opportunity is required");
				}
			}

In this case saving of the mini page is not possible in case an opportunity is not connected to an activity and the information message will be shown on the page.

Hi Oleg,

 

Thank you, it works!

Show all comments

Hi

 

On the section grid does anyone know the name of the below menu button, in order to remove/hide it from view?

Like 0

Like

2 comments

I believe that button is added differently, via code in a mixin. It would be easiest to just hide it with CSS. 

 

To hide for just the Orders section you'd add the CSS like this: 

#OrderSectionV2Container .grid .t-btn-wrapper[data-tag="processEntryPoint"] {
    display: none;
}

You'd add this to the OrderSectionV2. You can see how to add CSS here: https://customerfx.com/article/adding-custom-css-style-sheets-in-bpmonl…

Ryan

thanks Ryan

Show all comments

Hi guys! I was wondering if there's a direct way to connect Creatio with Airtable...

 

Thanks in advance,

ALfredo

Like 0

Like

2 comments
Best reply

Hello,

 

In the basic version, there is no integration with Airtable.

However, you can integrate using other option - https://academy.creatio.com/docs/8.x/dev/development-on-creatio-platfor…

 

Best regards,

Yuliya

Hello,

 

In the basic version, there is no integration with Airtable.

However, you can integrate using other option - https://academy.creatio.com/docs/8.x/dev/development-on-creatio-platfor…

 

Best regards,

Yuliya

Thank you!

Show all comments

Hi!

I'm facing an issue with Creatio running on .NET Core. Occasionally, when I create a web service and make a mistake, I come across an error page like this:

The challenge is that there are no logs saved regarding this issue. Consequently, I lack information about what went wrong, and I try to guess.

On the other hand, if I attempt the same operation on a .NET Framework running instance (e.g., in the Cloud), I receive an exception stack trace.

 

Like 1

Like

1 comments

Hi Community,

We have activated the 'Enable live data update' for the Contacts and its currently not working.

We have a business process that updates fields of the Contact once finished. Only when we click Refresh the fields are updated.

How can we fix/debug this issue?

Sasor

Like 0

Like

4 comments

I assume you're using a Freedom UI section/page? It doesn't work with classic. Also, make sure the feature "LiveEditingForCurrentUser" is on as well.

Ryan

Ryan,

Thank you for the reply.

 

The page is Contacts in freedom UI.

 

From the Business Process I am trying to update the lookup that is responsible for the stages ( Progress Bar). The progress Bar is only updated after I click the Refresh button. 

Should I do some other modifications as well ?

Sasor

We also have this issue, but then tested in 8.1.2 and not found that



Vladimir

You should check with the support. This feature is causing performance issue in 8.1.1.

I recently had an issue after I imported more than 20k cases in a site and the support deactivated the live update for a little while until I creaed a new case on this subject.

Show all comments

I have a 'Contract' object with a start date field, and I want to display that field (start date) in the associated 'Opportunity.' I used an input to retrieve the field in my opportunity. However, the issue is that the date displayed in the opportunity is in the date/time format, whereas the field in the contract is in the date format. How can I display the date in the opportunity with just the date format?

Like 0

Like

1 comments

Hi!

 

Regrettably, this behavior is currently exclusive to the Input Date/Time field. The field currently presents data exactly as it appears in the database, resulting in users consistently receiving Date/Time format data even if the corresponding page originally only contained Time or Date information in these fields.



We wish to inform you that we have imminent plans to address and rectify this behavior in the near future. Anticipated changes are expected to be incorporated in a subsequent release, likely following version 8.1.3.

 

If you have any further questions, please respond to this email we would be happy to help.

Thank you for choosing Creatio!

Show all comments

Hi Community.

Here example validator client side in Documentary

/* Declare the AMD module. */

define("UsrAppValidators_FormPage", /**SCHEMA_DEPS*/[]/**SCHEMA_DEPS*/, function/**SCHEMA_ARGS*/()/**SCHEMA_ARGS*/ {

    return {

        viewConfigDiff: /**SCHEMA_VIEW_CONFIG_DIFF*/[

            {

                "operation": "insert",

                "name": "UsrName",

                "values": {

                    "layoutConfig": {

                        "column": 1,

                        "row": 1,

                        "colSpan": 1,

                        "rowSpan": 1

                    },

                    "type": "crt.Input",

                    "label": "$Resources.Strings.UsrName",

                    "control": "$UsrName"

                },

                "parentName": "LeftAreaProfileContainer",

                "propertyName": "items"

            }

        ]/**SCHEMA_VIEW_CONFIG_DIFF*/,

        viewModelConfigDiff: /**SCHEMA_VIEW_MODEL_CONFIG*/{

            "attributes": {

                "UsrName": {

                    "modelConfigDiff": {

                        "path": "PDS.UsrName"

                    },

                    "validators": {

                        /* Bind the custom validator to the attribute. */

                        "MyValidator": {

                            "type": "usr.MyValidator",

                            "params": {

                                "invalidName": "test",

                                "message": "Invalid name"

                            }

                        }

                    }

                },

                "Id": {

                    "modelConfigDiff": {

                        "path": "PDS.Id"

                    }

                }

            }

        }/**SCHEMA_VIEW_MODEL_CONFIG*/,

        modelConfigDiff: /**SCHEMA_MODEL_CONFIG*/{

            "dataSources": {

                "PDS": {

                    "type": "crt.EntityDataSource",

                    "config": {

                        "entitySchemaName": "UsrAppValidators"

                    }

                }

            }

        }/**SCHEMA_MODEL_CONFIG*/,

        handlers: /**SCHEMA_HANDLERS*/[]/**SCHEMA_HANDLERS*/,

        converters: /**SCHEMA_CONVERTERS*/{}/**SCHEMA_CONVERTERS*/,

        validators: /**SCHEMA_VALIDATORS*/{

            /* The validator type must contain a vendor prefix.

            Format the validator type in PascalCase. */

            "usr.MyValidator": {

                "validator": function (config) {

                    return function (control) {

                        return control.value !== config.invalidName ? null: {

                            "usr.MyValidator": { message: config.message }

                        };

                    };

                },

                "params": [

                    {

                        "name": "invalidName"

                    },

                    {

                        "name": "message"

                    }

                ],

                "async": false

            }

        }/**SCHEMA_VALIDATORS*/

    };

});



is it possible to give argument of validator (invalidName) dynamic from other field value instead static like "invalidName": "test"? or can field value (other than control) accessed inside validator method?

Like 0

Like

5 comments

As far as I know, this is not possible at the moment to get a value of other attributes in a validator.

Alex Zaslavsky,

Thanks for your answer, really appreciate it.

I was told by support that it currently isn't possible, and their recommended workaround was to save the value to the JS global variable `window`, the example they gave was:

viewModelConfig: /**SCHEMA_VIEW_MODEL_CONFIG*/{
"attributes": {                
    "DateTimeAttribute_lpcf566": {
        "modelConfig": {
            "path": "PDS.StartDate"
        },
        "change": {
            "request": "dw.StartDateChange",
        },
        "validators": {
            "StartDateIsNotNotLessThanProjectStartDate": {
                "type": "dw.StartDateIsNotNotLessThanProjectStartDate",
                "params": {
                    "message": "#ResourceString(StartDateIsNotNotLessThanProjectStartDateMessage)#",
                }
            }
        }
    },
}
},/**SCHEMA_VIEW_MODEL_CONFIG*/
handlers: /**SCHEMA_HANDLERS*/[
{
    request: "dw.StartDateChange",
    handler: async (request, next) => {
        /********/window.StartDate = await request.$context.DateTimeAttribute_lpcf566;/********/
        if(request.$context.IsStartDateInited) {
            request.$context.validate();
        }
        request.$context.IsStartDateInited = true;
        return next?.handle(request);
    }
}
],/**SCHEMA_HANDLERS*/
validators: /**SCHEMA_VALIDATORS*/{
"dw.StartDateIsNotNotLessThanProjectStartDate": {
    "validator": function (config) {
        return function (control) {
            return (!control.value || control.value >= /********/window.StartDate/********/)
                ? null
                : {"dw.StartDateValidator": {message: config.message}};
        };
    },
    "params": [
        {
            "name": "message"
        }
    ],
    "async": false
}
}/**SCHEMA_VALIDATORS*/

 

Where I've highlighted with surrounding comments the usage of the window to store this additional information to be used by the validator. Definitely not ideal, and hopefully they'll add this functionality in future, since async validators to perform some checks against the record when some field changes (and so where the validator will need the record's ID) seem to be the most useful usage of them, but this should at least work in the meantime.

M Khaerul Anwar,

 

Hi, Have you solved this and works?

 

I'm trying to implement on a similar situation using the provided code, but didn't understand from where is introduced/initialized IsStartDateInited  (request.$context.IsStartDateInited)?

 

Please could you help me?

 

Thanks

Julio Falcón

Julio.Falcon_Nodos,

No, I took a different approach from client-side to server-side validation instead.

Show all comments

Hello,

i'm trying to fix a script from an entity event, which used to work before Creatio 8,

i need to compile the entity that hold it but there is an error i can't figure out :

 

on this line : 

var IsChangedUsrFraisDePortHT = Entity.GetChangedColumnValues().Any(col => col.Name == "UsrFraisDePortHT");

 

i got that error message after publishing :

'IEnumerable<EntityColumnValue>' does not contain a definition for 'Any' 
and no accessible extension method 'Any' accepting a first argument of type 'IEnumerable<EntityColumnValue>' 
could be found (are you missing a using directive or an assembly reference?)  

 

how should i process please ?

 

Best regards

Patrice

Like 0

Like

2 comments

i maybe found a workaround with code from this page : https://customerfx.com/article/adding-code-to-listen-for-entity-events-…

Hi,

 

Verify that the assembly containing the Any extension method is referenced in your project.

Make sure the assembly package checkbox is not checked. It may need to be unchecked and rechecked to verify if the website compiles.

Show all comments

Hi Team,

 

I'm trying to show the path on a custom embedded map in creatio edit page using the below given code in the edit page of the section for the polyline encoded path. However, it shows no path or coordinates on the map in the edit page. Could anyone help?

 

Diff Block to insert map in the screen:

 

{
				"operation": "insert",
				"name": "GMaps",
				"values": {
					"itemType": 7,
					"id": "googleMap",
					"styles": {
						"height": "500px"
					},
					"items": []
				},
				"parentName": "LeftModulesContainer",
				"propertyName": "items",
				"index": 2
			},

 

 

 

Method 

initMap = function() {
    var map = new google.maps.Map(document.getElementById('googleMap'), {
        center: { lat: 28.4595, lng: 77.0266 },
        zoom: 8
    });
 
    // Polyline encoded string
    var encodedPolyline = "ic`i@ohqfN@A??????????????????????????????????????????????A????????L?HABAH@KEREDEDCJIFEJ??MFMHOHMFIFCF??EBC@ABC@AD@CIFEFCDEDCBCBBCEFC@?@A@A@@CCD?@ABABA@AD@CEFCBA@?@A@CB@AEFEBCDEDEDEF??EFEFGHAFGB@ACFCD?B?BABB?AA@@?AA?????????????????????@A???C@AA??A?@?D??A@?A????????????A@?A??@???A????@@??AA@@A?B?@?@@?A??@?????????????A?@???????????????????????????????A?@?AA??@???????A????@?????A?@?????A?????@A??????????????????????????????????????????????????????????????????????????????????????A?????A@??@AA@??????@@???A?@????????????????????????????????????????????????????????????ACA@??@?????A@?@A????A????ADABCDCDGLEJ??EJEHEJGJEL??ELELCNIJEJ??CJCFCHGHCHEH??EJGLIJMHKH??OHMFMFOFMFMF??KFKFMFOFMDOH??MHKJGJIPOPGH??KFKFG@EHED??GBEHCJGJEHEH??GHAFEBCBCDA??AE@?B?@A@CDAD@C?H???CAA?AA@@?A?A@???????????@?AA?@???????AA?????@?AABA@@?A??A??????????????A??@????@?A@A@CBCFCDGL??EDCDE@ABCF@CEH?DEDC@A?A?@AEHCDEDCLEH??EJEHGJIPGJIL??ELKNIJKLIHEP??EHEFCBADCBAB@CCDC@?@?@?@?AABA@??AA?AAA@@AA?AA???@@AA???????A???@?A?@?????????????A?@?@A?@A???????????????A??@???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????";
 
    // Decode polyline
    var decodedPath = google.maps.geometry.encoding.decodePath(encodedPolyline);
 
    // Create a polyline and set its path to the decoded path
    var polyline = new google.maps.Polyline({
        path: decodedPath,
        geodesic: true,
        strokeColor: '#FF0000',
        strokeOpacity: 1.0,
        strokeWeight: 20,
        map: map 
    });
};
 
$.ajax({
    url: "https://maps.googleapis.com/maps/api/js?key=APIkeyvalue&callback=initMap&libraries=geometry",
    dataType: "script"
});
{
				"operation": "insert",
				"name": "GMaps",
				"values": {
					"itemType": 7,
					"id": "googleMap",
					"styles": {
						"height": "500px"
					},
					"items": []
				},
				"parentName": "LeftModulesContainer",
				"propertyName": "items",
				"index": 2
			},

 

Many Thanks,

Sarika

Like 1

Like

4 comments

Hi Team,

 

Could anyone help, Please?

Maybe instead of referencing the map when creating the polyline, specifically add it after. After creating the polyline add: 

polyline.setMap(map);

🤷🏼‍♂️

Ryan

Hi Ryan,

 

Thanks for the response. Tried this but still not working.  

Sarika Sharma,

Might have better luck in a forum for the maps api or StackOverflow.

Ryan

Show all comments

hi everyone!

i have detail. I use MultiChoiceMixin.

but for selection of values lookup of my MultiChoiceMixin I need enter to data.

would you explain me how to choice from list of data without entering to data (see screen, red colomn I must fill).

 

 

File attachments
Like 0

Like

1 comments

Hello,

 

This addon with multi choice https://marketplace.creatio.com/app/multiple-choice-field-setup-creatio wasn't developed to be used in the list of a detail or in the section. The responsible DevLabs team was informed about this question in the community. We've registered a problem with developing this functionality to make it possible to use the multichoice column in the list.

 

Thank you for this idea and for helping us improve the app!

Show all comments