Hi community

 

I tried to customize the edit page actions following this article Add an action to the record page | Creatio Academy.

t the bindTo for caption, enable and tag property doesn't work

What Am I doing wrong ?

 

Like 0

Like

2 comments

Hi Stefano,

 

Most probably, the issue happens because you d didn’t add the code to this schema that checks if these actions are enabled. 

 

There are actually two places you need to add this. Once to the section page and once to the edit page for the section. An edit page can be seen in two different modes, (1) edit mode (where you're only displaying the edit page, this is what you're getting when you refresh the page while in edit mode) and (2) combined mode, this is actually the section page, where it displays the context of the section list you were on with the edit page on the side. 

With this in mind, you need to add the action menu in both the edit page and the section page for it to appear in both modes.



Best regards,

Bogdan

Thank you Bogdan,

I solved with your help.

Show all comments

Hello, how can i hide these two inputs in the minipage?

Like 0

Like

2 comments

Hello,

 

The method you've used is correct and in case the column is not removed from the minipage using this code after the page was refreshed it means that either these columns have a different name or the incorrect parent module was selected when replacing the module.

 

Best regards,

Oscar

Hi,

 

there is a syntax error: there should not be a comma at the end of the row with the "name" property (lines 9 and 13)

 

BR,

Robert

Show all comments

Hi Community,

I have a requirement that when I change the case manually from New to PO Issued, it need to check whether the amount in Include Tax from Amount details and the sum of all the Amount from RR Allocation Table is Equal or not. If not equal then a Pop-up will come and the stage change back to previous one.

Can anyone help me how to configure the requirement in the backend ?

 

 

Regards,

Jagan

Like 0

Like

3 comments

Hello Jagan,

 

I am afraid there is no ready OOTB logic to perform checks when changing the stage, as well as there, are no OOTB pop-up windows, but there is a work-around:

 

To have a pop-up windows element in business processes you will need the following marketplace solution: 

https://marketplace.creatio.com/template/popup-element-business-process…

 

You will need to create a Business Process that will be triggered as the stage is changed and check whether the values are equal. In case they are not - show the pop-up window and return the case to the previous stage. Should the values be fine - the Business Process won't change anything.

 

I hope our recommendation helps you to solve this task.

 

Best Regards,

Dan

Denis Bidukha,

Hello Dan,

I have created a business process for the requirement but sometimes the pop-up window is coming and sometimes it is not coming. So I want to achieve it through code in the backend.

 

Thanks,

Jagan

Jagan Nayak,

 

Alternatively, you can add an asyncValidate method to your page and it will be called on the save of the page. 

Basically, you need to create a validation method, that returns 

result = {
success : true
 } 

if the validation was successful, otherwise it should return 

result = { 
success : false 
 }

Inside the validation method, if the validation is not passed, you can call 

Terrasoft.showInformation(message); 

for example: 

Terrasoft.showInformation('Amount A is not equal to Amount B '); 

and then call your validation method  inside asyncValidate method. 

 

You can read more about the validation here : 

https://academy.creatio.com/docs/developer/getting_started/develop_appl…

and more on asyncValidate here :

https://community.creatio.com/questions/lead-status-validation-0



Best regards,

Yurii. 

Show all comments

Hi Community,

 

We are currently integrating our contact page via landing page functionality in Creatio, however we are getting below error. Any idea how we can fix this?

 

Like 0

Like

3 comments

Hello Fulgen, 

 

Could you please provide us with a bit more information regarding the issue? On which step exactly the issue occurs or how it can be reproduced?

Thank you in advance!

 

Best regards,

Anastasiia

Anastasiia Zhuravel,

 

On submit

 

landing.createObjectFromLanding(config);

Hello Fulgen,

 

This is a known problem for the version of the site 8.0, our developer team is currently working to fix it in further releases. 

 

In order for us to assist you further we would need to have more information, please  send an email to support@creatio.com explaining this issue.

 

Best regards,

Dariy

Show all comments

Hi All,

I want to get value from a column "X" present in Parent Section "A" into the edit page of Child Section "B" which is present as detail in Section "A". Can anyone guide me how i can achieve it without using ESQ.

Like 0

Like

3 comments

You can do it by setting the "defaultValues" of the detail. I have an article on this here: https://customerfx.com/article/passing-values-from-a-page-to-a-new-reco…

Ryan

Hi Ryan,

I need to get the values dynamically i.e. if the value of field changes in parent section, i need to get the updated value.is there a way in which i can use this.get() for it?

rajat patidar,

You'd either need to do ESQ from the detail page to read the parent record, or you could do it as a process that fires when the parent is updated to update the detail row(s).

Ryan

Show all comments

Hello Community,

 

I want to add an static page showing a custom message or an image on the section dashboard using Dashboard widget. Is this task achievable? For image, I do not want to use the web page element.

 

Thanks,

Sourav

Like 0

Like

1 comments

Hi everyone,

how to use filter month and year Esq Server (EntitySchemaQuery)?

SELECT 
* 
FROM UsrTable 
WHERE 
MONTH(CreatedOn) = 1 AND YEAR(CreatedOn) = 2022

I found there is a function at https://academy.creatio.com/api/netcoreapi/7.17.0/#Terrasoft.Core~Terrasoft.Core.Entities.EntitySchemaQuery~CreateMonthFunction.html for get month and year.

https://prnt.sc/8brMGtYq3qhP

But how to use in filter?

