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

3 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

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

0 comments
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

1 comments

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

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

2 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

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

0 comments
Show all comments

I have a script that collects a data set using:

 

var oppProdQuery = new EntitySchemaQuery(UserConnection.EntitySchemaManager,"OpportunityProduct");

On publish, this is throwing an error:

 

'FlowEngine' is obsolete: '7.17.3 | Class is not in use and will be removed in upcoming releases. Use IProcessExecutor (UserConnection.ProcessEngine.ProcessExecutor) to start the processes.'

 

Can you advise how to fix?

Like 0

Like

1 comments

Hello!

Please use the following instruction to solve the question:
https://academy.creatio.com/docs/8.x/dev/development-on-creatio-platfor…

Show all comments

Hello everyone,

I would like to calculate sales KPI and show them in dashboard like Last year to date, year to date sales, calculate the year to date difference and also made it also in percentage.

 

First I tried with a list and used pivot table to calculate these KPIs but I encounter a case wich if an account made an order this year but not the previous year, an error : divide by 0 occurs. I can't use any operators in the formula to avoid this case.

 

So I tried another solution by using the "calculated metrics" plugin to calculate the difference in sales since the beginning of the year and the difference in sales since the beginning of the last year as a percentage.

This works but the display is only in the form of metric values, is it possible to build a column dashboard with the metric data as input?

 

Can I create an object from my metric data and use it in a dashboard ?

Or even a function that takes order.account.owner as currentUser and returns the data?

Like 1

Like

0 comments
Show all comments

Hi Community,

In the OData4 protocol the maxTopLimit parameter

defines the limit for the value in the maximum number of rows in the output (which is 20.000 records)

We are retrieving the data from the Accounts table which has around 40.000 records.

What is the workaround or fix for this scenario?

Sasor

Like 0

Like

1 comments
Best reply

You can use the $top and $skip parameters to retrieve the data in pages. 

For example: 

Page 1 (first 1000)

https://creatiourl/0/odata/contacts?$top=1000&$skip=0

Page 2 (next 1000) 

https://creatiourl/0/odata/contacts?$top=1000&$skip=1000

Page 3 (next 1000) 

https://creatiourl/0/odata/contacts?$top=1000&$skip=2000

etc

Ryan

You can use the $top and $skip parameters to retrieve the data in pages. 

For example: 

Page 1 (first 1000)

https://creatiourl/0/odata/contacts?$top=1000&$skip=0

Page 2 (next 1000) 

https://creatiourl/0/odata/contacts?$top=1000&$skip=1000

Page 3 (next 1000) 

https://creatiourl/0/odata/contacts?$top=1000&$skip=2000

etc

Ryan

Show all comments

Hi

 

I have two buttons on the accounts page that appear fine except when navigating to page via Global Search, where one disappears.

 

Standard Record access

 

Access via Global search

 

 

Both buttons have same set up except one is right container and one is left.

 

Anyone know why this is happening and how to resolve it?

 

Like 0

Like

2 comments

Hello,

 

Please specify how exactly this button was implemented in your system.

It was created using Replacing view model. It works and displays fine unless you go into record via Global Search. The other button 'Supplier Approval' was created in same way and displays when viewing via global search. The pages are the same so it is strange.

Show all comments