Hi everyone, I have a problem with the 360 application in my local instance of creatio.



It's strange because I've already reinstalled it and sometimes it opens the workplace sections (although they are the classic version), logs out, and when I try to enter the form page again, it stays loading in an eternal loop



Like 96

Like

1 comments

Hello,



For a new app on version 8.1, I'm trying to lock up all fields on a page based on the record condition. I have a Locked by field on the record and if the field is empty or different than the current user, I want to make the whole page read only. 



I was able to do that on previous versions by adding some code to the page. At high level I needed to add the  IsModelItemsEnabled attribute and have a "setCardLockoutStatus" method that triggers when the UsrLockedBy field changes. I also need to do a merge operation on the CardContentWrapper to set the generator value to DisableControlsGenerator.generatePartial.



What page code I need to write to accomplish something similar on 8.1? Or can that be accomplished now with no code?



Thanks,

Jose

Like 4

Like

5 comments
Best reply

Hello Jose,

 

The way of locking the whole page you've described is based on using the "CompleteCardLockout" feature. Unfortunately, it is not available to use on the Freedom UI pages. 

However, you may implement it using Page Designer business rules. It is possible to specify a rule that makes all the input fields editable/read-only based on the field value condition, for example:

 

The same approach might be implemented via code using the “readonly” attribute. Here is the example: https://academy.creatio.com/docs/8.x/dev/development-on-creatio-platform/platform-customization/freedom-ui/customize-page-fields/examples/set-up-the-condition-that-locks-the-field#title-3819-2. You may create one common attribute that will be responsible for locking the fields, though in that case, you should manually add its name to the "readonly" value of every field.

 

Also, you may consider using record permissions instead of the "Locked by" field. This type of permission is based on the record authorship, here are the details: https://academy.creatio.com/docs/8.x/setup-and-administration/administration/user-and-access-management/access-management/record-permissions.

 

Best regards,

Natalia

Hello Jose,

 

The way of locking the whole page you've described is based on using the "CompleteCardLockout" feature. Unfortunately, it is not available to use on the Freedom UI pages. 

However, you may implement it using Page Designer business rules. It is possible to specify a rule that makes all the input fields editable/read-only based on the field value condition, for example:

 

The same approach might be implemented via code using the “readonly” attribute. Here is the example: https://academy.creatio.com/docs/8.x/dev/development-on-creatio-platform/platform-customization/freedom-ui/customize-page-fields/examples/set-up-the-condition-that-locks-the-field#title-3819-2. You may create one common attribute that will be responsible for locking the fields, though in that case, you should manually add its name to the "readonly" value of every field.

 

Also, you may consider using record permissions instead of the "Locked by" field. This type of permission is based on the record authorship, here are the details: https://academy.creatio.com/docs/8.x/setup-and-administration/administration/user-and-access-management/access-management/record-permissions.

 

Best regards,

Natalia

Natalia Kalynovska,

Thanks Natalia. I do have a lot of fields on the page so I was looking for something like the CompleteCardLockout feature, but business rule will do. Do you know if there are any plans to have that feature on the freedom UI version? It takes some maintenance to keep those rules updated every time fields are added to the page.

Jose Hernandez,

 

We registered such a request for our R&D department, and they will consider implementing this feature for the Freedom UI pages.

Thank you for helping us to make our product better!

Natalia Kalynovska,

This feature would be very useful, definitely miss having that option that we had in Classic UI.

Natalia Kalynovska,

Hi. 
Is there any update on this? Perhaps a roadmap? 

Locking the whole page without this feature is a nightmare.

Show all comments

Hi Community,

How can we filter the Cities based on the Zip Code (string field) in Freedom UI?

Apparently dynamic filtration on Object Level works only for Lookup fields.

Sasori

Like 0

Like

4 comments

Hello Sasori,



Since a text field and there is no lookup values you can not filter it based on conditions. 

Hi Bogdan,

Your answer is something that we already now (I have already stated that in my post) . And it is very astonishing that such functionality which was oob in the Classic UI is not present in the Freedom UI.

Please give us a code example of implementing such functionality in freedom UI.

Sasori

Sasori,

 

We don't have a ready example of such implementation. 

 

