Hello Creatio community,

 

I am using Creatio Studio Product (V.8.1.2.3941) and license "bpmonline self-service portal on-site subscription". 
I want to create a new section and page for a new object that I developed. This object will be available in Portal workplace. I created the portal screen using classic UI but it doesn't appear in the workplace setup for "External users". The only screen that Portal users can view is "Knowledge Base" screen which came with Creatio's product.

I read the Creatio documentation in "https://academy.creatio.com/docs/sites/academy_en/files/pdf/node/2088/C…" and it says that: "If you use the self-service portal, you can modify the existing portal sections but cannot add new sections.". How can I make my screen for my new created object available for portal users?

Like 0

Like

1 comments

Hello,

 

Unfortunately, according to the basic logic of our application, you cannot see any custom sections on the portal within the limitations of self-service portal license.
You can find more details in this article.

Show all comments

Hello all,

 

I am working on Freedom UI interfaces for a client's self service portal. However our portal users are unable to open the User profile page to make changes to their information. When they click on the button in the top right where their user icon is, the portal user receives an endless loading screen.

 

The problem does not occur for internal users so I don't believe it's an error on the page. I can't find a permission related to it. Seems strange that portal users wouldn't be able to edit their profile

Like 1

Like

2 comments
Best reply

Hello,

Try the following steps:
1. Log in to your site (not portal) under Supervisor
2. Go to System Settings and select Enable2FA
3. Check the checkbox 'allow reading for portal users'
4. Have the portal user clear the cache and cookies in the browser and try to enter User profile again

Hello,

Try the following steps:
1. Log in to your site (not portal) under Supervisor
2. Go to System Settings and select Enable2FA
3. Check the checkbox 'allow reading for portal users'
4. Have the portal user clear the cache and cookies in the browser and try to enter User profile again

That worked! Thanks

Show all comments

Hello,

 

We are having issues establishing communication via Self Service Portal.

 

- Messages posted by a customer via Self Service Portal are not visible to agents via Service Creatio app.

- also vice versa, messages posted by agents are not visible to the customer on the Self Service Portal

- Customer can upload an attachment file on the portal, but it system shows it as uploaded by "Supervisor" (this is the only type of message that is visible on both sides)

 

We are using the demo environment and the issue persists on Classic UI.

Version: 8.0.10.4735

 

Did anybody else encounter such problems, is there a known solution or a workaround?

 

Thanks in advance and best regards,

Mislav Rozić

Like 0

Like

1 comments
Best reply

Hello,



We already have a support case on this matter. The solution has been already provided. 

Hello,



We already have a support case on this matter. The solution has been already provided. 

Show all comments

Hello community,

 

I am trying to implement a service for portal and system users using the documentation in https://academy.creatio.com/docs/8-0/developer/application_components/portal/self_service_portal/overview

 

The service has the following code:

using Terrasoft.Web.Common;
using Terrasoft.Web.Common.ServiceRouting;
 
[ServiceContract]
[DefaultServiceRoute]
[SspServiceRoute]
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)]
public class Service1 : BaseService
{ 
       //Code
}

For system users the service works fine but when I try to access the service from postman authenticated as a portal user I get the following message : "IS 10.0 Detailed Error - 403.0 - Access to non-SSP API is denied for portal users" with 403 status code. Is something that I am missing in the service implementation or in web.config?

Like 0

Like

2 comments

Hello!

 

Ensure that you add the /ssp prefix to the route when making a request as a portal user.

A feature called "EnableCustomPrefixRouteApi" enables web services custom routing and restricts SSP user access services without the /ssp prefix.

In order to enable it you need to run the following script in the database:

 

INSERT INTO AdminUnitFeatureState (SysAdminUnitId,FeatureState,FeatureId)

VALUES ('720B771C-E7A7-4F31-9CFB-52CD21C3739F',1,'17ED5BE9-CA87-42A4-A761-3466DBABF925')

 

Another feature called "UsePortalDataService" divides services into the portal and non-portal ones. To enable it run the following script:

 

INSERT INTO AdminUnitFeatureState (id, SysAdminUnitId, FeatureState, FeatureId)

