Hi Community,

 

I would like to know how we can make a column mandatory in an attachment list (the detail here) as soon as we upload a file to the detail.

 

 

Thanks in advance!

 

Regards,

Abilash.S

Like 0

Like

1 comments

To make a column mandatory in FreedomUI, you can follow these steps:

  1. Identify the column you want to make mandatory in the detail view of your form.

  2. Open the code or configuration file associated with your FreedomUI implementation.

  3. Locate the section or code block related to the detail view of your form.

  4. Find the column you want to make mandatory within the code or configuration.

  5. Depending on the specific implementation of FreedomUI, you can typically add a validation rule or attribute to the column to make it mandatory.

  6. Add the necessary code or configuration to enforce the mandatory requirement for the column. This may involve setting a "required" flag, adding a validation rule, or specifying a validation message.

  7. Save your changes and test the form to ensure that the column is now mandatory in the detail view.

It's important to note that the exact steps may vary depending on the version and customization of FreedomUI you are using. Refer to the documentation or consult with the developers or support team of FreedomUI for specific guidance on making a column mandatory in the detail view.



More detail : https://360degreecloud.com/

Show all comments

Hi Creatio Community,

 

I would like to know the name of the function/handler that's called when creating a record and saving it in an editable detail in FreedomUI so that we can override it. We also noticed SaveRecordRequest doesn't seem to be called here.

 

Thanks in advance.

 

Regards,

Abilash.S

Like 0

Like

4 comments

Hello,

 

These should be the crt.CreateRecordRequest request and the crt.CreateRecordHandler handler. Try those in either:

 

1) Page where detail is added

2) Detail schema

3) Edit page of the detail

 

and it should be triggered.

Oleg Drobina,

 

Tried these two methods. They don't seem to be called when creating and saving the records in an editable detail.

Abilash,



I tried this handler:

handlers: /**SCHEMA_HANDLERS*/[
			{
				request: "crt.CreateRecordRequest",
				handler: async (request, next) => {
					return next?.handle(request);
				}
			}
		]/**SCHEMA_HANDLERS*/,

on the schema where detail is added and it's successfully triggered:

It also depends on which handler you have specified in the "Add button" properties, you need to find it in the schema diff (in my case it was crt.CreateRecordRequest):

{
				"operation": "insert",
				"name": "GridDetailAddBtn_z5e8jja",
				"values": {
					"type": "crt.Button",
					"caption": "#ResourceString(GridDetailAddBtn_z5e8jja_caption)#",
					"icon": "add-button-icon",
					"iconPosition": "only-icon",
					"color": "default",
					"size": "medium",
					"clicked": {
						"request": "crt.CreateRecordRequest",
						"params": {
							"entityName": "Contact"
						}
					},
					"visible": true,
					"clickMode": "default"
				},
				"parentName": "FlexContainer_n5yrzkv",
				"propertyName": "items",
				"index": 0
			},

 

Oleg Drobina,

 

The detail we are working with uses an inline record to create new records which doesn't seem to be calling CreateRecordHandler or CreateRecordRequest. 











 

Show all comments

Hi Community,

 

Would like to know how we make a list display in FreedomUI editable or make one of it's columns editable.

 

 

Thanks in advance.

 

Regards,

Abilash.S

Like 0

Like

6 comments

Hi Abilash,



As I can see on the screenshot, it's not a freedom UI section.



For the freedom UI section, you can use the Expanded list element

 

And you can make it editable:

Bogdan,

When I open the designer for the above page I'm getting this:



 

As you can see, I don't have the option to make it editable.

 

Abilash,



Is it expanded list element?

Bogdan,

I'm not sure. How do I check that?

 

Abilash,

 

Tis is not a expanded list element this is a Attachment Element

To my pleasant surprise, it appeared that that attachments component became editable since 8.0.7. If you upgrade your instance you should be able to make it editable. 

Show all comments

In contact/Account list , every time i want to go to a field proporties it blocks the page .

This is the error i get in the console :

Like 0

Like

1 comments

Hello,

 

This issue has already been resolved in version 8.0.8.

If the error persists in your version, please create a support ticket with support@creatio.com.

As a workaround, you can access the properties of the column through the page designer.

Show all comments

Hello Community, 

 

I have a requirement to validate a Column in the editable detail.

How can we achieve this? I tried using validators with the column name of Datagrid. But it didn't worked.

 Any suggestions is really helpful. 

 

Thanks

Gargeyi.G

File attachments
Like 0

Like

3 comments

Hello,

In order to add validation to an editable detail you need to override the method save() in the detail page, for example:

