Can I set column values when using crt.CopyRecordRequest ? 
I have a use case where I need to create a copy of the record but change several column values in the new record. 
Is there a way to do it? 
 

Like 0

Like

2 comments
Best reply

If this is being done via a model copy (See https://customerfx.com/article/copying-a-record-from-client-side-code-using-the-model-class-in-a-creatio-freedom-ui-page/) then yes, you can update values, then finally insert the new record that was created from the copy. The article linked shows how to do this.

If this is from the Copy menu on a list, then you'd have to change that to use your own request, then copy, set the values, insert, in your own custom code.

Ryan

If this is being done via a model copy (See https://customerfx.com/article/copying-a-record-from-client-side-code-using-the-model-class-in-a-creatio-freedom-ui-page/) then yes, you can update values, then finally insert the new record that was created from the copy. The article linked shows how to do this.

If this is from the Copy menu on a list, then you'd have to change that to use your own request, then copy, set the values, insert, in your own custom code.

Ryan

Hi Ryan, 

I was just calling the request from the button. Another thing is that if you call it from any page other than [object]_ListPage it’ll open the classic ui page, rather than the freedom UI page. 
I’ll definitely give the approach you described a try, I’m sure it’ll work. 
Thanks a lot!

Show all comments

I want to add a field validation in freedom ui, like, it's a date field then i want to impose a condition if date selected by the user is backdate then don't allow the record to be saved.(Freedom UI)

Like 0

Like

3 comments

Hey,
So for example if you have a date field as dateofPM and you want to prevent the user to choose a date, which is before the date of the CreatedOn of the record 
Below is a Example of the code:
 

Hope this helps.

 

thanks but i want it in freedom ui, so where to write this js code

Show all comments

Hi,

 

Is there a way to prevent column layout modification for non-admin users ?

 

I tried to search for client code or operation permissions, but without any luck.

Like 0

Like

3 comments
Best reply

You can add the following to the List (crt.DataGrid) values:

"features": {
    "columns": {
        "adding": false
    }
}

If this is a section list, it would look like this:

{
    "operation": "merge",
    "name": "DataTable",
    "values": {
        "features": {
            "columns": {
                "adding": false
            }
        }
    }
}

If this is something for only admins, you'd need to add an attribute to the page and then use that for the value: 

"adding": "$MyAttributeName"

Ryan

You can add the following to the List (crt.DataGrid) values:

"features": {
    "columns": {
        "adding": false
    }
}

If this is a section list, it would look like this:

{
    "operation": "merge",
    "name": "DataTable",
    "values": {
        "features": {
            "columns": {
                "adding": false
            }
        }
    }
}

If this is something for only admins, you'd need to add an attribute to the page and then use that for the value: 

"adding": "$MyAttributeName"

Ryan

Ryan Farley,

So no global parameter. It's a shame. By the way, thanks for all your articles, it's a goldmine.

Jerome BERGES,

Thanks! Yes, sadly, no way to do this for all lists without adding this to every single one.

Show all comments

We want to add filters in the same way that you can add them to lookups using code on the page, as there isn't a no-code way to configure additional filters for Timeline components. In our case, it's filtering out non-completed Activity records from the Timeline. We don't seem to be able to using similar methods to lookups though (i.e. adding custom code to the crt.LoadDataRequest handler. Has anyone found a way to add such a filter? It looks like all the Timeline code is in the 9351.xxxxxxx JS file.

Like 0

Like

0 comments
Show all comments

Hi all,
 I want to upgrade my instance to freedom UI. How can I set up several form pages in Freedom UI for a section?
I've a freedom UI section with two edit page, which depends on a lookup field.

Is it possible to control which user can use a specific edit page in new button?
Version 8.1.3

 

Regards,
Merlin

Like 1

Like

2 comments

Hello,
 

You can define a typed page that will open for a specific type of lead in the Freedom UI page designer. Just hover over the add record button and in the right menu you will have the opportunity to define pages depending on the type of lead, default page, page for adding records.

FreedomUI designerFreedomUI designer

Serhii Parfentiev,

        Thank you, But I have done this one now I need to limit that one like I have a lookup in contact section. eg type (lookup in contact section) if type is customer means I need to show only wholesale in new button if its different type only enterprise should be shown.

Show all comments

Dears

 

Is it possible to edit the Components? I need to present contact name fields in this order:

  1. First Name
  2. Middle Name
  3. Last Name

 

Actually the order is other

 

Thanks in advance

 

Best regards

Julio

Like 2

Like

3 comments
Best reply

Hello,

Unfortunately, for now, it is not possible to edit and add additional fields in the short contact and account profile using the basic application tools. However, we have registered this idea for the responsible R&D team to consider and implement in future releases of the application. 

Thank you for helping us to improve our product. 

Hello,

Unfortunately, for now, it is not possible to edit and add additional fields in the short contact and account profile using the basic application tools. However, we have registered this idea for the responsible R&D team to consider and implement in future releases of the application. 

Thank you for helping us to improve our product. 

Yes please ! :)

Malika,

Thanks

Show all comments

Hi community,

I need help with implementing a toggle button in my Freedom UI section.Thanks in advance.

Regards,
Mahalaxmi Ganesan


 

Like 0

Like

1 comments

Hi all,

 

We want, in Freedom UI, to order as per customer need the options in a drop-down menu.

 

We know that this implementation is possible in Classic UI but we don't know how to address it using Freedom UI.

 

Can anyone help us in addressing our customer request?

 

Thank you very much in advance.

 

Best regards

 

Stefano

Like 1

Like

8 comments

Hello,
Please specify where exactly you need a drop-down menu; 
Please provide us with the screenshots of the Classic UI functionality that you want in Freedom UI.

Antonii Viazovskyi,

I believe Stefano is referring to a lookup displayed as a drop down. I would love to know if those can be sorted as well. They're typically sorted in alphabetical order, any of my attempts to change the order in the load request don't work.

Ryan

Antonii Viazovskyi,

Hello Antonii,

I've a lookup with figures 1, 2, 3, ,4, 5, 6, 7, 8, 9, 10... the lookup values are sorted alphabetically so the result is 1, 10, 2, etc..

I can add a leading 0 or change the collate rule for the "Name" field 

 

CREATE COLLATION numeric (provider = icu, locale = 'en-u-kn-true'); ALTER TABLE "UsrPercentDeductible" 

ALTER COLUMN "Name" SET DATA TYPE character varying(250) COLLATE "numeric";

Hi All,

 

As stated by Ryan I'm referring to a lookup dispalyed as a drop down. Is there a way to configure a custom sorting in that situation?

 

Best Regards

 

Stefano

STEFANO FERRARI,


Unfortunately, there are no basic system tools to change the alphabetical filtration order. To implement a custom filtration order, additional development will be needed. 
You can check the below posts where similar business tasks have been already discussed: https://community.creatio.com/questions/sorting-values-lookup-field-besides-alphabetic-order https://community.creatio.com/questions/sorting-drop-down-lookup https://community.creatio.com/questions/freedom-ui-sorting-lookup https://community.creatio.com/questions/change-order-lookup-values-list 
In addition, a task has already been registered in our R&D team to consider and implement such a feature in future releases

Hi guys,

 

I have decided to take a quick look at this and managed to get it working.

For example, adding this handler on the Accounts_FormPage should filter the "Type" by "Id" descending.


(In the code block change the ">" to ">", can't seem to fix this in the reply editor)

 

{
	request: "crt.HandleViewModelInitRequest",
	handler: async (request, next) => {
		let sortingConfigList = await request.$context.Type_List_Sorting;
		let firstSortingConfig = sortingConfigList[0];
		firstSortingConfig.columnName = "Id";
		firstSortingConfig.direction = "desc"; //desc or asc
		return next?.handle(request);
	}
}

 

 

 

 

So the page context attribute we need to change is attributecode_List_Sorting.
This is a list of "order configurations" (so you can order by multiple columns for example)
So we just need to get the first item in this list and change the columnName from Name to whatever other field we need to order on
And we can optionally change the direction property to "desc" to order descending (it is "asc" by default).

Thanks, I have an additional question. I have more than one lookup to be needed to sort in accounts, use this code, but sort just one. What's wrong?

 

{
	request: "crt.HandleViewModelInitRequest",
 
	// 1.- Typo Empresa
	handler: async (request, next) => {
		//await next?.handle(request);
		let sortingConfigList = await request.$context.Type_List_Sorting;
		let firstSortingConfig = sortingConfigList[0];
		firstSortingConfig.columnName = "NdosOrdenarPor"; // Campo nuevo creado en AccountType
		firstSortingConfig.direction = "asc"; //desc or asc
		return next?.handle(request); 
	}, 
 
	// 2.- Nro de Empleados
	handler: async (request, next) => {
		//await next?.handle(request);
		let sortingConfigList = await request.$context.EmployeesNumber_List_Sorting;
		let firstSortingConfig = sortingConfigList[0];
		firstSortingConfig.columnName = "Position";
		firstSortingConfig.direction = "asc"; //desc or asc
		return next?.handle(request); 
	}, 
 
	// 3.- Annual revenue/Facturacion anual
	handler: async (request, next) => {
		//await next?.handle(request);
		let sortingConfigList = await request.$context.AnnualRevenue_List_Sorting;
		let firstSortingConfig = sortingConfigList[0];
		firstSortingConfig.columnName = "FromBaseCurrency";
		firstSortingConfig.direction = "asc"; //desc or asc
		return next?.handle(request); //next?.handle(request);
	}
 
}

Julio Falcon (Cibernética),

You will need to combine these into one "handler"

 

{
	request: "crt.HandleViewModelInitRequest",
 
	handler: async (request, next) => {
		// 1.- Typo Empresa
		let sortingConfigListType = await request.$context.Type_List_Sorting;
		let firstSortingConfigType = sortingConfigListType[0];
		firstSortingConfigType.columnName = "NdosOrdenarPor"; // Campo nuevo creado en AccountType
		firstSortingConfigType.direction = "asc"; //desc or asc
 
		// 2.- Nro de Empleados
		let sortingConfigListEmployeesNumber = await request.$context.EmployeesNumber_List_Sorting;
		let firstSortingConfigEmployeesNumber = sortingConfigListEmployeesNumber[0];
		firstSortingConfigEmployeesNumber.columnName = "Position";
		firstSortingConfigEmployeesNumber.direction = "asc"; //desc or asc
 
		// 3.- Annual revenue/Facturacion anual
		let sortingConfigListAnnualRevenue = await request.$context.AnnualRevenue_List_Sorting;
		let firstSortingConfigAnnualRevenue = sortingConfigListAnnualRevenue[0];
		firstSortingConfigAnnualRevenue.columnName = "FromBaseCurrency";
		firstSortingConfigAnnualRevenue.direction = "asc"; //desc or asc
 
		return next?.handle(request); 
	},  
}
Show all comments

Hi Community,

 

We have this business requirement, where we need to add a "Quick Complete" button to the NextStep line. Similar to what this marketplace app have, but for FreedomUI.

 

https://marketplace.creatio.com/app/quick-complete-order-activities-creatio

 

We want to add the button next to the "Complete" one.

 

 

How can we achieve such business requirement? What do we need to change?

 

Thank you in advance.

 

Best Regards,

Pedro Pinheiro

Like 1

Like

1 comments

Hello,
 

Unfortunately, at the moment, the Message-composer element is not customizable from the inside using no-code/low-code tools.
 

Currently, we do not have a ready-made instruction for adding such a button. However, we have created a task for the responsible team to either create such an instruction or add no-code tools for adding custom buttons to the element.
 

Thank you for helping make our product better!

Show all comments

Hi,

I'm trying to add a live calculated field onto a Freedom List.

When 2 columns are set (e.g. Start Time, End Time) I want the Duration Column to be updated with the time difference. (With the picture below the Duration column should be set to "1hr")

 

 

Is there a way to do this?

Like 1

Like

1 comments

Hi,
 

You can implement logic similar to the DurationInMinutes and DurationInMinutesAndHours fields in the Activity object (CrtCoreBase).
 

You can check the logic for calculating these columns and build similar event-driven logic (an object-level process).
 

Method: CalculateDurationOnSaving();
 

img1


img2

img3


Alternatively, you can build a business process that will trigger when the Start Time or End Time fields are changed and calculate the required Duration field using a formula.

https://academy.creatio.com/docs/8.x/no-code-customization/bpm-tools/business-process-setup/process-formulas

Best regards,
Pavlo!

Show all comments