VALUES (newid(), '720B771C-E7A7-4F31-9CFB-52CD21C3739F', 1, '45D7102E-42D5-4E61-ADF8-77F00CD2F3E8')

 

So make sure you are using the /ssp prefix and both features are active in the system.

 

Best regards,

Max.

We also suggest replacing 

[DefaultServiceRoute]
[SspServiceRoute]

with

 

[DefaultServiceRoute, SspServiceRoute]

 

Best regards,

Max.

Show all comments

Hello,

 

We are repurposing the Case section in the Self Service Portal to create an Opportunity via a business process. As such, we do not need the Complain button nor the ability to Publish a message to the support team box.  Is there a method to remove these two items from the Self Service Portal Case Page?

 

Thanks,

-Scotty Chapman 

Blytheco

Like 0

Like

4 comments
Best reply

Hello Scotty,

 

Please create a replacing view model and select PortalMessagePublisherPage module as a parent and specify the following code in the created schema:

define("PortalMessagePublisherPage", [],
	   function() {
	return {
		entitySchemaName: "PortalMessage",
		mixins: {},
		attributes: {
 
			/**
				 * Publish message enabled flag.
				 */
				"IsPublishButtonEnabled": {
					dataValueType: this.Terrasoft.DataValueType.BOOLEAN
				},
		},
		methods: {
			setPublishButtonProperties: function(publishMessageInfo) {
				this.callParent(arguments);
				this.set("IsPublishButtonEnabled", false);
			},
		},
		diff: /**SCHEMA_DIFF*/[]/**SCHEMA_DIFF*/
	};
});

As a result once the schema is saved and the page is refreshed you will see that the button is always disabled:

Best regards,

Oscar

Update - I did find the System Setting for Enable Complain Function and am able to disable and hide the button that way. Still wondering if there's a way to disable the Publish Message box though.  Thanks!

Hello Scotty,

 

Please create a replacing view model and select PortalMessagePublisherPage module as a parent and specify the following code in the created schema:

define("PortalMessagePublisherPage", [],
	   function() {
	return {
		entitySchemaName: "PortalMessage",
		mixins: {},
		attributes: {
 
			/**
				 * Publish message enabled flag.
				 */
				"IsPublishButtonEnabled": {
					dataValueType: this.Terrasoft.DataValueType.BOOLEAN
				},
		},
		methods: {
			setPublishButtonProperties: function(publishMessageInfo) {
				this.callParent(arguments);
				this.set("IsPublishButtonEnabled", false);
			},
		},
		diff: /**SCHEMA_DIFF*/[]/**SCHEMA_DIFF*/
	};
});

As a result once the schema is saved and the page is refreshed you will see that the button is always disabled:

Best regards,

Oscar

Oscar Dylan,

 

Hi Oscar,

 

I will give this a try. Thanks so much!

 

-Scotty Chapman 

 

 

Oscar  - that worked like a charm. Many Thanks!

-Scotty Chapman 

Show all comments

How are cases filtered in "My cases" grid in the portal main page ?

How can it be altered ? 

In our environment, "My cases" is showing cases that do not belong to the current portal user, while some of the appropriate cases are not shown.

Like 0

Like

4 comments

Dear Ricardo,

 

They are sorted by Created on the field and it shows all cases that you are able to see in the system. The logic of this grid is described in the schema UserCasesListModule - you can replace it to modify code in it. 

 

Best regards,

Angela

Thanks Angela,

I am trying to add a replacing module for UserCasesListModule, but I cannot find it in the Parent object dropdown list.

Please advise.

Ricardo Bigio,

You can use the default parent schema (base one) and just copy all code from the original module to use it. 

 

Best regards,

Angela

Ricardo Bigio,

You can also check this article; 

https://community.creatio.com/questions/replacing-client-module

Show all comments

I want to modify the profile page of portal user. But the environment gives me this error.

This development environment is fresh install and I have only create a new package in advance setting. 

The environment info - Creatio CRM - 7.16.0.4461

Has anyone also faced this issue before?

