Studio_Creatio
Studio_Creatio_enterprise_edition
#customization
8.0

Hello Community,

 

I would like to switch tabs based on a user action using code in a handler. Is it possible to write code that opens a custom tab on the same page, as shown in the figure below?

 

On button click, I have implemented below code in the handler, but it is not working.

{
        request: "crt.OpenTab",
        handler: async (request) => {
            request.$context.set("SelectedTab", "CustomTab");
            request.$context.set("ActiveTab", "CustomTab");
            request.$context.profile.set("Tabs_SelectedTabIndex_Profile", 2);
        return true;
     }

}

 

Best regards,

Ajay Kuthe

 

 

Like 2

Like

4 comments
Best reply

The attribute you need to set is the [TabControlName]_SelectrdTabIndex_Profile. If you tab control is named "TabPanel_fb0xrup", then the attribute you would set would be:

// select first tab
request.$context.TabPanel_fb0xrup_SelectedTabIndex_Profile = 0;

Note, the indexes are zero based.

Ryan

The attribute you need to set is the [TabControlName]_SelectrdTabIndex_Profile. If you tab control is named "TabPanel_fb0xrup", then the attribute you would set would be:

// select first tab
request.$context.TabPanel_fb0xrup_SelectedTabIndex_Profile = 0;

Note, the indexes are zero based.

Ryan

Also, to clarify, there is no "set" method in Freedom UI pages like there was in classic pages. You will just set and read values from the attributes directly as normal variables.

Ryan Farley,

Yes, it works fine.

 

However, how can I get the index of a particular tab using the Element code in the context? #FreedomUI

 

Ajay,

I am not sure there's a way to get the index at runtime, if there is I've not seen anything yet, but it's possible it's buried somewhere in the $context.

Show all comments

hello i already make deployment in windows its work very well for some period of time, when i want to open it now it stuck on this page after login,

i try to inspect and got this error objectStore does not exists: business-rules any suggestion how to solve it?

Thanks in advance

Like 0

Like

2 comments

Greetings!
 

Thank you for reaching out. Could you please send us an email at support@creatio.com?


Kindly provide the steps to reproduce the issue and the site logs, and we will analyze the problem and provide you with a solution.

Regards, 
Orkhan

I was running into the same problem, don't know the real cause of the issue but to fix it you need to cleanup indexdb inside the browser.

The way to do it without doing a full clear is:
1) Open developer tools on the stuck screen
2) Go to Application Tab
3) Select Storage
4) Click "Clear Site Data"



 

Show all comments
file
file upload
FileApiService
Studio_Creatio
8.0

Hi Community,

 

I have a question regarding customization file storage in Creatio. Is it possible to save files directly in the file system instead of the database (default)? 

I came across documentation on "Implementing a custom file storage," but I'm unsure whether these customizations affect the location where files are stored, or if they only modify the file metadata.

https://academy.creatio.com/docs/8.x/dev/development-on-creatio-platfor…

 

Additionally, is it possible to customize the format in which the file is saved? 

By default, files are saved as BLOBs (In Database). However, if we want to store files in the same format but directly in the file system rather than as BLOBs, would that be possible in Creatio?

Like 0

Like

1 comments
Best reply

Hello, 

The "Implementing a custom file storage" documentation you referenced utlines how to achieve this, and it does indeed allow you to change the location where files are stored. 

 

The process involves implementing a custom file storage system using file management API. Specifically, you can:

 

This interface defines how file content is stored and retrieved. By creating a custom class that implements this interface, you can direct to save files to a file system instead of the database. For example, you could write a class that saves files to a specified directory on the server’s file system.
 

After implementing the storage logic, you register it in SysFileContentStorage lookup, which tells the system to use your custom storage for file operations.


How to check:


 

You’ll also need a custom file locator (implementing IFileLocator) to specify where files are stored in the file system, and optionally a custom metadata storage (implementing IFileMetadataStorage) if you need to tweak how metadata is handled. 


Our documentation explains more about it: 