However, we have already registered the idea for our R&D team to implement this functionality in further releases. I will assign your case to this project to increase its priority.  

Sasori Oshigaki,



You need to create other lookups, remove and replace the current postal code text field, so that you can add postal code to the list of cities to do the links. It is indeed weird that this is a seperate text field as an OOTB feature.



Also, accounts is in Freedom UI, with customer 360, but not account adresses , how weird is that ??

Show all comments

Dear community,

 

Has anyone been able to use the Excel Reports app in V8?

We installed https://marketplace.creatio.com/app/excel-reports-builder-creatio but the option is only visible in the old UI.

 

Kind regards,

Yosef

Like 6

Like

3 comments
Best reply

Hi Yosef!

The app does not support report download in Freedom UI sections.

As a workaround, you can set up reports that have "Custom report" report type. That way you can generate a report in the Excel reports section.

+1 Also really hoping this gets updated, or even better some enterprise level reporting functionality. 

Yes, I'd rather it become an OOTB functionality in Creatio 8.1 ... an enterprise grade tools requires enterprise grade reporting

Hi Yosef!

The app does not support report download in Freedom UI sections.

As a workaround, you can set up reports that have "Custom report" report type. That way you can generate a report in the Excel reports section.

Show all comments

Hello, community,

 

How to move a user from one role to another by using a business process?

For example, we have 2 branches: branch A and branch B.

The users for Branch A are Alex and Bobby

The users for Branch B are Charlie and Drake

Every month there is a rotation, so Alex will be in Branch B, and Charlie will go to Branch A.

How to do it in the business process?

 

Thank you.

Like 0

Like

1 comments

Hello,

 

 

We have previously discussed a similar task in this post: https://community.creatio.com/questions/create-role-programatically

 

You can simply start by adding a 'delete data' element from the 'user in roles' object and then add an 'add data' element to the same object, filling only the role and user columns.

 

Show all comments

Hello,



Is there a way or documentation on how to implement/display like the Advance Filter  on a custom tab?









I want to display the filtering function in a custom tab, then save the filtering result to Database and use it in some logic.

Like 0

Like

3 comments

Hello, Solem!

If I've understood you right and you want to add custom options to the advanced filter on custom page - please, read the following article 

https://community.creatio.com/questions/example-createexistsfiltercolumnpath

In another case - please, specify the question and give more details with screenshots if possible.

Best regards, Anhelina!

Anhelina,

 



I appreciate you answering my question.

What I want is to display a filtering in a custom tab, then save the filtering result to Database.

 

Solem Khan Abdusalam,

 

Hello,

 

Unfortunately there is no example of adding such a filter to a custom tab (along with the action handler that will save the selected result in the database). We already have a task for our R&D team to add such a possibility to add advanced filters to details on the page. We will also inform them about this question to prioritize the task.

 

Thank you for helping us in making the app better!

Show all comments

Hi all, 



In the latest updates to Creatio, you can set a datasource for the timeline component, other than the record page. 



However, if you do this, the feed component is still set to the record, which means if someone posts on this, it does not appear on the timeline. I'm not sure if this has been overlooked at development. 



I'm hoping it's possible to do this in the code but have come stuck. 



I have changed the entitySchemaName to "UsrBookings" which has correctly changed the schema. However, I can't seem to change the column which needs to be PDS.UsrBooking 

 

			{
				"operation": "insert",
				"name": "FeedComposer_aweotp0",
				"values": {
					"type": "crt.FeedComposer",
					"classes": [
						"view-element"
					],
					"sortedByColumn": "CreatedOn",
					"data": {
						"uId": "fad7ff3c-73da-a7aa-b7be-48fa49cd0d0d",
						"schemaType": "Feed",
						"sortedByColumn": "CreatedOn",
						"typeName": "crt.FeedComposer",
						"caption": "Feed"
					},
					"primaryColumnValue": "$Id",
					"cardState": "$CardState",
					"feedType": "Record",
					"dataSourceName": "PDS",
					"entitySchemaName": "UsrBookings"
				},
				"parentName": "MessageComposerSelector_uxr8sil",
				"propertyName": "items",
				"index": 1
			},



Any help greatly appreciated!