Like 0

Like

6 comments
Best reply

Hello,

 

I got the solution.

We need to add two package in our current package

  1. SSP
  2. ProtalITILService

This solved my issue.

 

Regards,

Meet

Hello,

 

I've just deployed full bundle instance of the 7.16.0.4461. There is no similar issue. The portal user profile page or organizational page and main page can be modified without any difficulties.

Try to perform these actions in the advanced settings that can help to resolve the issue:

1. Update database structure where needed

2. Generate the source code for all items

3.Compile all items

 

If there are still any difficulties, It is better to contact the support team via support@creatio.com to look into the issue in your particular environment.

 

Regards,

Dean

Dean Parrett,

ok I will try this and update here.

Ramnath

Dean Parrett,

I face same issue on trial environment of Creatio which based on cloud

 

Regards,

Meet

Hello Meet,

 

It is definitely better to approach the support team. It would be easier to debut the error in cloud instance and find the solution.

 

Regards

Dean

Dean Parrett,

 

I tried to generate source code and compile all items. But I still can not open the Portal User profile page  to modify it.

I will have to contact support team for further help.

Thanks

 

Ramnath

Hello,

 

I got the solution.

We need to add two package in our current package

  1. SSP
  2. ProtalITILService

This solved my issue.

 

Regards,

Meet

Show all comments

In the screenshot I can not see the notification panel on Portal Workspace when portal user logs in. I want it to be visible to portal user in case of notification comes. Or else if there is another approach to notify portal user then please suggest.

Thanks

Like 0

Like

2 comments

Hello Ramnath, 



Unfortunately, there is no OOB tools or information about partner customizations available which would add the notification panel for the portal user.

We will pass this request as an idea to the responsible R&D team so they will consider the possibility of adding the requested functionality in future Creatio releases. 



Kind regards,

Roman

Roman Brown,

I wanted the notification panel on Portal Workspace for process/requests he need to complete. The process has a pre-configured page. Which needs to be filled by Portal user. But process will only show in notification. Not in the Case I build on the section page. 

Is there any other way to notify user to access and complete the process.

Thanks

Ramnath

Show all comments

After adding a custom detail with an edit page to the self-service portal page, the "+" button (add entry) does not visible.

How to make the addition of a record work in detail?

Like 0

Like

1 comments

Dear Grigoriy,

Please destribute access rights on the detail object for portal users. For example you have a detail based on UsrObject, then you need to turn on "managed by operations" for UsrObject for portal userd, so tha they can add and edit records.

http://prntscr.com/nuhpmo

 

Regards,

Anastasia

Show all comments

Hello, the Cases section for employee users has a feature where you can toggle the "show closed cases" check box as a quick way to filter out closed or cancelled cases. This is not available one the Portal Cases section for portal users. Is it possible to add this feature to the portal cases section?

Like 0

Like

5 comments

Yes. The checkbox is in the CaseSection module. It's called IsActive. You'll need to investigate the functionality and move it to the "PortalCaseSection" module according to the article by the link below. 

https://academy.bpmonline.com/documents/technic-sdk/7-13/client-modules

 

Eugene Podkovka, I tried, and the Portal Cases Section is just a blank white screen now when I log in as a portal user (in a test environment)

Do you see anything incorrect I did? Essentially I tried to add the diff and methods that were in the CaseSection to the replacing client module in the custom package for the PortalCaseSection.

 

Eugene Podkovka,

Eugene Podkovka,

Mitch Kaschub,

It's very hard to say something by a screenshot. A text would be more clear. If everything is blank, then it's probably missing comma or incorrect syntax. Try to add the code partially and find what's wrong.

Eugene Podkovka,

Sure, here is the source code tab pasted in case that helps. If I click save, the JS Errors Report tab says "Errors not found" and the schema saves correctly. I have compiled the system, but still the blank page.

I'm open to suggestions on what to try next, I am not experienced with development, I only copy pasted code from the regular Case Section schema where it looked like the code would be relevant for adding the filter I want. I don't know if I have properly called all the necessary functions or if this is even possible with the portal cases schema as is. Thank you for any advice!!!

 

