Hello everyone!

When a user first opens record's form page (the form page consists of a number of tabs), the user is not able to see any tab open, whenever he selects any tab and leaves the page, and then reopens the form page then the previously selected tab is opened. How can we spesify a default tab that user should see when he opens a form page?

Like 1

Like

6 comments

Hello,

You can disable the feature: DisableSaveToProfileSelectedTabIndex, which is responsible for opening the last tab when entering the page, but if you disable it, the first tab should be opened when entering the page, not the last one that was opened.

Best regards,
Malika

Hello, Malika
Thank you for your response. Could you please tell me more about how I can do the solution you have suggested? I tried to change the code of cliend module, but didn't work as expected. 

Malika,

I am using freedom ui pages

Zulaykho,

You don't need to change anything in the code, you can disable the feature through the system UI. To do this, use the link: https://mycreatio.com/0/Flags, but instead of "mycreatio", it should be the name of your site. 

More detailed instructions: https://academy.creatio.com/docs/8.x/dev/development-on-creatio-platform/platform-customization/interface-control-tools/existing-feature/overview
 

When you go to the features section, you will need to search for DisableSaveToProfileSelectedTabIndex, open the record, and uncheck "enable" checkbox.

Malika,

Thank you a lot Malika, for your response.
But it is already unchecked, what can i do ?

Malika,

I've done several tests enabling and disabling that feature, clearing the cache, logging-off and on.. but the last selected tab in freedom ui is shown when opening the page of any record of the section (in freedom ui).

What can I do?

Thanks

Show all comments

I have a list page, and its data source is a spesefic object we have created.  above the list table there is a search element. What i want is when there is no filter applied the list table should be empty and, when any filter is applied then it should show only the matching resluts. How can i achieve this? What now happening is it is showing all of the existing records, but when i wanted to set up a business rule I could not find any option to access search element.

Like 0

Like

3 comments

And also, when the filter is cleaerd the list should again be empty as there is no filter applied

Zulaykho,

Clear the list isn't an easy task and needs a development team to be involved. Instead, you can prevent the list load by showing the Error message to the customer:

{
	request: "crt.SearchFilterColumnsGroupsRequest",
	handler: async (request, next) => {
		const searchValueLenIsZero = request?.value?.length == 0;
		const isEmptySearchValue = request?.value?.trim().length == 0;
		if (searchValueLenIsZero || isEmptySearchValue) {
			Terrasoft.showErrorMessage("There is no filter");
               } else {
                 await next?.handle(request);
               }
	}
}

Best regards,

Anhelina!

Anhelina,

Thank you a lot for your response! 

Show all comments