Hello everyone,

I'm using crt.OpenLookupPageRequest to open a lookup page in my Creatio application. However, the records in the list appear as hyperlinks, and I would like to display them as plain text instead.

Here is my current code:

request.$context.executeRequest({
	type: "crt.OpenLookupPageRequest",
	$context: request.$context,
	entitySchemaName: "BnzConversationScript",
	caption: rls.BnzSelectConversationScript,
	filtersConfig: {
		filterAttributes: [
			{
				name: 'ConversationScriptsFilter',
				loadOnChange: false
			}
		],
		attributesConfig: {
			ConversationScriptsFilter: { value: filterConfig }
		}
	},
	features: {
		select: {
			multiple: false,
			selectAll: false,
			resultType: 'lookupValues'
		},
		create: {
			enabled: false
		}
	},
	afterClosed: async function(selectedItem) {
		scope.getFinalDataForConversationScript(request, recordId, response.GetConversationScriptsListResult, selectedItem?.value);
	}
});

Does anyone know how to disable hyperlinks for the records in this lookup page? Any help or guidance would be greatly appreciated!

Thanks in advance!

Like 1

Like

2 comments

I solved the issue in a trivial way – record links are not created when using a database table view. So, I simply created a view based on the table and used it as the source.

Oleksandr Tyra,

It would be great to find out how to remove the links. I wish the lookup dialog didn't have links by default, it's far too confusing for users - they think they need to click the link to select the record, but that just navigates them away from the dialog and to the record. There's no reason why links should be in that dialog since it's purpose is to select a record.

Show all comments

In the classic version we can communicate between modules, for example from page to detail or vice versa using messages.

I have case in my form page there is a modal page, when the modal page is closed it will send data to the form page to do something.
How to implementation in freedom?

Thank you

Like 2

Like

1 comments

It would likely work to use requests with the correct scopes set for message exchange like how sandbox worked, but I've not really tried to implement that across different pages. It might also work to just use Javascript's built-in Broadcast Channel API for that as well. It exists for purposes like this, messaging between different contexts. See details here: https://developer.mozilla.org/en-US/docs/Web/API/Broadcast_Channel_API

Ryan

Show all comments

Dear Community, 

 

if I have two date filedes (start date, end date) , I have to  disable any previous date in the end date that its refer to start date , such as the start date is 15/2/2025 , I want to disable in the end date any date before 15/2/2025 ,

 

how can I implement this in the client module ? 

Like 0

Like

0 comments
Show all comments

Dear Creatio Community,

I am writing to request guidance regarding the utilization of the @creatio/mobile-common library for extending the Creatio mobile application within the Freedom UI framework. Specifically, I am working with Creatio version 8.2.7 (APK).

While the index.d.ts file for @creatio/mobile-common is available on the official npm repository, I am encountering significant challenges due to the absence of comprehensive documentation and practical, live examples demonstrating its use in the context of Creatio mobile app customization.

My objectives involve leveraging this library to achieve advanced customizations and integrations within the mobile platform.

I would greatly appreciate any assistance in the form of:

  • Comprehensive code examples demonstrating the use of @creatio/mobile-common in real-world scenarios.
  • Detailed explanations of the library's architecture and functionality.
  • Guidance on best practices for integrating custom components with the Creatio mobile platform.
  • Information on how to debug and test code that utilizes the @creatio/mobile-common library.

 

Like 0

Like

1 comments

Hello Pranshu,

Our Academy team is currently working on creating articles that present the full information regarding all the questions mentioned.

Please follow for updates on the Academy site to receive all the answers.

Show all comments

Dear Creatio Community,

I am writing to seek assistance with mobile app development within the Freedom UI environment. I am encountering significant challenges extending the mobile app's functionality, particularly due to the current lack of comprehensive documentation and practical examples.

Specifically, I am facing the following issues:

1. Auto-Numbering Issue on Record Page:

  • I have observed that the auto-numbering functionality within the Creatio mobile app behaves inconsistently.
  • When an auto-numbering field is displayed on a record page, the automatic number generation fails.
  • However, if the auto-numbering field is removed from the record page layout, it functions correctly within the list page.
  • I require guidance on how to resolve this conflict and ensure auto-numbering works consistently across both list and record pages within the Freedom UI mobile app. Ideally, a code example demonstrating the correct implementation would be invaluable.

2. Implementing a Resizable Image Component:

  • I need to add a custom image component to the mobile app that allows users to upload images from their native phone's API, similar to an attachment.
  • This component should be resizable to accommodate various image dimensions and screen sizes.
  • I am struggling to find any documentation or examples on how to implement such a component within the Freedom UI mobile framework.
  • I would be very grateful for a working example of how to implement a resizable image component, that interacts with the native phones OS to retrive images.