define("PortalCaseSection", ["BaseFiltersGenerateModule", "CheckBoxFixedFilterStyle", "StorageUtilities",

            "ServiceDeskConstants", "CasePageUtilitiesV2", "css!CheckBoxFixedFilterStyle"], 

            function(BaseFiltersGenerateModule, CheckBoxFixedFilterStyle, StorageUtilities, ServiceDeskConstants) {

    return {

        entitySchemaName: "Case",

        details: /**SCHEMA_DETAILS*/{}/**SCHEMA_DETAILS*/,

        diff: /**SCHEMA_DIFF*/[{

                    "operation": "remove",

                    "name": "SeparateModeAddRecordButton"

                },{

                    "operation": "remove",

                    "name": "AddFolderButton"

                },{

                    "operation": "insert",

                        "name": "IsActiveFiltersContainer",

                        "parentName": "FiltersContainer",

                        "propertyName": "items",

                        "index": 0,

                        "values": {

                            "itemType": this.Terrasoft.ViewItemType.CONTAINER,

                            "visible": {"bindTo": "StatusFilterContainerDisplay"},

                            "wrapClass": ["isActive-filter-container-wrapClass"],

                            "items": []

                        }

                    },{

                        "operation": "insert",

                        "parentName": "IsActiveFiltersContainer",

                        "propertyName": "items",

                        "name": "IsActive",

                        "values": {

                            "caption": {

                                "bindTo": "Resources.Strings.CheckboxFilterCaption"

                            },

                            "bindTo": "IsActive",

                            "controlConfig": {

                                "className": "Terrasoft.CheckBoxEdit",

                                "checkedchanged": {

                                    "bindTo": "onCheckboxChecked"

                                },

                                "checked": {

                                    "bindTo": "IsActive"

                                }

                            }

                        }

                    }]/**SCHEMA_DIFF*/,

        methods: {

                    /**

                     * Initializes the setting of fixed filters.

                     * @overridden

                     */

                    initFixedFiltersConfig: function() {

                        var fixedFilterConfig = {

                            entitySchema: this.entitySchema,

                            filters: [

                                {

                                    name: "Owner",

                                    caption: this.get("Resources.Strings.OwnerFilterCaption"),

                                    dataValueType: this.Terrasoft.DataValueType.LOOKUP,

                                    filter: BaseFiltersGenerateModule.OwnerFilter,

                                    columnName: "Owner",

                                    defValue: {

                                        value: this.Terrasoft.SysValue.CURRENT_USER_CONTACT.value,

                                        displayValue: this.Terrasoft.SysValue.CURRENT_USER_CONTACT.displayValue

                                    }

                                }

                            ]

                        };

                        this.set("FixedFilterConfig", fixedFilterConfig);

                    },

                    /**

                     * Set ID contextual help.

                     * @protected

                     */

                    initContextHelp: function() {

                        this.set("ContextHelpId", 1063);

                        this.callParent(arguments);

                    },

                    /**

                     *@inheritDoc Terrasoft.GridUtilitiesV2#getFilters

                     *@overriden

                     */

                    getFilters: function() {

                        var filters = this.callParent(arguments);

                        var isFinal = this.get("IsActive");

                        if (!isFinal) {

                            filters.add("FilterStatus", this.Terrasoft.createColumnFilterWithParameter(

                                    this.Terrasoft.ComparisonType.EQUAL, "Status.IsFinal", isFinal));

                        }

                        return filters;

                    }

                    }

    };

});

 

Eugene Podkovka,

Disregard, I have figured it out.

It turns out, I needed ALL the code from the source code tab in the CaseSection schema. My original mistake was just copying pieces of the code that I thought were relevant. I don't know if I now have more code than I need, but the "show closed cases" check box is now working as I expected on the Portal Case Section page now so I am going to keep it as is.

Thanks for your help!

Here is the code I now have in the PortalCaseSection schema that is working:

