Why the City, State/Province, and Country fields are not filled for several (18) accounts?
All these accounts have shipping addresses with the city, state, and country filled.
I tried to change a city in address, but that didn't make a change in the Account's City field.
All other accounts (thousands of accounts) have city, state and country filled.

We need the fields to filter accounts.

Like 0

Like

3 comments
Best reply

Yuriy Konstantinov,

please check if the addresses of the 18 accounts are marked as primary. Only those addresses will be synced to the respective account fields.

 

BR,

Robert

Hello Yuriy,

I'm not sure what your question about is.
Are you not able to fill the field in the communication options detail? 

Best regards,
Bogdan

Bogdan,

How does a communication option connects to address? I think it's a different thing

Yuriy Konstantinov,

please check if the addresses of the 18 accounts are marked as primary. Only those addresses will be synced to the respective account fields.

 

BR,

Robert

Show all comments

Hi Community,

I have this situation where I need to update all the AccountAddress records that belong to my Account and have ImdNumerador "0". In order to do that I added the following query:

var updateQuery = Ext.create("Terrasoft.UpdateQuery", {
	rootSchemaName: "AccountAddress"
});
 
var firstFilter = updateQuery.createColumnFilterWithParameter(this.Terrasoft.ComparisonType.EQUAL, "Account", this.get("Id")); 
 
var secondFilter = updateQuery.createColumnFilterWithParameter(this.Terrasoft.ComparisonType.EQUAL, "ImdNumerador", 0); 
 
// Filters will be updated by AND logical operator in query filters collection. 
updateQuery.filters.logicalOperation = Terrasoft.LogicalOperatorType.AND;
 
// Adding created filters to collection. 
updateQuery.filters.add("firstFilter", firstFilter);
updateQuery.filters.add("secondFilter", secondFilter);
 
updateQuery.setParameterValue("Primary", false, this.Terrasoft.DataValueType.BOOLEAN); 
updateQuery.setParameterValue("IsInactive", true, this.Terrasoft.DataValueType.BOOLEAN); 
 
updateQuery.execute(function(result){ 
	if(result.success){
		window.console.log("Update Successfull");
	}
},this);

This query is executed everytime I press a button that I've created in AccountPageV2.js.

When I execute this query I get the error bellow:

I'm not understanding this error because:

  • I don't have any validation or rule for my Country field, so this must be a rule that comes with the default Creatio applications.
  • All the records that I'm trying to update have the country field filled in, so I don't know why I'm getting this.

I would like to know why this is happening and how can I fix it.

Thanks in advance.

 

Best Regards,

Pedro Pinheiro

 

Like 0

Like

1 comments

Hi Pedro,

 

The same code connected to the button on our side worked perfectly:

Try opening all the account addresses records for the account where the update error message is returned, try applying any change to each of those addresses records and check if any of them returns an error (one of them or several records should return an error). Once the error is received you can send a screenshot of such an address record and we can check why the error is received together.

 

Best regards,

Oscar

Show all comments

In order to delete an address on Account page, I need to click Actions first, then press the Delete button.

 

I would like to use a hotkey for this. How could I do it? I've seen this question, but don't know how to adapt it to my needs. Should I modify the code of AccountPageV2 for this? How to get the selected address row?
Or maybe this improvement is already planned in Creatio's next releases?

Like 0

Like

1 comments
Best reply

Hello Yuriy, 

In order to implement the requested functionality please create a replacing module for "AccountAddressDetailV2" and override "onGridDataLoaded" method in it ( It's being called after rendering). 
In this method you can retrieve a detail's grid and get the DOM element from it. You can assign your own handler on it's keydown event whcih will call  "this.deleteRecords()" after pressing the needed button. 

Here is the example for the "Delete" button in "AccountAddressDetailV2":

define("AccountAddressDetailV2", [], function() {
    return {
        entitySchemaName: "AccountAddress",
        diff: /**SCHEMA_DIFF*/ [] /**SCHEMA_DIFF*/,
        methods: {
            onGridDataLoaded: function() {
                this.callParent(arguments);
                var grid = this.getCurrentGrid();
                var wrapEl = grid.getWrapEl();
                wrapEl.on("keydown", this.onKeyDown, this);
            },
            onKeyDown: function(event) {
                if (event.keyCode === event.DELETE) {
                    this.deleteRecords();
                }
            }
        }
    };
});

Kind regards,
Roman 

Hello Yuriy, 

In order to implement the requested functionality please create a replacing module for "AccountAddressDetailV2" and override "onGridDataLoaded" method in it ( It's being called after rendering). 
In this method you can retrieve a detail's grid and get the DOM element from it. You can assign your own handler on it's keydown event whcih will call  "this.deleteRecords()" after pressing the needed button. 

Here is the example for the "Delete" button in "AccountAddressDetailV2":

define("AccountAddressDetailV2", [], function() {
    return {
        entitySchemaName: "AccountAddress",
        diff: /**SCHEMA_DIFF*/ [] /**SCHEMA_DIFF*/,
        methods: {
            onGridDataLoaded: function() {
                this.callParent(arguments);
                var grid = this.getCurrentGrid();
                var wrapEl = grid.getWrapEl();
                wrapEl.on("keydown", this.onKeyDown, this);
            },
            onKeyDown: function(event) {
                if (event.keyCode === event.DELETE) {
                    this.deleteRecords();
                }
            }
        }
    };
});

Kind regards,
Roman 

Show all comments