Hello Creatio community

 

I have developed a page using Freedom UI. I want to develop some core functions that i want to call in different Freedom UI screens. For example function calculate as shown below.

 

define("ApplicationFormSection_FormPage", /**SCHEMA_DEPS*/["@creatio-devkit/common"]/**SCHEMA_DEPS*/, function/**SCHEMA_ARGS*/(sdk)/**SCHEMA_ARGS*/ {
	function calculate(value1, value2) {
		return value1 + value2;
	}
	return {
		viewConfigDiff: /**SCHEMA_VIEW_CONFIG_DIFF*/[..]/**SCHEMA_VIEW_CONFIG_DIFF*/,
		viewModelConfigDiff: /**SCHEMA_VIEW_MODEL_CONFIG_DIFF*/[..]/**SCHEMA_VIEW_MODEL_CONFIG_DIFF*/,
		modelConfigDiff: /**SCHEMA_MODEL_CONFIG_DIFF*/[..]/**SCHEMA_MODEL_CONFIG_DIFF*/,
		handlers: /**SCHEMA_HANDLERS*/[
			{
				request: "crt.HandleViewModelAttributeChangeRequest",
				handler: async (request, next) => {
					if (request.attributeName === "Field1" && !request.silent) {
						var sum = calculate(1, 2);
					}
					return next?.handle(request);
				}
			},
		 ]
	}

 

This approach doesn't work because every time i change the screen the function is removed automatically. 

 

Is there a way I can develop some core functions in a different module and call this module inside my "ApplicationFormSection_FormPage" freedom UI page?
Can you give an example for my case?

 

Best regards

Like 0

Like

1 comments

Hello,

A better approach is to use modules for page code. I try to add as little code to the page request handlers as possible and move all code to modules/classes. See https://customerfx.com/article/organizing-code-for-creatio-freedom-ui-pages-with-modules/

Ryan

Show all comments

Hello,

 

I have a column called "Income" which contains sensitive information and is accessible based on multiple business rules and custom code. We realized that while this works on the form page, any user can add the column on the list page and get to see the values.

 

The column permissions using object permission will also not work because as mentioned above, the field is to be made visible based on multiple rules and custom logic.

 

Is there a way to prevent user from adding this column on the List page?

Like 0

Like

2 comments

We make detail (even if there will be only one record) with records permission for such cases

Vladimir Sokolov,

That is a great idea to be sure that this value is not pulled anywhere! As of current implementation for us, we would like to retain the field at the section level and are looking for ways by which the visibility can be controlled. 

I think, there has to be way for the rules on form page to reflect on the list page and in folders as well. In most cases, we hide the fields because it has information that need not be shown to some users and the platform unfortunately provides a way to by-pass this by letting users add the field on the list page.

Show all comments

It is possible to change the name of the mobile app?

 

Can be rename with the name of the company instead of "Creatio"?

 

Thanks 

Like 0

Like

2 comments

Hello,

 

While it is not possible to change the name of the mobile app directly, you can use Mobile Branding to customize your mobile application.

 

You can find more information about Mobile app Branding in this article: https://academy.creatio.com/docs/8.x/dev/development-on-creatio-platfor…

Thanks for the tip

Show all comments

Hi! How to place a button at dashboard section ? I know there is an article 
https://academy.creatio.com/docs/developer/interface_elements/record_page/button/overview
but there is no information about dashboard section containers.

Like 0

Like

3 comments

Hello,

You can use this instruction: https://academy.creatio.com/docs/developer/interface_elements/record_page/button/overview to add the necessary button to any section. If you have a Freedom UI, you can use the Button component for dashboards using this article: https://academy.creatio.com/docs/8.x/no-code-customization/customization-tools/ui-and-business-logic-customization/UI-designer#title-2230-17.

 

Malika,

as I said in the post, this article does not answer my question, there is no container for the dashboard section

Andrii Herbshtasov,

Unfortunately, there is no way to implement the button in the dashboard section. 

As a workaround you can create a custom page in FreedomUI by no-code methods and add a Button with all needed dashboards.

Show all comments

I am getting the following error following logging in as Supervisor to a local deployment of Creatio:

{
    "Code": -1,
    "Exception": "Microsoft.Data.Sqlite.SqliteException: SQLite Error 14: 'unable to open database file'."
}

Any insight as to a fix appreciated.

Like 0

Like

2 comments

I have a fix for this, not in the Creatio documentation, using ISS Manager edit permissions for the Creatio site, allocate full control to the IIS_IUSRS group.

Hello!

 

Please grant rights to binary files for the user under which the application pool.


The issue is caused because the user does not have access to the \Terrasoft.WebApp\conf\runtime-data\db.sqlite directory.

 

In case of any further questions – send them in reply to this message. We would be happy to assist!

Show all comments

Hey Community,

I am importing data through Excel into my custom section and attempting to auto-calculate a field based on two other fields in the UI. However, since the user won't be opening the form page, the business rules and JavaScript code I've written aren't being triggered .

I also wrote an" Oninserting" entity event layer code, the same  is not getting triggered as well,however the entity event layer code is getting triggered on click of the new button.
How do i approach this?

Like 0

Like

1 comments

Hello,

Please describe in more detail what code you wrote (if possible, provide an example), what it is for, and how it's connected to business rule and import.

Show all comments

Hi Community,

 

I am trying to create a monthly summary (email sent, emails delivered, emails open, email bounced, number of clicks & Open rate) of email totals using pivot table in Dashboards. I have created group rows - Year and Month from Finished on Date on the email object using calculated field. Open rate is Number of opens in a month/number of emails sent in a month. When I am trying to create a calculated field Open Rate, it is calculating open rate for each row first and then summing up for the month. I want this to sum up both opens & sent on month first and calculate open rate later. How should I go about it?

 

Thanks

Like 1

Like

1 comments

Hello,

 

I've have successfully implemented OAuth 2.0 using the Identity Service provided with Creatio Studio (v 8.1.3) but I have not figured out how to use Refresh Tokens.

 

Can the OAuth 2.0 Refresh Token be implemented using that service? If so, how do I get a Refresh Token?

Thanks,
Jose

File attachments
Like 0

Like

1 comments

Hello!

 

OAuth 2.0 authorization for integrated applications does not  support refresh token flow. The third party application has to generate token and system administrator needs to update the synchronization parameters.

Show all comments

As we create a new system user then all employees role is added automatically/by default, i need not to assign any role, where can i edit this thing?

Like 0

Like

1 comments
  • Hello,

    If you want to assign a new role for the system user, please navigate to System Designer → Organizational roles. 

    In this section, you can set up any existing role for the system user or create a new role and add the user to it.



    Or you can navigate to System Designer → System users. In this section, you need to select the user and switch to the Role tab. In this tab, you can add organizational or functional roles to selected user.



    You can find more information regarding your question here:

     Assign a user role
  •  Organizational roles
  •  Functional roles
     User management

    Best regards,
    Antonii.

     
Show all comments

Hello, 

 

Is there a way to create a filter on the approval delegation list?

 

For example, the user is prompted with an approval using the approval step in a business process. They access it from the right hand panel and choose "Delegate Approval" and the window that appears offers all users and roles as an option. We want to offer a select role only as available options. Is this possible?

Like 0

Like

1 comments

Hello,

 

We have discussed the case with the responsible R&D team, who informed us that there is no possibility of managing the "Change Approver" option by roles. But the query for future implementation and further analysis was registered for the responsible team.

If you have any further questions, please respond to this email we would be happy to help.


Thank you for choosing Creatio!

Show all comments