define("PortalCaseSection", ["BaseFiltersGenerateModule", "CheckBoxFixedFilterStyle", "StorageUtilities",

            "ServiceDeskConstants", "CasePageUtilitiesV2", "css!CheckBoxFixedFilterStyle"],

        function(BaseFiltersGenerateModule, CheckBoxFixedFilterStyle, StorageUtilities, ServiceDeskConstants) {

            return {

                entitySchemaName: "Case",

                contextHelpId: "1001",

                mixins: {

                    /**

                     * @class CasePageUtilitiesV2 CasePageUtilitiesV2 implements quick save cards in one click.

                     */

                    CasePageUtilitiesV2: "Terrasoft.CasePageUtilitiesV2"

                },

                properties: {

                    /**

                     * Property key for 'Show closed cases' button.

                     */

                    showClosedCasesPropertyName: "showClosedCases"

                },

                attributes: {

                    /**

                     * Resolved button menu visibility.

                     */

                    "ResolvedButtonMenuVisible": {

                        dataValueType: this.Terrasoft.DataValueType.BOOLEAN,

                        value: false

                    },

                    /**

                     * Caption for ResolvedMenu button.

                     */

                    "ResolvedButtonMenuCaption": {

                        dataValueType: this.Terrasoft.DataValueType.TEXT,

                        value: ""

                    },

                    /**

                     *  Collection name drop-down menu in the function button.

                     */

                    "ResolvedButtonMenuItems": {

                        dataValueType: this.Terrasoft.DataValueType.COLLECTION

                    },

                    "IsActive": {

                        dataValueType: this.Terrasoft.DataValueType.BOOLEAN,

                        type: this.Terrasoft.ViewModelColumnType.VIRTUAL_COLUMN,

                        value: false

                    },

                    "StatusFilterContainerDisplay": {

                        dataValueType: this.Terrasoft.DataValueType.BOOLEAN,

                        type: this.Terrasoft.ViewModelColumnType.VIRTUAL_COLUMN,

                        value: true

                    },

                    /**

                     * Container for custom case section profile.

                     */

                    "CaseSectionCustomProfile": {

                        dataValueType: this.Terrasoft.DataValueType.CUSTOM_OBJECT,

                        value: null

                    }

                },

        diff: /**SCHEMA_DIFF*/[{

                    "operation": "remove",

                    "name": "SeparateModeAddRecordButton"

                },{

                    "operation": "remove",

                    "name": "AddFolderButton"

                },{

                    "operation": "insert",

                        "name": "IsActiveFiltersContainer",

                        "parentName": "FiltersContainer",

                        "propertyName": "items",

                        "index": 0,

                        "values": {

                            "itemType": this.Terrasoft.ViewItemType.CONTAINER,

                            "visible": {"bindTo": "StatusFilterContainerDisplay"},

                            "wrapClass": ["isActive-filter-container-wrapClass"],

                            "items": []

                        }

                    },{

                        "operation": "insert",

                        "parentName": "IsActiveFiltersContainer",

                        "propertyName": "items",

                        "name": "IsActive",

                        "values": {

                            "caption": {

                                "bindTo": "Resources.Strings.CheckboxFilterCaption"

                            },

                            "bindTo": "IsActive",

                            "controlConfig": {

                                "className": "Terrasoft.CheckBoxEdit",

                                "checkedchanged": {

                                    "bindTo": "onCheckboxChecked"

                                },

                                "checked": {

                                    "bindTo": "IsActive"

                                }

                            }

                        }

                    }]/**SCHEMA_DIFF*/,

        messages: {

                    /**

                     * @message UpdateResolvedButtonMenu

                     * It is need to update the collection of menu items quick save button after changing status.

                     * @param {Object} Id current status.

                     */

                    "UpdateResolvedButtonMenu": {

                        mode: this.Terrasoft.MessageMode.PTP,

                        direction: this.Terrasoft.MessageDirectionType.SUBSCRIBE

                    },

                    /**

                     * @message OnResolvedButtonMenuClick

                     * Event menu selection buttons quick save.

                     * @param {Object} config menu

                     */

                    "OnResolvedButtonMenuClick": {

                        mode: this.Terrasoft.MessageMode.PTP,

                        direction: this.Terrasoft.MessageDirectionType.PUBLISH

                    }

                },

                methods: {

                    /**

                     * Adds custom values to the profile.

                     * @param {String} propertyName Property name.

                     * @param {Object} propertyValue Property value.

                     * @private

                     */

                    _addPropertyToProfile: function(propertyName, propertyValue) {

                        var key = this.getCustomProfileKey();

                        var profile = this.$CaseSectionCustomProfile;

                        if (!this.Ext.isEmpty(profile)) {

                            profile[propertyName] = propertyValue;

                            Terrasoft.utils.saveUserProfile(key, profile, false);

                            this.$CaseSectionCustomProfile = profile;

                        }

                    },

                    /**

                     * Returns profile key.

                     * @returns {string} Profile key.

                     */

                    getCustomProfileKey: function() {

                        var schemaName = this.name;

                        return schemaName + "CustomSectionData";

                    },

                    /**

                     * @inheritdoc Terrasoft.BaseSectionV2#loadGridDataView

                     * @overridden

                     */

                    loadGridDataView: function() {

                        this.set("StatusFilterContainerDisplay", true);

                        this.callParent(arguments);

                    },

                    /**

                     * @inheritdoc Terrasoft.BaseSectionV2#loadAnalyticsDataView

                     * @overridden

                     */

                    loadAnalyticsDataView: function() {

                        this.set("StatusFilterContainerDisplay", true);

                        this.callParent(arguments);

                    },

                    /**

                     * Publishes a message to the current state of the registry.

                     * In the state of zavistimosti - Card or sets the style for a Section SectionFiltersContainer.

                     */

                    onSectionModeChanged: function() {

                        this.callParent(arguments);

                        CheckBoxFixedFilterStyle.setFilterContainerStyle(this);

                    },

                    /**

                     * Event menu selection buttons quick save

                     * @protected

                     */

                    onResolvedButtonMenuClick: function() {

                        var tagButtonMenu = arguments[0];

                        if (!tagButtonMenu) {

                            var resolvedButtonMenuItems = this.get("ResolvedButtonMenuItems");

                            if (!resolvedButtonMenuItems.isEmpty()) {

                                tagButtonMenu = resolvedButtonMenuItems.collection.items[0].values.Tag;

                            }

                        }

                        this.sandbox.publish("OnResolvedButtonMenuClick", tagButtonMenu,

                                [this.sandbox.id + "_CardModuleV2"]);

                    },

                    /**

                     * @inheritdoc Terrasoft.BaseSchemaViewModel#initializeProfile

                     * @overridden

                     */

                    initializeProfile: function(callback, scope) {

                        this.callParent([function() {

                            this.requireCustomProfile(callback, scope);

                        }, scope || this]);

                    },

                    /**

                     * Loads case section profile.

                     * @param {Function} callback Callback function.

                     * @param {Object} scope Callback context.

                     */

                    requireCustomProfile: function(callback, scope) {

                        var key = this.getCustomProfileKey();

                        this.requireProfile(function(profile) {

                            if (profile) {

                                this.$CaseSectionCustomProfile = profile;

                                if (!this.Ext.isEmpty(profile[this.showClosedCasesPropertyName])) {

                                    this.set("IsActive", profile[this.showClosedCasesPropertyName]);

                                }

                            }

                            Ext.callback(callback, scope);

                        }, scope || this, key);

                    },

                    /**

                     * Initializes the initial values of the model.

                     * @overridden

                     */

                    init: function() {

                        this.subscribeResolvedButton();

                        this.initSatisfactionUpdateProcessJob();

                        this.callParent(arguments);

                    },

                    /**

                     * Subscribes for resolved button events.

                     * @protected

                     */

                    subscribeResolvedButton: function() {

                        this.initResolvedButtonCollection();

                        var resolvedClickSubscriberId = this.sandbox.id + "_CardModuleV2";

                        this.sandbox.subscribe("UpdateResolvedButtonMenu", function(recordId) {

                            this.initResolvedButtonCollection(recordId);

                        }, this, [resolvedClickSubscriberId]);

                    },

                    /**

                     * Sets initial values for SatisfactionUpdateProcessJob

                     * @protected

                     */

                    initSatisfactionUpdateProcessJob: function() {

                        this.callSyncJobService(ServiceDeskConstants.SetSatisfactionTaskPeriod,

                                "SatisfactionUpdateProcessJob", "SatisfactionUpdateProcess");

                        var wasCheckTermSet = StorageUtilities.getItem("wasCheckTermSet");

                        if (wasCheckTermSet) {

                            return;

                        }

                        StorageUtilities.setItem(true, "wasCheckTermSet");

                        this.Terrasoft.SysSettings.querySysSettingsItem("CaseOverduesCheckTerm",

                                this.callOverdueSetter, this);

                    },

                    /**

                     * Create a scheduler to run the process at intervals.

                     * @param {Integer} value Value of the period in minutes

                     * @param {String} jobname Name of the task scheduler

                     * @param {String} processName The name of the process

                     */

                    callSyncJobService: function(value, jobname, processName) {

                        var config = {

                            serviceName: "SyncJobService",

                            methodName: "CreateSyncJob",

                            data: {

                                request: {

                                    JobName: jobname,

                                    ProcessName: processName,

                                    PeriodInMinutes: value

                                }

                            }

                        };

                        this.callService(config, this.Terrasoft.emptyFn, this);

                    },

                    /**

                     * Create a scheduler start the installation process indicators overdue appeals.

                     * @param {Integer} value The value of the system setting "Term inspection overdue treatment Minutes".

                     * @overridden

                     */

                    callOverdueSetter: function(value) {

                        this.callSyncJobService(value, "CaseOverduesSettingJob", "CaseOverduesSettingProcess");

                    },

                    /**

                     * The change in state CheckBox

                     * @param {Object} value The new value of the CheckBox after change.

                     */

                    onCheckboxChecked: function(value) {

                        this.set("IsActive", value);

                        this._addPropertyToProfile(this.showClosedCasesPropertyName, value);

                        this.sandbox.publish("FiltersChanged", null, [this.sandbox.id]);

                        CheckBoxFixedFilterStyle.onClick(value, this);

                        var activeViewName = this.getActiveViewName();

                        if (activeViewName === this.get("AnalyticsDataViewName")) {

                            this.sandbox.publish("SectionUpdateFilter",

                                null, [this.getQuickFilterModuleId()]);

                        }

                    },

                    /**

                     * Initializes the setting of fixed filters.

                     * @overridden

                     */

                    initFixedFiltersConfig: function() {

                        var fixedFilterConfig = {

                            entitySchema: this.entitySchema,

                            filters: [

                                {

                                    name: "Owner",

                                    caption: this.get("Resources.Strings.OwnerFilterCaption"),

                                    dataValueType: this.Terrasoft.DataValueType.LOOKUP,

                                    filter: BaseFiltersGenerateModule.OwnerFilter,

                                    columnName: "Owner",

                                    defValue: {

                                        value: this.Terrasoft.SysValue.CURRENT_USER_CONTACT.value,

                                        displayValue: this.Terrasoft.SysValue.CURRENT_USER_CONTACT.displayValue

                                    }

                                }

                            ]

                        };

                        this.set("FixedFilterConfig", fixedFilterConfig);

                    },

                    /**

                     * Set ID contextual help.

                     * @protected

                     */

                    initContextHelp: function() {

                        this.set("ContextHelpId", 1063);

                        this.callParent(arguments);

                    },

                    /**

                     *@inheritDoc Terrasoft.GridUtilitiesV2#getFilters

                     *@overriden

                     */

                    getFilters: function() {

                        var filters = this.callParent(arguments);

                        var isFinal = this.get("IsActive");

                        if (!isFinal) {

                            filters.add("FilterStatus", this.Terrasoft.createColumnFilterWithParameter(

                                    this.Terrasoft.ComparisonType.EQUAL, "Status.IsFinal", isFinal));

                        }

                        return filters;

                    }

                    }

    };

});

 

Show all comments