Hello creatio community,

 

I am trying to apply a filter into cases mini page which is developed using freedom ui screens. Code as below:

{
	request: "crt.LoadDataRequest",
	handler: async (request, next) => {
 
		if(request.dataSourceName == "CaseDS_OPCaseType_4943d10_List_DS") {
			const caseType = await request.$context.CaseDS_OPCaseType_4943d10;
 
			var moduleTypesIds = await OPPermissionFunctionsSsp.getModuleTypes();
 
			const filter = new sdk.FilterGroup();
			if(moduleTypesIds.length > 0){
				filter.logicalOperation = sdk.LogicalOperatorType.Or;		
				for (let i = 0; i < moduleTypesIds.length; i++) {
					await filter.addSchemaColumnFilterWithParameter(sdk.ComparisonType.Equal, "Id", moduleTypesIds[i].value);
				}
			}
			else{
				await filter.addSchemaColumnFilterWithParameter(sdk.ComparisonType.Equal, "OPCode", '');
			}
 
			const newFilter = Object.assign({}, filter);
			newFilter.items = filter.items;
 
			request.parameters.push({
				type: "filter",
				value: newFilter
			});
		}
		return await next?.handle(request);
	}
}

 

The filter newFilter shows the right filter condition. I also used sql profiler and it returned the correct values. The issue here is that the CaseDS_OPCaseType_4943d10_List_DS lookup its not showing any value and does not apply the developed filter.

 

This issue happens only in the mini page. I have used this approach in freedom ui form pages and it works fine. Is there something I'm missing?

 

Kind regards

Like 0

Like

2 comments

I assume this is a dropdown lookup and not a lookup that opens the Select dialog? 

I just double-checked and I do have similar code to filter a dropdown on a Freedom UI mini page/dialog and it is working. I don't see anything that looks incorrect in the code you posted - just wanted to confirm that it does work on mini pages (at least in my case it is)

Show all comments

Hello,
 

I'm facing an issue with the AddTaskMiniPage. When attempting to create a task, I receive the following error message:
 

Field: "Id".
Error: Enter a value after clicking Save.
 

This prevents me from successfully creating tasks. I'm able to create tasks fine in the full window page. Has anyone encountered this issue before or knows how to resolve this?
 

Thanks!

Like 0

Like

3 comments

Hello,

Most likely, the issue lies with a base business rule at the object level that sets this value. I recommend disabling this rule, and after doing so, the behavior should not be repeated.

Best regards,
Antonii.

 


Antonii Viazovskyi,

Hello,

Thanks for your reply.

I disabled all the business rules, but I’m still getting the same result (Field: "Id". Error: Enter a value).

Interestingly, I have no issues if I click the "Continue in other page" button, which takes me to the full-page window.

Any further advice would be appreciated.

Thanks,
Romeo

Romeo Suarez,

 

Hello!

This issue can happen when you have feature DisableModelBindAttributeSynchronization enabled on your site.

To access the feature list, open the following link:
your_site/0/Nui/ViewModule.aspx#Section/AppFeature_ListPage

I hope this helps.
Have a great day!

Show all comments

Hi community,

This is an out of the box problem, because i tried it in a fresh Environment as well.

Here is the issue.

We have the Leads section in the Classic UI, meanwhile the Account section is in the FreedomUI

1-We click to the Account link from the Lead Section:

2- We expect that the Form Page will open since we are not adding a new Account. Instead of the Form Page the MiniPage of the Account opens

3- Status of the Pages established for the account

How can we fix this issue?

Sasor

Like 0

Like

2 comments

Hi Community,

Any update regarding this?

Hello,

 

Please make sure that the "Default page" setting is set to the "Form page" in the Accounts object located in a package that is at the end of the packages hierarchy (it might be in the Custom package). 

This issue might appear if in one of such objects the "Default page" setting is set to "Mini page", which overrides the base settings.

Show all comments

Hi community,

 

I need to show only active users in the Owner field of the activity mini page.

 

How can I do that?

 

Thank you!

Like 1

Like

2 comments

I could not find the field on contact record for this so I created a lookup with record status (active/inactive or something similar) and then used the add filter business rule on the mini page to only display specific owners.

Hi, Clara Fioranzato! 

 

This field is implemented by development methods, so unfortunately you cannot change it with basic methods. 

 

But you can add this filtering condition by creating a replacement view model schema for the page. To do this, use the instructions below with an example of such a setting:  

 

https://academy.creatio.com/docs/8.x/dev/development-on-creatio-platform/platform-customization/classic-ui/record-page/field/examples/set-up-filtering-of-lookup-field-values 

 

We also recommend reading a similar post on our community where this topic has already been raised. 

https://community.creatio.com/questions/show-only-active-users-owner-activity-filed 

 