define("UsrSchema1051cea3Page", [], function() {
	return {
		entitySchemaName: "UsrTestDetObj",
		attributes: {},
		modules: /**SCHEMA_MODULES*/{}/**SCHEMA_MODULES*/,
		details: /**SCHEMA_DETAILS*/{}/**SCHEMA_DETAILS*/,
		businessRules: /**SCHEMA_BUSINESS_RULES*/{}/**SCHEMA_BUSINESS_RULES*/,
		methods: {
			save: function() {
                    if (this.get("UsrName") == "1") {
                        this.callParent(arguments);
                    } else {
                        this.showInformationDialog("UsrName should be 1 ");
                    }
                }
		},
		dataModels: /**SCHEMA_DATA_MODELS*/{}/**SCHEMA_DATA_MODELS*/,
		diff: /**SCHEMA_DIFF*/[]/**SCHEMA_DIFF*/
	};
});

 

Hello, 

 

Thankyou for your response, 

But I wanted to validate columns in the detail,

I don't open the detail page and so I don't want to validate in the detail page but in the inline record.

please find attached screenshot

Hi,

This example is working on a detail itself.

With it, you cannot save the record unless the condition is met.

Considering the fact that detail fields are virtually generated, this is the best option to add validation.

Show all comments

Hi Community,

 

I have this requirement that should allow users to revert changes of a specific record value. For example:

 

I have a specific field (Amount), that changes value when a new state is triggered (ex: Processed). It should be possible for the user to revert the value after selecting the previous state.

 

State New  -> Amount 5

State Processed -> Amount 10

State New  -> Amount 5

 

Can you please help me achieve this requirement?

 

Thanks in advance.

 

Best Regards,

Pedro Pinheiro

Like 0

Like

4 comments

Hi!

 

You can configure business rules to set a value in a specific field when a condition is met. You can find an example of how to configure it in the manual - https://academy.creatio.com/docs/user/customization_tools/ui_and_busine…

 

Regards,

Anton

Hi Anton Starikov,

 

Is it possible to use business rules if the value is dynamic? 

 

For example, when a specific requirement is met I want the field to have the previous value, which was defined by the user.

 

Thank in Advance.

 

Best Regards,

Pedro Pinheiro

Hi! Pedro Pinheiro,

 

Unfortunately, you can't do this with the standard settings. Perhaps it can be implemented by custom development.

 

Regards,

Anton

Hi

Anton Starikov,

 

Do you have any steps that could help us implement this custom logic? 

 

Thanks in Advance.

 

Best Regards,

Pedro Pinheiro

Show all comments

Hello Community, 

 

I have a scenario where I wanted the lookup field as a Selection Window in Freedom UI.

I have updated the lookup column in the object as the "Selection Window". But the lookup still open as a list instead of selection window. 

Any suggestions are really helpful.

 

Thanks 

Gargeyi.G

 

Like 1

Like

1 comments

Hello,



There is no such option in Freedom UI now. 

 

We've registered it in our R&D team backlog for consideration and implementation in future application releases.

 

Thank you for helping us to improve our product. 

Show all comments

Hi Community,

 

I have this requirement where I need to stay on the edit page after saving a new created record. Similar to what already exists on the old UI (https://community.creatio.com/questions/how-save-and-stay-edit-page-cli…).

 

However, I couldn't find the property "IsSilent" on the new Freedom UI pages.

 

Can you please help find a solution to this requirement?

 

Thank in advance.

 

Best Regards,

Pedro Pinheiro

Like 2

Like

5 comments

Hi Pedro,

 

Our R&D team has an opened task on this topic, there is a test solution, but it cannot be applied to productions. Once the task is completed we will notify all our customers and partners in the Release Notes for the app. Thank you for helping us in making the application better! 

Hey Oleg,

 

Any update on this? Is there a way to update a field, or save a record silently without triggering other events/handlers?

 

Thank you!

Chris

Chris Heyman,

This functionality has not yet been implemented, but we have already received many requests from users, so the R&D team should take this task into development. 

Hi all,

 

Any news on this?

 

April 2023 was the original request.

 

Almost one year in.

 

Thanks

Luis Tinoco Azevedo,

You can set 

request.preventCardClose = true;

in the "crt.SaveRecordRequest" request. See my post on this thread for more details: https://community.creatio.com/questions/dont-close-page-after-saving

Ryan

Show all comments

Hello,

Is there an article explaining how to lock edit Freedom UI pages? Similar to this 

Locking edit page fields | Creatio Academy but for Freedom UI. 

 

Thanks,

Jose

Like 1

Like

1 comments

Hi!



Unfortunately, such an instruction is currently available only for the old UI



 

Show all comments

Hi Community,

 

I have this requirement where I need to refresh the form page of my record using the refresh button of the new Freedom UI. This button was created with the help of the page designer, as you can see on the image bellow.

 

 

However, when I try to refresh the page by clicking on the created button. Creatio, instead of refreshing the current page data, it loads the data from another record.

 

Before refresh:

 

After refresh:

 

Could you please help me understand this behaviour and explain me how can be solved.

Thank you in advance.

 

Best Regards,

Pedro Pinheiro

Like 2

Like

2 comments

Seems to be an 8.0.6 bug

Hello Pedro!

 

Thank you for your post and sorry for invonvenience caused by this problem. This behaviour was removed in version 8.0.7 which is going to be released very soon.

 

 

 

 

Show all comments