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

Hi there,

 

I want to add fixed filters in detail used in the section record in such a way that the user doesn't need to add the filter manually.

The highlighted functionality needs to be achieved. Please refer to the document if this has been implemented in the past.

Like 0

Like

0 comments
Show all comments

Like 0

Like

1 comments

Hello,

Could you please describe in more detail what error you are getting when logging in to the site?

Show all comments

Hello!

I would like to provide an example of how to add a merge records button for details in the Classic UI interface.
Example based on the address details in the contact page - schema ContactAddressDetailV2:
1. Create an overriding module for the ContactAddressDetailV2 schema through the configuration section.
2. Add the schema code:

 

  define("ContactAddressDetailV2", ["RightUtilities","SectionMergeHelper","DuplicatesSearchUtilitiesV2","DuplicatesMergeHelper"], 

function(RightUtilities){
   return {
       mixins: {
               DuplicatesSearchUtilities: "Terrasoft.DuplicatesSearchUtilitiesV2",
               DuplicatesMergeHelper: "Terrasoft.DuplicatesMergeHelper",
               SectionMergeHelper: "Terrasoft.SectionMergeHelper"
           },
       messages: {
               /**
                * @message Merge
                * Merge records.
                * @param {Object} Merge config.
                */
               "Merge": {
                   mode: Terrasoft.MessageMode.PTP,
                   direction: Terrasoft.MessageDirectionType.SUBSCRIBE
               }
           },
       attributes : {
           IsMergeRecordsButtonVisible: {
               dataValueType: Terrasoft.DataValueType.BOOLEAN,
               value: true
           },
        
       },
       
       methods : {     
           
           addGridOperationsMenuItems : function(toolsButtonMenu){
               this.callParent(arguments);
               toolsButtonMenu.addItem(this.getButtonMenuSeparator());
               toolsButtonMenu.addItem(this.MergeRecords());
           },
           
           
           MergeRecords: function() {
               return this.getButtonMenuItem({
                   Caption: {"bindTo": "Resources.Strings.MergeRecordsButtonCaption"},
                   Click: {"bindTo": "mergeRecords"},
                   Visible: {"bindTo": "IsMergeRecordsButtonVisible"}
               });
           },

             mergeRecords: function(mergeConfig) {
                        var items = this.getSelectedItems();
                        if (items && items.length > 1) {
                            var config = this.getMergeServiceConfig(items, mergeConfig);
                            this.callService(config, this.handleMergeServiceResponse.bind(this, items), this);
                        } else {
                            this.showInformationDialog(resources.localizableStrings.SelectMoreThanOneRowErrorMessage);
                        }
                    },
    subscribeSandboxEvents: function() {
               this.callParent(arguments);
               const moduleId = this.getMergeModuleId();
               this.sandbox.subscribe("Merge", function(config) {
                   this.mergeRecords(config);
               }, this, [moduleId]);
           },
       
           init: function(callback, scope) {
               this.callParent(arguments);
               this.subscribeSandboxEvents();
           }

                }      
       
   };    
});
3. Add a localized string for the button name with the code MergeRecordsButtonCaption.

Like 1

Like

Share

0 comments
Show all comments

Hi everyone,

in the OLD UI I used to create a separate module that stored all the constant values used in the code of the pages, such as a specific AccountTypeId or a SysAdminUnitId. I also used to add this module in the edit pages to access those values.

Now I need to do the same thing in the Freedom UI and I haven't figured out how to do it yet. I tried using the same approach by adding the Module in the SCHEMA DEPS and ARGS of the page definition, but I can't access the properties of the custom module.

Can anyone help me?
Let me know.

Thanks in advance.

BR,

 

Luca

Like 0

Like

1 comments
Best reply

I did additional tests and found that referencing the module in the SCHEMA DEPS and ARGS is correct, even though while debugging it's not possible to see the page constants "clearly". However, using "await" allows you to access to those values.

For example, like this:

var customerType = await UsrTestConfigurationEnum.AccountTypes.Customer;

I did additional tests and found that referencing the module in the SCHEMA DEPS and ARGS is correct, even though while debugging it's not possible to see the page constants "clearly". However, using "await" allows you to access to those values.

For example, like this:

var customerType = await UsrTestConfigurationEnum.AccountTypes.Customer;
Show all comments

Hi all,

 

In the application we are building we have necessity to have Rich Text field that need to be filled with log descriprion (400/500 characters). The content of this field is not all visible in list section. Because of this we are asking the following:

 

  • - In a list Section is it possible to increase the height of a row so that all the content of a field clould be visible to the final user (please refer to attached file)?

 

Right now the only possibility a final user has to see the entire content of the field is with the tooltip.

 

Regards

 

Stefano

File attachments
Like 0

Like

0 comments
Show all comments