The current documentation lacks detailed explanations and practical examples for mobile app development in Freedom UI. This makes it challenging to extend the mobile app's functionality effectively.

Any assistance, code examples, or pointers to relevant resources would be greatly appreciated.

Like 0

Like

1 comments

Hello Pranshu,

1. Autonumbering is supported, and there were no registered issues with it before. Please create a case for Creatio Support to review the specific issue that you've faced.

2. Unfortunately, there is currently no mobile component that can display images in a given size, as on the web. At the moment, only attachments are suitable for downloading/uploading images. 
 

Show all comments

Hi Creatio Community,

 

I'm integrating an iFrame into a Creatio tab for our Custom App. The integration works, but the iFrame does not expand to full screen inside the tab.

My Current Setup

I’m inserting the usr.FrameComponent inside a TabContainer, but it doesn’t fill the entire available space.

viewConfigDiff: /**SCHEMA_VIEW_CONFIG_DIFF*/[
...,
           {
				"operation": "insert",
				"name": "GridContainer_Sales",
				"values": {
					"type": "crt.GridContainer",
					"items": [],
					"rows": "minmax(32px, max-content)",
					"columns": [
						"minmax(32px, 1fr)"
					],
					"gap": {
						"columnGap": "large",
						"rowGap": "none"
					},
					"visible": true,
					"color": "transparent",
					"borderRadius": "none",
					"padding": {
						"top": "none",
						"right": "none",
						"bottom": "none",
						"left": "none"
					},
					"alignItems": "stretch"
				},
				"parentName": "TabContainer_Sales",
				"propertyName": "items",
				"index": 0
			},
            {
				"operation": "insert",
				"name": "Label_mmxxxre",
				"values": {
					"layoutConfig": {
						"column": 1,
						"row": 1,
						"colSpan": 1,
						"rowSpan": 18
					},
					"type": "usr.FrameComponent",
		         "src": "https://www.smarten.com"
				},
				"parentName": "GridContainer_Sales",
				"propertyName": "items",
				"index": 0
			},
			...
]/**SCHEMA_VIEW_MODEL_CONFIG_DIFF*/,

Issue

Even when I try using fitContent: true or modifying layoutConfig, the iFrame remains small and doesn’t adjust to the full tab size.

What I Tried

  • Setting fitContent: true for the TabContainer and GridContainer.
  • Adjusting layoutConfig with rowSpan: 18.
  • Setting explicit height: 100% and width: 100%.

Has anyone encountered this issue? How can I make the iFrame take up the entire available space in the tab?

Thanks in advance for any help!

Like 0

Like

2 comments
Best reply

Hi Tushar,

If you are currently utilizing the Customer FX guide, you may be experiencing an iFrame display anomaly similar to one I recently encountered.

To address this issue and ensure the iFrame renders in full screen, I implemented an update to the iFrame module.

Specifically, the following code modification resolves the problem:

 

this._frameConfig.style = (this._frameConfig.style || "") + "height:" + this.frameConfig.height + ";width:" + this.frameConfig.width + ";";

 

This adjustment guarantees the style property is properly initialized before the height and width values are appended, thereby rectifying the display discrepancy.

Please let me know if you require further clarification or assistance.

Hi Tushar,

If you are currently utilizing the Customer FX guide, you may be experiencing an iFrame display anomaly similar to one I recently encountered.

To address this issue and ensure the iFrame renders in full screen, I implemented an update to the iFrame module.

Specifically, the following code modification resolves the problem:

 

this._frameConfig.style = (this._frameConfig.style || "") + "height:" + this.frameConfig.height + ";width:" + this.frameConfig.width + ";";

 

This adjustment guarantees the style property is properly initialized before the height and width values are appended, thereby rectifying the display discrepancy.

Please let me know if you require further clarification or assistance.

PS: 8.2.2 has new iFrame component : Iframe. You can now embed external content using the new crt.IFrame component.

Show all comments

Hi community,

In the classic UI we 'controlled' the Save event in business rules, with the field 'Created On' (is filled in). 

I dont see the same behaviour in FreedomUI. The 'Created On' field is filled in even though the record is not saved yet. 

Any workaround for this, especially with Business Rules?

Sasor

Like 0

Like

4 comments

Hi,

 

The field is filled in, but until you save the entry, the event will not be executed. Please clarify what business task is so necessary?

Hi, 

Scenario : Show a specific field only when the record is created.

