I want to explore more on view model properties but could not found  good article which describes the get and set properties of view model properties

Like 0

Like

1 comments
Best reply

Hello,

 

For detailed documentation on view model properties, please refer to the following link:

Data handling basics

Hello,

 

For detailed documentation on view model properties, please refer to the following link:

Data handling basics

Show all comments

Hi all,
Does anybody know how to store data in a rich text field without the HTML tag? There's an example in the knowledge base section; it has 2 columns ("Notes" with the "Rich text" data type to display and save article data with the html tag and "NotHtmlNote" with the "unlimited length data" data type that stores the article value without the html tag), but I don't know how it works.
 

Thank you.

Like 0

Like

2 comments
Best reply

The way that the OOTB KB area does it is it binds an attribute to the crt.RichTextEditor control's "plainText" property. This returns the text version of the contents. If you view KnowledgeBase_EditPage you'll see the plainText property there

The attribute there is added to the model in the viewModelConfigDiff, which is how it's bound to automatically save to that path.

Also, a side note, there's a process added from the CoPilot stuff which exists in recent versions that can be used as a subprocess for stripping out HTML tags from text, called "Trim html in text". You can use a process and pass in the InputText parameter and you'll get back the text without the HTML tags in the OutputText param. This would be easy to use as a process to save the unformatted text as well.

Ryan

The way that the OOTB KB area does it is it binds an attribute to the crt.RichTextEditor control's "plainText" property. This returns the text version of the contents. If you view KnowledgeBase_EditPage you'll see the plainText property there

The attribute there is added to the model in the viewModelConfigDiff, which is how it's bound to automatically save to that path.

Also, a side note, there's a process added from the CoPilot stuff which exists in recent versions that can be used as a subprocess for stripping out HTML tags from text, called "Trim html in text". You can use a process and pass in the InputText parameter and you'll get back the text without the HTML tags in the OutputText param. This would be easy to use as a process to save the unformatted text as well.

Ryan

Ryan Farley,

Thank you. It's very clear and helpful.

Show all comments

I am working with Freedom UI in Creatio and I need to populate a virtual lookup with data. I have defined the ViewModel attributes and configured the view, but when I try to populate the lookup with data using a handler for crt.HandleViewModelInitRequest, the lookup does not display the data. I have used a custom array of data to populate the lookup, but it seems to be incorrect. Could you provide an example or guidance on how to correctly populate a virtual lookup with data in Creatio Freedom UI?


      {
               "operation": "insert",
               "name": "VirtualSchemaLookup",
               "values": {
                   "layoutConfig": {
                       "column": 1,
                       "row": 1,
                       "colSpan": 1,
                       "rowSpan": 1
                   },
                   "type": "crt.ComboBox",
                   "label": "Virtual Schema Lookup",
                   "labelPosition": "auto",
                   "control": "$VirtualSchemaLookup",
                   "listActions": [],
                   "showValueAsLink": true,
                   "controlActions": [],
                   "visible": true,
                   "readonly": false,
                   "placeholder": "",
                   "tooltip": "",
                   "valueDetails": null
               },
               "parentName": "GeneralInfoTabContainer",
               "propertyName": "items",
               "index": 0
           },

viewModelConfigDiff:

       "VirtualSchemaLookup": {
                       "dataValueType": Terrasoft.DataValueType.LOOKUP,
                       "isCollection": false,
                       "value": null
                   },
                   "VirtualSchemaLookupList": {
                       "dataValueType": Terrasoft.DataValueType.COLLECTION,
                       "isCollection": true,
                       "value": []  
                   }, 


 {
               request: "crt.HandleViewModelInitRequest",
               handler: async (context, next) => {
                   try {
 var resultConfig = {
                           "1": {
                               value: "1",
                               displayValue: "Test Schema 1",
                               name: "TestSchema1"
                           },
                           "2": {
                               value: "2",
                               displayValue: "Test Schema 2",
                               name: "TestSchema2"
                           },
                           "3": {
                               value: "3",
                               displayValue: "Test Schema 3",
                               name: "TestSchema3"
                           }
                       };

                       if (context.$context.attributes && context.$context.attributes.VirtualSchemaLookupList ) {
                           context.$context.attributes.VirtualSchemaLookupList = resultConfig;
                         console.log(context.$context);
                       } else {
                           console.error("error");
                       }
                       await next?.handle(context);
                   } catch (error) {
                       console.error("Ошибка при инициализации модели:", error);
                   }
               }
           }

Despite filling the VirtualSchemaLookupList attribute with data, the lookup does not display the data when the page is loaded

Could you provide an example or detailed guidance on how to correctly populate a virtual lookup with data in Creatio Freedom UI?
Thank you!

Like 0

Like

1 comments

Hello Dmitriy,

This article should help you to display the needed data:

https://community.creatio.com/articles/virtualcolumn-lookup-field