esq.Filters.Add(esq.CreateFilterWithParameters(FilterComparisonType.Equal, "CreatedOn", Month));
esq.Filters.Add(esq.CreateFilterWithParameters(FilterComparisonType.Equal, "CreatedOn", Year));

Thank you.

Like 1

Like

1 comments
Best reply

Hello Romadan,

You can do filters like this using macros: 

// CreatedOn is the 1st month (January)
esq.Filters.Add(esq.CreateFilter(FilterComparisonType.Equal, "CreatedOn", EntitySchemaQueryMacrosType.Month, 1));
 
// CreatedOn is the first day of the month
esq.Filters.Add(esq.CreateFilter(FilterComparisonType.Equal, "CreatedOn", EntitySchemaQueryMacrosType.DayOfMonth, 1));
 
// CreatedOn is in the year 2022
esq.Filters.Add(esq.CreateFilter(FilterComparisonType.Equal, "CreatedOn", EntitySchemaQueryMacrosType.Year, 2022));

Ryan

Hello Romadan,

You can do filters like this using macros: 

// CreatedOn is the 1st month (January)
esq.Filters.Add(esq.CreateFilter(FilterComparisonType.Equal, "CreatedOn", EntitySchemaQueryMacrosType.Month, 1));
 
// CreatedOn is the first day of the month
esq.Filters.Add(esq.CreateFilter(FilterComparisonType.Equal, "CreatedOn", EntitySchemaQueryMacrosType.DayOfMonth, 1));
 
// CreatedOn is in the year 2022
esq.Filters.Add(esq.CreateFilter(FilterComparisonType.Equal, "CreatedOn", EntitySchemaQueryMacrosType.Year, 2022));

Ryan

Show all comments

We are looking for a for a way to impose a character limitation on a string value that is different than the standard settings. 

 

For example, the user enters a job number as a string and we want to restrict entry to only 10 characters. Is there a way to do this? Obviously not OOTB but with some customization?

Like 0

Like

1 comments

There is a possibility to setup a field validation and this approach is described in this Academy article.

 

Best regards,

Oscar

Show all comments

Hi Devlabs Team,



We have a requirement to add attachments in mail by reading the attachment from a custom attachment detail. To achieve this, we are using a Send email with attachments Marketplace application. 



The issue with the above application is, it is getting installed successfully. But when accessing the element in business process its settings is not opening also getting some error in the console. (refer the screenshot attached)

 



Thanks,

Sourav Kumar Samal

Like 0

Like

2 comments

Hi Team,

 

Could you please help on this?

 

Thanks

Sourav Kumar Samal,

 

Hi Sourav!

We are aware of this issue. R&D department fixed this bug in version 7.18.4. If you have an earlier version of the application, we recommend updating it to the current version.

Show all comments

Hi Community,

I have a requirement that an error message will populate once you save a record in details section with a record no which is already exists. The error message format is like "Settlement ID is already exists with record no 1001(where 1001 is the record no of parent record)".

Here is the code below that I have written.

define("AMDSchema09eec6a7Page", [], function() {
	return {
		entitySchemaName: "AMDSettlement",
		attributes: {},
		modules: /**SCHEMA_MODULES*/{}/**SCHEMA_MODULES*/,
		details: /**SCHEMA_DETAILS*/{}/**SCHEMA_DETAILS*/,
		businessRules: /**SCHEMA_BUSINESS_RULES*/{}/**SCHEMA_BUSINESS_RULES*/,
		methods: {
			/*setValidationConfig: function() {
                // This calls the initialization of validators for the parent view model.
                this.callParent(arguments);
                this.addColumnValidator("AMDSettlementID", this.SettlementIDDuplicateValidator);
            },*/
			save: function(){
				var currentvalue = this.get("AMDSettlementID");
				var esq = Ext.create("Terrasoft.EntitySchemaQuery", { rootSchemaName: "AMDSettlement" });
				esq.addColumn("AMDSettlementID");
				esq.addColumn("AMDClaims");
				esq.filters.add("AMDSettlementID", Terrasoft.createColumnFilterWithParameter(
  					Terrasoft.ComparisonType.EQUAL, "AMDSettlementID", currentvalue));
				esq.getEntityCollection(function(response) {
  					if (response && response.success) {
						console.log("Test ",response);
   						var result = response.collection.collection.length;
						if (result > 0)
							{Terrasoft.showErrorMessage("Settlement ID {result} already Exists");
							return false;}
						else{
							return true;}
						}
 					}, this);
				}
			},

So I need a syntax in "Terrasoft.showErrorMessage()" which will read the column value from the console page(read from rowConfig) . Below adding the picture of console page.

 

 

Best Regards,

Jagan

 

 

 

Like 0

Like

3 comments

Hi Jagan,

 

In your part of code:

Terrasoft.showErrorMessage("Settlement ID {result} already Exists")

you need to pass something to this {result} in the following manner (standard JavaScript):

Terrasoft.showErrorMessage(`Settlement ID ${result} already Exists`)

and the result should be formed according to your business task. If you need to understand what to pass to the result - debug the code, set the breakpoint before showing this error message and in the console itself check what is passed and how to get to the values needed. You will be able to find out what should be passed in the console directly.

 

Best regards,

Oscar

Hi.

 

In addition to the Oscar comment please as well read this post regarding async validation i think You would like to achieve:

 

https://community.creatio.com/questions/overriding-save-function

 

Best regards,

Marcin

Oscar Dylan,

Hi Oscar,

In the above code the error message is coming when you create a record with existing record no but if you create a record with different record no it is not getting saved. Could anyone help me what is wrong with the code.

 

Regards,

Jagan

Show all comments