https://academy.creatio.com/docs/8.x/dev/development-on-creatio-platform/8.1/back-end-development/api-for-file-management/overview
https://academy.creatio.com/docs/8.x/dev/development-on-creatio-platform/back-end-development/api-for-file-management/references/ifilecontentstorage
EntityFileLocator class | Creatio Academy

Regards,
Orkhan
 

Hello, 

The "Implementing a custom file storage" documentation you referenced utlines how to achieve this, and it does indeed allow you to change the location where files are stored. 

 

The process involves implementing a custom file storage system using file management API. Specifically, you can:

 

This interface defines how file content is stored and retrieved. By creating a custom class that implements this interface, you can direct to save files to a file system instead of the database. For example, you could write a class that saves files to a specified directory on the server’s file system.
 

After implementing the storage logic, you register it in SysFileContentStorage lookup, which tells the system to use your custom storage for file operations.


How to check:


 

You’ll also need a custom file locator (implementing IFileLocator) to specify where files are stored in the file system, and optionally a custom metadata storage (implementing IFileMetadataStorage) if you need to tweak how metadata is handled. 


Our documentation explains more about it: 

https://academy.creatio.com/docs/8.x/dev/development-on-creatio-platform/8.1/back-end-development/api-for-file-management/overview
https://academy.creatio.com/docs/8.x/dev/development-on-creatio-platform/back-end-development/api-for-file-management/references/ifilecontentstorage
EntityFileLocator class | Creatio Academy

Regards,
Orkhan
 

Show all comments
Email_attachements
preview
Studio_Creatio
8.0

Dear,

On Classic UI, we had a preview of files in emails attachments. 
Is it possible to have the same preview on Freedom ?

 

Classic: 

Freedom : is there a way to see a preview of image files ?

Thank you !
Nicolas

Like 0

Like

4 comments
Best reply

Hello Nicolas,

FYI I do have a marketplace add-on started that does previews for images in Freedom UI file list galleries, inline without needing to click it to open (only image type files show the preview, any other file type will show only the icon as it does normally):

 

It still does have a little work needed, but should be in the marketplace soon. Video preview here: https://share.customerfx.com/04uDmnv7

Ryan

Hello!

Unfortunately, currently this is not possible with the out-of-the-box solution. 
If you want to display a certain image for the record, for example company logo for the account record, you can use an Image component.


You can also consider using the following marketplace solution: https://marketplace.creatio.com/app/banza-files-extended-creatio?check_logged_in=1

Regards, 
Anton

Hello Nicolas,

FYI I do have a marketplace add-on started that does previews for images in Freedom UI file list galleries, inline without needing to click it to open (only image type files show the preview, any other file type will show only the icon as it does normally):

 

It still does have a little work needed, but should be in the marketplace soon. Video preview here: https://share.customerfx.com/04uDmnv7

Ryan

Hello Ryan,
So we will wait for your solution !
It is for the images that we would like to have a preview
Thank you 
 

FYI, I've submitted the add-on to the marketplace. Should be available soon.

Ryan

Show all comments
FreedomUI
Detail reload
reload
Business Process
script task
Studio_Creatio
8.0
list
s

After adding records ,How can I reload a detail list in a Freedom UI page from a task script within a business process, without using the live update feature in the object?
Thank you

Like 0

Like

3 comments

Note that i'add this code in the task script in the process 


var userConnection = Get<UserConnection>("UserConnection");
string messageText = "Successful";

Terrasoft.Configuration.MsgChannelUtilities.PostMessageToAll("ReloadDetail", messageText);
return true;    

i got this error message 
"The type or namespace name 'MsgChannelUtilities' does not exist in the namespace 'Terrasoft.Configuration' (are you missing an assembly reference?"

 

 

"The type or namespace name 'MsgChannelUtilities' does not exist in the namespace 'Terrasoft.Configuration' (are you missing an assembly reference?" - this error message will occur in case the business process is created in the assembly package. The only workaround is to uncheck the "Assembly package" property in the package settings or move the process to the regular package.

 