Also please check how to set up a detail with fields, especially paragraph 6 "Make the detail fields virtual":

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

Additionally, the article below has examples of filtering in the lookup field:

https://community.creatio.com/questions/how-add-filter-virtual-lookup
 

Show all comments

Hi

 

In Creatio 8.1.2 I think Creatio add a new user setting called: Number format.

 

All other user settings had a Default value to configure in System Settings, but I didn't found one to set a default value to this setting.

 

Is there one already or is it scheduled for a near future version?

 

 

Thanks in advance

 

best regards

Julio Falcón

Like 0

Like

3 comments

Hello,

It is now possible to change the number format for the user on the user profile page, since version 8.1.2. There are no settings to set default for all users format, as they can do it them self in their user profile settings.

Best regards,
Ivan

Ivan Savenko,

Please could you add this requirement to the to-do list?

 

All other user profile configurations have a system setting to define a default, why should this new one be different?

Hi any update on this feature , We really do not want to edit every account one by one to  get consistent number format

Show all comments

Hello,

 

I am trying running into a problem in my instance where I'm encountering a problem when I publish and compile where I receive a message saying that "One or more errors occurred. Sequence contains more than one matching element"

 

I am unclear as to what this message could be referring to. There error is unclear and I'm unsure as to how to proceed without more information. Has anybody encountered this problem before?

Like 0

Like

2 comments

If it's a compilation error, maybe there is more details in the Compilation errors? In the lookups section, add the "Compilation errors" object to view the contents.

Ryan

Hello Kevin

In my case, the problem was caused by a duplicate lookup object: deleting the duplicate solved the problem.

Show all comments

Hi,

 

Is it possible to add click event on Loadmorebutton "Show more" in Detail?

 

 

Thanks

Like 0

Like

3 comments
Best reply

Hello,

 

Please note that currently there is no possibility to set this up using the basic user tools, but we have registered this idea for our R&D team and they will review the possibility of implementation of such functionality in future releases.

Hello,

 

Please note that currently there is no possibility to set this up using the basic user tools, but we have registered this idea for our R&D team and they will review the possibility of implementation of such functionality in future releases.

Mira Dmitruk,

Thanks Mira

What exactly do you want to do when the button is clicked?

Show all comments

For Financial Services Creatio product lineup, thre is BaseFieldsDetail schema of the BaseFinance package to set up details with fields. This package is available only in Financial Services Creatio product lineup.

 

I need to enable the Product Parameters Terms using the Field Details in Freedom UI. What is the best way?

 

This is the view of the field detail in Classic I'm trying to replicate

 

image.png

Like 0

Like

5 comments

Hello,

 

Please resend the screenshot, as it is not available on our end.

Second attempt

Mira Dmitruk,

 

Screenshot shared again

Good day, 

We would like to clarify whether you would like to 
1. introduce the adaption of this detail in Freedom UI version of the same page
2. or whether you wish to develop this detail for another section?

The closest element to a detail from Classic UI in Freedom UI is an expanded list that would refer to the elements of the relevant object 

Show all comments

I'm using a Request for Approval element.

log in to the various users and want to approve and I don't see that the approval table counts the approvals on their screen. its always 0 before approval. this is normal ? 

the only one who sees the counter count perfect is the "admin" user. why ?

 

thanks! 

Like 0

Like

1 comments

Hello!

Make sure that there are no errors in the console or network during the panel opening.

The cause might be a modified configuration, and an entity could have been added to it.
 

Run the script:

select smv.* from SysSchema ss
right join 
SysModuleVisa smv on smv.VisaSchemaUId=ss.[UId]
where ss.id is null
 

If the script returns a record, you can delete it, as it does not exist in the configuration.

Please note that you should first run this on a copy and make a backup before executing it.

Show all comments

Hi team!

 

The progressbar is currently changing how many stages show, based on the screen size. 

 

If you check the images below, wider screens are showing all stages and at certain point is reducing to current and next stage. 

 

 

 

Is it possible to tweak at which width length is doing this change? or remove this behavior at all forcing the breadcrum to show all items?

 

Thanks!

Like 0

Like

1 comments

Hello,
 

Thank you for your question.


Currently, this behavior is not adjustable, but we will keep you informed of any updates on this feature. We've registered your request with our R&D team to explore the possibility of customizing the progress bar’s stage visibility based on screen width in future releases.


Best regards,
Ivan

Show all comments


Hello I was attempting to display other attributes of Product in Lead section (except of Duration) , like minimum amount, maximum amount and so on.
Could you please asssist me with this issue 

Like 1

Like

1 comments

Greetings,

 

To realize this business problem, you can check out our documentation on part creation.
 

You can find more details in this article:

https://academy.creatio.com/docs/8.x/no-code-customization/8.0/customization-tools/ui-and-business-logic-customization/page-layout/create-new-detail

Regards,

Orkhan

 

Show all comments