Like 0

Like

1 comments

Hello,

 

This will be changed in the Freedom UI designer. Thank you for reporting this issue!

 

As for the workaround: the code of the composer should be changed in the following manner (PDS_UsrAccount_x75v5wo should be replaced with the attribute of the column for which the feed should be displayed and new messages saved, "entitySchemaName": "Account" - entity of the section where feed messages should be saved)

"feedType": "Record",
					"primaryColumnValue": "$PDS_UsrAccount_x75v5wo | crt.ToObjectProp : 'value'",
					"cardState": "$CardState",
					"entitySchemaName": "Account",
					"dataSourceName": "PDS"
Show all comments

Hi Community,

 

I have this business requirement, where I need to calculate my "Monthly Total" field right after I finish loading my form page.

 

These are the formula and fields I want to calculate:

 

var total = (monthlySubTotal - discountAmount) + ((monthlySubTotal - discountAmount) * (taxRate / 100));

 

 

I tried to use "crt.HandleViewModelInitRequest" handler, but it didn't work. Because, the data is not fully loaded.

 

Is there any other handler that I can use, that waits for all the data to be loaded and then calculate my formula?

 

Thanks in advance.

 

Best Regards,

Pedro Pinheiro

 

 

 

 

 

Like 1

Like

4 comments
Best reply

 Hello. Try this.

{
	request: "crt.HandleViewModelAttributeChangeRequest",
	handler: async (request, next) => {
		if (request.attributeName === "UsrFirstField" || request.attributeName === "UsrSecondField") {
			//recalc
		}
		return next?.handle(request);
	}
}

 

 Hello. Try this.

{
	request: "crt.HandleViewModelAttributeChangeRequest",
	handler: async (request, next) => {
		if (request.attributeName === "UsrFirstField" || request.attributeName === "UsrSecondField") {
			//recalc
		}
		return next?.handle(request);
	}
}

 

Alex Zaslavsky,

 

Thank you for  the reply.

 

I'm using the "crt.HandleViewModelAttributeChangeRequest" handler when a field is being changed.



However, in this situation, the field does not receive any change. For example, the "Tax Rate, %" field has 15.00 as its default value. This does not trigger the "crt.HandleViewModelAttributeChangeRequest" handler. But I need it to calculate the "Monthly Total" field.



After some research, I found the "crt.LoadDataRequest" handler. This handler is executed after all the data has been loaded. So, for the moment, it's working for our requirement.

 

Best Regards,

Pedro Pinheiro

I think your "Tax Rate" field triggers this request, but it's silent.

request.silent

 

Alex Zaslavsky,

 

I've changed the solution and now it's working with the "crt.HandleViewModelAttributeChangeRequest" handler.

 

Thank you.

 

Best Regards,

Pedro Pinheiro

Show all comments

Hello,

 

 

Please let us know if there is any documentation that can help us create a radio button on Freedom UI

 

Thank you,

-Georges

 

Like 1

Like

2 comments
Best reply

Hello!



As a workaround, you can use the Checkbox fields:https://academy.creatio.com/docs/8.x/no-code-customization/customizatio…

Hello!



As a workaround, you can use the Checkbox fields:https://academy.creatio.com/docs/8.x/no-code-customization/customizatio…

Hello,

 

Thank you for your support.

 

Thank you,

-Georges

Show all comments

Dear colleagues,

 

I need to bind my section folder, but at this time it appears no available in Freedom, I saw in documentation https://academy.creatio.com/docs/8.x/dev/development-on-creatio-platfor… and Folders are not available to bind

 

I'm using Creatio 8.1.1

 

Somebody knows some workaround to this?

 

Thanks in advance

Best regards

Julio Falcón

Like 1

Like

1 comments
Best reply

Hello!



Folders are stored in a separated table for each section, [object name]+Folder.

For example, for the contact section, it's ContactFolder.

For sections that were created exclusively in the Freedom UI, folders are stored in FolderTree.

 

Hello!



Folders are stored in a separated table for each section, [object name]+Folder.

For example, for the contact section, it's ContactFolder.

For sections that were created exclusively in the Freedom UI, folders are stored in FolderTree.

 

Show all comments