Время создания
Filters

Hi Community,

I’m on Creatio 8.3.2 (Freedom UI) and I’m trying to set the first tab as the default on every page init, because the designer option under Tabs (“Default tab”) isn’t working in my case, so I’m doing it in code.

What I’m doing

I subscribe to the page model events inside crt.HandleViewModelInitRequest and wait for finish-load-model-attributes, then set the tab index to 0:

{
  request: "crt.HandleViewModelInitRequest",
  handler: async (request, next) => {
    await next?.handle(request);
 
    request.$context.events$.subscribe(async (evt) => {
      const modelMode = await request.$context.getPrimaryModelMode();
 
      if (evt?.type === "finish-load-model-attributes") {
        if (modelMode === "update") {
          request.$context.Tabs_SelectedTabIndex_Profile = 0;
        }
        if (modelMode === "create") {
          request.$context.Tabs_SelectedTabIndex_Profile = 0;
        }
      }
    });
  }
}

The problem

This event is emitted more than once (e.g., when another list/detail inside a tab finishes loading later), so my code keeps re-triggering and forces the UI back to tab 0 even after the user already switched tabs.

Unsubscribe attempt (doesn’t work)

I tried the pattern I saw in a comment on the CustomerFX article about waiting for the model to be loaded (store the returned subscription and call unsubscribe() when the needed payload arrives):customerfx

const sub = request.$context.events$.subscribe(async (evt) => {
  if (evt?.type === "finish-load-model-attributes" && evt?.payload?.SomeAttribute) {
    sub.unsubscribe();
  }
});

But in my case (8.3.2 Freedom UI) this doesn’t seem to work at all.

Questions

  • What is the correct syntax / pattern to unsubscribe from request.$context.events$ subscriptions on Freedom UI pages (8.3.2)?
  • Does events$.subscribe(...) always return an object that supports unsubscribe() in Freedom UI, or is there a different disposal mechanism?
  • Is there a recommended “run once when page is really ready” event/request that avoids finish-load-model-attributes firing multiple times?

If anyone has a working example for 8.3.x (especially for “run once” behavior or proper unsubscribe), I’d really appreciate it.

Like 0

Like

0 comments
Show all comments

Hello,

How can I make text search case-insensitive in the Read data element of a business process?


Different third-party systems write the same code using different letter cases, and because of this the business process doesn’t find an already existing record.

Like 0

Like

1 comments

Hi Vladimir. The best way to solve this case without coding (using esq or smth) is to do the following:

  1. In Account schema add a column with no use in UI - UsrCodeLower.
  2. Create some event-based process to fill this value in case of saved new Account record with Code filled or changed Code field in existing account with the following parameter [#Read account.First record in the resulting collection.Code#].ToLower() then modify Account's UsrCodeLower with it's value:

3. Add to your process for looking for an account by code (this one on the screen) some parameter for "lowered" code value: UsrDistributionNumberLower = UsrDistributionNumber.ToLower(). 

4. In the Read data element replace Code with UsrCodeLower and the parameter to UsrDistributionNumberLower. 

As both values will be in lower case, this should do.

 

 

 

 

Show all comments
#CommunicationPanel
Studio_Creatio
8.0

Hi Team, we have create a couple of custom workflows using custom objects. We are trying to generate notifications by adding records in notification object. The notifications are working fine but the thumbnails are breaking. Attached is the screenshot. How can we resolve this?

Like 0

Like

2 comments

I had that happening on after an upgrade to 8.3.2. It is caused by an issue with a new feature called DisableGenerateViewModuleScriptOptimization, which by default id disabled. You can resolve the issue by enabling that feature. 

The DisableGenerateViewModuleScriptOptimization feature is new in 8.3.2 and is a new feature meant to optimize page opening/reopening. With the feature enabled, the site is no longer using the optimization. The issue is resolved in 8.3.3, so for now, enable the feature, but when 8.3.3 comes out you'll want to disable the feature again so you can use the page optimizations.

This information is from support, my case was SR-01476352 if you end up discussing with support.

Ryan

Ryan Farley,

Thanks for the prompt response, Ryan! I don't see this feature in feature list. Where can I enable this feature?

Show all comments
Freedom_UI_–_How_to_Implement_Optional_Global_Interactive_Filters_on_Dashboard?

Hi everyone,

I’m building a Freedom UI dashboard based on the Website Form Submission object and need help implementing global interactive filters.

Use case:

  • We have filters like Location, Service Type, Form Type, etc.
  • These filters should dynamically affect all widgets (metrics and charts) on the page.
  • If a filter value is selected → widgets should update accordingly.
  • If no filter value is selected → all records should be shown (no filtering applied).

Currently, when using Page Parameters with widget-level filters, if the parameter is empty, the widget returns 0 records instead of showing all data.

What is the recommended way in Freedom UI to implement optional global filters that:

  • Affect all widgets
  • Ignore empty parameters
  • Work reliably for Metric and Chart components?

Should this be handled at the main data source level instead of per widget?

Like 0

Like

0 comments
Show all comments
Studio_Creatio_free_edition

I installed 8.3.2.4199 on my Windows with SQL Express. All worked perfectly and was able to login.

But I am getting below error when i Did first compilation without making any changes. But system is still working fine. Is there any configuration missing?

"../../CrtML/Assemblies/Terrasoft.ML.Interfaces/Terrasoft.ML.Interfaces.dll" is either a path which could not be found or it is a full assembly name which is badly formed. If it is a full assembly name it may contain characters that need to be escaped with backslash(\). Those characters are Equals(=), Comma(,), Quote("), Apostrophe('), Backslash(\).

 

Like 0

Like

2 comments

This is not an error, just warning. It causes no trouble and doesn't affect a compilation result. In case you don't want to receive such kind of messages, please lower the system setting value used for displaying compilation errors / messages by yourself or ask support to do it. I believe the setting's code is CodeCompilerWarningLevel. Please try to set it to 1, by default it is 2. 

Hello.

This warning is related to the way MSBuild interprets the assembly reference path during the build process. In particular, it reports that the specified assembly name or path:
...\CrtML\Assemblies\Terrasoft.ML.Interfaces\Terrasoft.ML.Interfaces.dll

Such warnings can occur when the build system evaluates assembly references that include special characters, long paths, or are resolved dynamically at runtime.
Importantly, this warning does not prevent the assembly from being loaded correctly, and the compilation continues successfully. Therefore, it can be safely ignored as it does not affect the normal operation of the system.

Additionally, this warning is already resolved in version 8.3.3.

Best regards,
Antonii.

Show all comments