Best regards, 

Halyna!

Show all comments

Hi Academy,

 

We would like to make one of the sections in the 'Connections' on the activity mini page mandatory when the category is "task".

Do you have any suggestions on how we can accomplish this?

 

Thank you in advance.

Like 1

Like

2 comments

Hello,

 

It depends on which column should be required here. One particular example: this method can be added to ActivityMiniPage:

save: function(callback, scope) {
				var opportunity = this.get("Opportunity");
				if (opportunity) {
					this.callParent(arguments);
				} else {
					Terrasoft.showInformation("Opportunity is required");
				}
			}

In this case saving of the mini page is not possible in case an opportunity is not connected to an activity and the information message will be shown on the page.

Hi Oleg,

 

Thank you, it works!

Show all comments

Hello,

 

Is it possible to create mini page for 'view record' in Freedom UI?



We also have mix of Freedom-Classic now, but even if 'view record' mini-page is created for Classic page, it is not displayed in other places (probably because of Freedom page exists for that section already). Maybe it is possible to use Classic mini pages of Account/Contact even if Freedom page is created?

 

Kind regards,

Vladimir

Like 4

Like

1 comments

Hello,

 

At the moment, there is no possibiliy to set up a mini-page just for viewing records in the system. Currently you can create a mini-page for creating a new record and set up a mini-page for editing an exisiting record with the help of a business process.

 

We also do not plan to support mini pages for 7x (Classic UI) with the Shell enabled, as this functionality is already implemented and is available in Freedom UI (starting from version 8.0.8).

We recommend you to configure the needed section in Freedom UI and to set up the required mini page for creating a record there.

You can learn more about it in this Academy article.

Show all comments

Hi Community,

The normal behaviour of a MiniPage in Freedom UI, is that after filling the data and saving, the Section List Page is opened.

We want that after the Clicking Save on the Mini Page, the created record (Form Page) opens.

How can this be acheived ?

Sasori

Like 0

Like

3 comments

To accomplish this you’ll need to add a handler for the save event, see https://customerfx.com/article/adding-code-to-the-save-event-of-a-creat…

Then in that handler you can open the edit page. See https://customerfx.com/article/adding-code-to-the-save-event-of-a-creat…

Ryan

Thank you very much for the very useful information Ryan.

You have provided the same link both times.

Did you intend to insert a separate link for the handler that opens the Edit Page ?

Sasori

Sasori Oshigaki,

 

It will either be this link if you want to open the standard edit page form for the entity, taking into account any rules you have in place for which form gets opened: https://customerfx.com/article/opening-an-edit-page-to-add-or-edit-a-record-via-code-in-a-creatio-freedom-ui-page/

 

Or this link if you want to be able to specify a particular edit page for the entity (i.e. if there are multiple edit pages and you want to open a specific one different from what would be opened based on the rules you set up for some reason): https://customerfx.com/article/opening-an-edit-page-to-add-or-edit-a-record-via-code-in-a-creatio-freedom-ui-page/

 

Show all comments

Hi, we´re using a mini page to create requests but we are looking for a way to move from the mini page to the form page of the request. ive tried using two buttoms, one with the save data action and other with the "continue in next page" action but im having ussues with the page filtes on the form page. this could work if we save the record and the minipage stays open but it close after saving the record. 

Like 0

Like

1 comments

Dear Sean,

 

The following button was added in 8.0.10. This button will help to you to move from mini page form to form page quickly.

 

Regarding the mini pages closing after the data was added. This is the basic logic of mini pages, they were created to collect quick information, add it to the record and close.

If you want the page to stay open, please consider other options, like adding data directly on the record. 

 

Best regards,

Creatio Support Team

Show all comments

Hi,



On our contact page we have business rules regulating the business & mobile phone.



If mobile phone not filled in, business phone is mandatory and vice versa.



On classic UI page, the mandatory " * " signal dynamically disappears when filling in the form.



This does not happen on the new Freedom UI minipage, in the picture here below, the * should have disappeared in front of mobile phone, as the business phone is filled in.



(It will properly save though, in terms of data, the business rules work).



Like 0

Like

1 comments

Hello,

 

Thank you for sharing this information with us. We have created a task to have the responsible R&D team address this behavior in future releases.

Show all comments

Hi,

 

I created a Mini Page in the Freedom UI, and I would like to open it with the 'Open edit page' element in a business process, but the mini page is not to be found in the dropdown for 'Which page to open?'. Is it not possible to open a mini page from a process?

 

Thank you in advance!

Like 0

Like

1 comments

Good day,

 

Thank you for your question.

Unfortunately, there is no such functionality for your task currently present in the OOTB application of Creatio.

 

Currently, you can achieve such a thing only by means of development.

 

Thank you.

 

Show all comments