Hello,

 

what is your experience or recommendation about deleting custom field from the object? 

If some fields were added by mistake and the package was already installed to another evirnoment. Is it ok to delete such field and install the package again? Or should we keep this 'garbage' in the object forever?

 

Thank you!

Like 0

Like

3 comments
Best reply

Hello,

 

You need to remove it from the development website, install the package on the production website, and the package installation mechanism on the production site will detect the differences in objects between what exists in production and what is in the package, and drop them.



Best regards, 

Orkhan

Hello,

 

You need to remove it from the development website, install the package on the production website, and the package installation mechanism on the production site will detect the differences in objects between what exists in production and what is in the package, and drop them.



Best regards, 

Orkhan

Orkhan,

 

is this valid also for all references to the deleted fields like forms, lists, dashboards, reports,...?

I guess the system will not check js and cs code, so that will need to be handled manually, right?

 

BR

Robert Pordes,

No, system will not check. But this is not a problem to remove such fields from the code



Kind regards,

Vladimir

Show all comments

Dear mates,

On the opportunities product page, when I select a product, the price is filled in automatically. However, I've deleted the business rules and scripts on the opportunity product page.

My problem is that this price includes tax, even though the PriceWithTaxes parameter is unchecked in the system settings.

I've set up a script to enter the price excluding tax but from time to time it's the price including tax that appears (probably an asynchronism problem).

I'd like to know where the script that enters the price of the opportunity products on the page is and how I can change the behaviour.

 

Thank you !

Nicolas

 

Like 0

Like

1 comments
Best reply

Finally we found the problem: the OpportunityProductPageV2 source page in the Opportunity package contains a method that calculates the price of the product including VAT: calculatePrice.

I've overridden the method and the problem is solved.

I thought that creating the OpportunityProductPageV2 page in the Custom package replaced the view model, but in fact it's an extension.

Sorry for the inconvenience.

 

Finally we found the problem: the OpportunityProductPageV2 source page in the Opportunity package contains a method that calculates the price of the product including VAT: calculatePrice.

I've overridden the method and the problem is solved.

I thought that creating the OpportunityProductPageV2 page in the Custom package replaced the view model, but in fact it's an extension.

Sorry for the inconvenience.

 

Show all comments

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

Hello Everyone,



Is there a way to show contacts only to their respective owner as by default and not to other users?



Thanks in advance.

Like 1

Like

1 comments

Hello,

It all depends on the specific requirement:

  1. If you need to display across the system only those contacts created by the users themselves, this can be achieved by configuring record permissions. If you toggle the switch but do not specify any roles, records will only be visible to the users who created them. You can also set up such access rights based on roles.

     

    https://academy.creatio.com/docs/8.x/setup-and-administration/administration/user-and-access-management/access-management/record-permissions



     

  2. If you want contacts across the system to be visible only to those set as the Owner of that contact, you can utilize a business process with the "Change access rights" element. Configure it in a way that when the owner changes, all access rights to the record are removed, and only the new owner is added.

     

    https://academy.creatio.com/docs/8.x/no-code-customization/bpm-tools/bpm-process-examples/how-to-manage-access-permissions-with-business-processes

     

  3. If you need to display contacts in a specific field where the owner is the current user, you can use a filtering business rule to display only those contacts where "Owner" = "Current User owner".

Thank you for reaching out!

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!

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

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

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