Время создания
Filters

I encountered an unexpected issue with the MutualFiltration functionality, specifically related to filtering sub-category in InfoMarket elements based on the selected category. This feature had been functioning correctly previously, but it seems to have stopped working without any recent updates or changes from our end.

As per our implementation, the MutualFiltration is supposed to filter the sub-category elements (UsrSousCategorie) based on the relationship between the selected category (UsrCategorie) and its corresponding sub-categories. The filtering logic is as follows: UsrSousCategorie.UsrCategory == UsrCategorie.



Terrasoft.sdk.Model.addBusinessRule("UsrMarketInfo", {

    ruleType: Terrasoft.RuleTypes.MutualFiltration,

    triggeredByColumns: ["UsrCategorie","UsrSousCategorie"],

    connections: [{

    parent: "UsrCategorie",

    child: "UsrSousCategorie",

    connectedBy:

        {

            modelName: "UsrSousCtegorieInfoMarket",

            property: "UsrCategory",

        }

    

    }]

});

Like 0

Like

2 comments

Hello!

 

Could you please provide more information on how this logic has been implemented?

 

Thank you!

Hanna Skalko,

just we need to filter the field sous category with the selected category , show in the lookup filed  the sous-category that

UsrSousCategorie.UsrCategory == UsrCategorie.

Show all comments

Hello Community,

 

When calling a custom web service that uses anonymous authentication from the browser using this link : 

"http://mycreatio.com/0/ServiceModel/UsrCustomConfigurationService.svc/G…"

 

The page does not seem to work.

 

Note :  we have an on premise Creatio instance on Linux based on .Net Core.

 

Bellow are the steps to reproduce the case:

 

The Academy guides on how to Create a custom web service that uses anonymous authentication for .NET Core : https://academy.creatio.com/docs/developer/back_end_development/web_ser…

This is the class indicated in the first step (that returns the contact ID by the contact name) : 

namespace Terrasoft.Configuration.KycCustomConfigurationService {

    using System;

    using System.ServiceModel;

    using System.ServiceModel.Web;

    using System.ServiceModel.Activation;

    using Terrasoft.Core;

    using Terrasoft.Web.Common;

    using Terrasoft.Core.Entities;

    using Terrasoft.Web.Http.Abstractions;

    [ServiceContract]

    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)]

    public class KycCustomConfigurationService: BaseService {

        private SystemUserConnection _systemUserConnection;

        private SystemUserConnection SystemUserConnection {

            get {

                return _systemUserConnection ?? (_systemUserConnection = (SystemUserConnection) AppConnection.SystemUserConnection);

            }

        }

        /* The method that returns the contact ID by the contact name. */

        [OperationContract]

        [WebInvoke(Method = "GET", RequestFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Wrapped,

            ResponseFormat = WebMessageFormat.Json)]

        public string GetContactIdByName(string Name) {

            SessionHelper.SpecifyWebOperationIdentity(HttpContextAccessor.GetInstance(), SystemUserConnection.CurrentUser);

            var result = "";

            var esq = new EntitySchemaQuery(SystemUserConnection.EntitySchemaManager, "Contact");

            var colId = esq.AddColumn("Id");

            var colName = esq.AddColumn("Name");

            var esqFilter = esq.CreateFilterWithParameters(FilterComparisonType.Equal, "Name", Name);

            esq.Filters.Add(esqFilter);

            var entities = esq.GetEntityCollection(SystemUserConnection);

            if (entities.Count > 0) {

                result = entities[0].GetColumnValue(colId.Name).ToString();

                result = entities[0].GetTypedColumnValue(colId.Name); */

            }

            return result;

        }

    }

}

and this is the changes to the ..\Terrasoft.WebHost\appsettings.json file

"Terrasoft.Configuration.KycCustomConfigurationService": [

                                "/ServiceModel/KycCustomConfigurationService.svc"

                        ]



Thank you,

 

Like 0

Like

0 comments
Show all comments

Hello community,



I'm tr
ying to apply dynamic filter for printables, my requirement is i am filtering the detail based on a quick filter(date) and when data's are filtered i want to generate a printable for that filtered data in the detail, now it is generating printable for all the data in the detail not taking the quick filter into account. Is there any way to achieve this?


 

Best regards,

Mahalaxmi Ganesan

Like 0

Like

0 comments
Show all comments

Hi Team,

I have local dev environment of creatio 8.0.4 installed in file system mode. I am trying to upgrade it to 8.0.10. I have my dev package named 'EqtCustomizationsV1' which has some .cs schemas involving event listeners and others.

 

During the upgrade, I am getting compilation errors for .cs files in my dev package, mostly duplicate type errors like

\Terrasoft.WebApp\Terrasoft.Configuration\Pkg\EQTCustomizationsV1\Schemas\EqtContactLocationMacro\EqtContactLocationMacro.cs(13,18) error CS0101: The namespace 'Terrasoft.Configuration' already contains a definition for 'EqtContactLocationMacro'

 

This error was not there before upgrading. While I investigate the error I found same file is generated in the Autogenerated\Src  folder during upgrade.

The lower one is the original one. The upper one is generated during the upgrade. Is it happening because my application is in filesystem mode?  How can I resolve the issue.

 

Thanks in Advance.

Like 0

Like

0 comments
Show all comments

Hello team,

We are currently working on a project and we have applied button schema on both edit page and section page but then also whenever this section is used as a detail and that detail record is opened in a full view, the buttons are not visible at the moment.

For example-I have created two buttons escalation and assigned in the cases section and the code for both the buttons is placed on edit page schema and section page schema but then also whenever we use case as a detail for instance I have used case as a detail in driver section and there are some cases regarding that driver id so whenever I click to open case full view with the help of detail, the buttons are not visible.

Can anyone please Help me to resolve this issue.

Thankyou in Advance.

Like 0

Like

1 comments

Hello Kashish,

 

You need to focus on the logic that controls the button visibility first since I've set up the same scenario in my local app and when the edit page is opened from a detail the logic from the edit page methods and diff is used to display the button (and the button displayed properly in my case). So in case you use the "Visible" property in the button diff you need to check if the conditions to display the button are met (debug the visibility method handler). 

Show all comments