Which Business Rule should we use?

Thanks

Sasor

Sasori Oshigaki,


Greetings!

 

Thank you for reaching out. I looked into possible solutions and came across the idea that you could rely on the Resolution time field or find similar fields that are not created until you press Save. Unfortunately, I don’t see any other viable options in your case.



 

As in my case:

 

Regards,
Orkhan

Orkhan,

we have also solved requests like this by using fields that will be filled after the record was saved.

However, it would be great if you could add something like a "mode" to the business rules conditions that would have values like "new" and "update".

 

BR

Show all comments

I have try to override the save functionality. But, it is not working. Even the 1st console is not working. I have added bindTo in click event in ViewConfigDiff. Pls help with that.

Like 0

Like

4 comments
Best reply

Hello, 

You seem to be mixing things between classic pages and Freedom UI pages. The page you're customizing appears to be a Freedom UI page, which does not support adding methods. The code you've added would work for classic pages, but not on Freedom UI pages. 

Instead, this is done via request handlers on Freedom UI pages. See this link for overriding the save request on a Freedom UI page: https://customerfx.com/article/adding-code-to-the-save-event-of-a-creatio-freedom-ui-page/

Ryan

Hello, 

You seem to be mixing things between classic pages and Freedom UI pages. The page you're customizing appears to be a Freedom UI page, which does not support adding methods. The code you've added would work for classic pages, but not on Freedom UI pages. 

Instead, this is done via request handlers on Freedom UI pages. See this link for overriding the save request on a Freedom UI page: https://customerfx.com/article/adding-code-to-the-save-event-of-a-creatio-freedom-ui-page/

Ryan

Also, as a side note, the code you have in the getActiveCount won't work since ESQ is asynchronous (so the return will happen before the query returns any results), additionally, the results of the query of an ESQ are passed in via a callback function passed as a parameter to getEntityCollection, not returned as a result of calling getEntityCollection.

For a Freedom UI page, I'd use a model load instead of the ESQ since you can await the result, rather than use a callback function. See https://customerfx.com/article/querying-data-using-filter-conditions-via-the-model-class-equivalent-to-enityschemaquery-in-a-creatio-freedom-ui-page/

Ryan

Hi Ryan,

I have added this code in handler, still it's not works for me. Please address, what i missed here.

Revathi,

Can you provide more details by what isn't working?

Show all comments

Hello Community,

The scenario is very simple. 

We are in the Account form page. The account form page has three lookup fields (Type, Category, Primary Contact) We want to filter the Primary Contact based on the (Type and Category). How can this be achieved in freedomUI. Any code example?

Greetings

Sasor

Like 0

Like

1 comments
Best reply

If the lookup is a dropdown lookup (not opening the selection window) this approach can be used to filter it via code: https://customerfx.com/article/dynamically-filtering-a-lookup-on-a-creatio-freedom-ui-page/

For filtering a lookup as a selection window, use the approach here (see response from Harvey): https://community.creatio.com/questions/crtloaddatarequest-does-not-seem-trigger

Note, since that post, the "crt.OpenLookupPageRequest" request has been replaced by the new request "crt.OpenSelectionWindowRequest", so use this new request name instead of what is listed in that post)

Ryan

If the lookup is a dropdown lookup (not opening the selection window) this approach can be used to filter it via code: https://customerfx.com/article/dynamically-filtering-a-lookup-on-a-creatio-freedom-ui-page/

For filtering a lookup as a selection window, use the approach here (see response from Harvey): https://community.creatio.com/questions/crtloaddatarequest-does-not-seem-trigger

Note, since that post, the "crt.OpenLookupPageRequest" request has been replaced by the new request "crt.OpenSelectionWindowRequest", so use this new request name instead of what is listed in that post)

Ryan

Show all comments

Hey Community,
I'm trying to save a business process and on saving i'm facing the below error.How do i resolve this?Attaching the picture below.

Like 0

Like

3 comments

I understand that it has to do something with language and dates,but i don't have anything else except a timer in the bp

Hello!

 

Unfortunately, this is a bug of Creatio platform.

This error is occuring when you try to read column "Caption" in the collection of records.
For now, please use this temporary solution.
Inside the "Read Data" element for the collections:
1) Select What record data should the process read? -> Read data from selected columns only
2) Click "Add Column"
3) Select all the needed columns except "Caption"

 

Have a nice day!

Arsenii Ostapyk,

Hey , thank you for the prompt reply ,yes i am using the collection of records in read element , but i don't have a Caption column .This is a base lookup Is there something else that i can do ?

Show all comments