As for the possibilities and if LiveUpdate is not an option - yes, socket nessage to the client-side and triggering the LoadDataRequest with reload enabled is the only option.

I also encountered this same error, but in my case, it was due to a dependency issue. I resolved it by adding the 'crtBase' package as a dependency in the package containing the business process.

Show all comments
FreedomUI
crt.SaveRecordRequest
Studio_Creatio
8.0

Hi Community,

I want to run a function only if the SaveRecordRequest is true. I tried to run await next.handle(request), but it returns undefined even if the record is save is successfully. Here is my code and test result:

 

 

			{
				request: "crt.SaveRecordRequest",
				handler: async (request, next) => {
					const saveResult = await next.handle(request);
					if(saveResult) {
						const id = await request.$context.Id;
						const files = await request.$context.SPJFile;
						await carPooling.uploadSPJ(id, files);
						request.$context.SPJFile = null;
					}
 
					return saveResult;
				}
			},
Like 0

Like

1 comments
Creatio_Analyst_Certification
Studio_Creatio
8.0

Hello everyone,

 

Could anyone share the link to the self-assessment cases that can help me prepare for the Creatio Analyst Certification Test?

 

I would really appreciate your help!

 

Thank you!

 

Juan Carlos

Like 0

Like

3 comments

The link to the self-assessment alternative answer questions is here, Certification & Tests | Creatio Academy.

 

There are no practical assignments that you can practice in advance.

Thank you, @Gareth Osler! 

Should I select Sales, Marketing, or Service? 

I just completed the CREATIO ADMINISTRATION AND CONFIGURATION guided training.

Should I select Sales, Marketing, or Service? 

That depends on which Creatio product you wish to develop "technical skills and expertise" in.

 

Show all comments
Notes
Notes&Attachmenet
Studio_Creatio
8.0

Can anybody help me configure Notes and Attachments element in Form Page designer?

Like 0

Like

2 comments
Studio_Creatio
8.0

Hello community,

 

I'm trying to use terrasoft.axd to download an image that is loaded as a system setting.
I am using the following query string /terrasoft.axd?s=nui-binary-syssetting&r=Glbxxx
where Glbxxx is the system setting code.
I don't understand why some calls return the correct image and others return a http error 401 (access denied).

Like 0

Like

2 comments

Hello. 

The 401 Unauthorized error you are encountering is not related to access rights (Access Denied) but rather to session authentication. This happens because your session expired or was not active at the moment you made the request. As a result, the system does not recognize your authentication and returns a 401 Unauthorized response. 

This is not an issue with the terrasoft.axd endpoint itself, but rather an authentication problem. We recommend checking whether your session is still active when making the request and re-authenticating if needed.

 For more details, you can refer to the official HTTP 401 documentation: MDN - 401 Unauthorized

Best regards,
Antonii.

Hello Antonii,

In the Creatio login page the logo in the top is downloaded using the following link 
https://xxx.creatio.com/terrasoft.axd?s=nui-binary-syssetting&r=LogoImage"
when I navigate to the login page the user doesn't have an active session, so could you explain how it works?

 

Show all comments

Hello Everyone,

 

I want to implement a functionality on a web page where a Phone Number field is used to retrieve customer data. When a phone number is entered and submitted:

 

  1. If a matching customer record exists in Creatio, the page should automatically populate with the customer’s details.
  2. If no record is found, a new customer record should be created in Creatio.
  3.  

Is this functionality achievable? Any guidance would be appreciated!

Thanks in advance.

Like 0

Like

4 comments

You’d have to create the webpage using Creatio’s OData or DataService API to read/retrieve the data to accomplish this. 
 

Any idea if this can be implemented in NoCode with the new landing page builder of Creatio 8.2.2 ? 😊

Otherwise @Creatio --> a guidance on this matter would be great  (Based on phone number or email ;) ) ! 

Damien Collot,

It is not. The new landing page designer is basically just a visual designer to generate the html. There is an optional feature you can enable to publish the html, which basically uploads the html to a free landing page host (can’t remember which one at the moment)

:(

Show all comments