Question

I am experiencing the following issues with Freedom UI Dynamic Case Management:

  1. Tasks for the initial default stage (set using the configuration page) do not show when a new record is created, only showing when the record is saved.
  2. The task window is too small to show the whole task and has to be scrolled to get to the complete button.
  3. The progress bar does not automatically update to the next stage when tasks are complete in the previous stage (although the stage does actually progress, the tasks showing for the next stage, and the progress is correct when re-entering the record).

I'm not sure the Freedom UI is usable if DCM is required unless there is some way of fixing at least 1. and 3.

Like 1

Like

0 comments
Show all comments
Question

hello , is there a tool in creatio like adobe reader? that reads the pdf file then store it to database?

Like 0

Like

2 comments

Hello,

Could you please elaborate on your business task?

I don't know it yet, I've been asked by a client about this , like when you you extarct the pdf file and turn it into text by a library in .net or any other backend language, is there a tool in creatio that does the same thing? 

Show all comments
Question

Hey all , 

is it possible to add an attachment column in this expanded list , to add for each invoice an individual attachment.

 

Like 0

Like

0 comments
Show all comments

Hello,

i made a module, in freedom-ui mode, to display custom content in Accounts_FormPage. The module init is triggered with crt.HandleViewModelInitRequest handler.

here is the useful module code :

/* AMD module declaration. */
// jshint esversion: 11
define("UsrAccountHistoriqueProduit", ["@creatio-devkit/common"], function(sdk) {
    //
    return {
        //**--------------------------------- Init module -------------------------------**/
        onInitialized: async function($context) {
            const idAccount = await $context.Id;
            const my = this;
            
            /* Declare the class. */
            class UsrAccountHistoriqueProduit extends HTMLElement  {
                constructor(args) {
                    super();
                    this.displaycontent();
                }
                async displaycontent() {
                    var shadowDom = this.attachShadow({mode: 'open'});
                    shadowDom.innerHTML = "";
                    
                    const html = await my.statsOrderProduct(idAccount);
                    shadowDom.innerHTML = html;        
                }
            }

            /* Register the component. */
            customElements.define('usr-historiqueproduit-view-element', UsrAccountHistoriqueProduit);

            /* Register the web component as a view element. */
            sdk.registerViewElement({
                type: 'usr.CustomViewElement',
                selector: 'usr-historiqueproduit-view-element'
            });

        },
...

It works fine at load of the page, then when viewing a second account, i have this error message : 

ERROR DOMException: Failed to execute 'define' on 'CustomElementRegistry':
the name "usr-historiqueproduit-view-element" has already been used with this registry

i think i can clean up the registered viewElement with the crt.HandleViewModelDestroyRequest handler, but i did not found cleaning method in the sdk objet.
 

How should it be done please ?

 

best regards,

Patrice

Like 0

Like

2 comments
Best reply

Hi Patrice,

 

This error message occurs since the element with "usr-historiqueproduit-view-element" selector was already registered upon first init:

sdk.registerViewElement({
                type: 'usr.CustomViewElement',
                selector: 'usr-historiqueproduit-view-element'
            });

In your onEnityInitialized you need to add additional check if the element was registered in DOM or not (for example as proposed here) and as a result of this check perform registration or not.

Hi Patrice,

 

This error message occurs since the element with "usr-historiqueproduit-view-element" selector was already registered upon first init:

sdk.registerViewElement({
                type: 'usr.CustomViewElement',
                selector: 'usr-historiqueproduit-view-element'
            });

In your onEnityInitialized you need to add additional check if the element was registered in DOM or not (for example as proposed here) and as a result of this check perform registration or not.

Thanks Oleg,
i was not aware of the CustomElementRegistry api, i thaught it was a Creatio thing.

Now i know where the documentation is ! (mozilla.org)

 

Best regards,

Patrice

Show all comments

How to update the SupportEmailBodyTemplate of ContextHelpSchema ?

The Code is a Localizable Strings, I want to update the Value (body) by a custom template. How can I achieve this ?

Like 0

Like

2 comments

Hello Naresh,

You can achieve your goal in a simpler way:

Go to System designer -> find "Translation" -> find key Configuration:ContextHelpSchema:LocalizableStrings.SupportEmailBodyTemplate.Value -> for required localization change data -> click the "Apply translations" button

Anhelina,

Hello Anhelina,

Thanks for the response, but I am trying to update the value of the Localizable Strings of "SupportEmailBodyTemplate" with some custom template. But the value itself has some URL encode embedded to the text, I want to update the text using JavaScript, or is there any other way I can do this ?

Let me know.

Thanks!!

Show all comments

Hello,

i want to make a custom module to display data in a freedom UI page,

but i can not figure out how to send the Id of the main entity to the module, in a freedom UI page.

 

The page context is sent to the module with the crt.HandleViewModelInitRequest handler, but i don't know how to retrieve id from that context object..

 

is there some documentation i can read about this please ?

 

Regards,

Patrice

Like 0

Like

2 comments
Best reply

Try this: 

const recordId = await request.$context.Id;

Ryan

Try this: 

const recordId = await request.$context.Id;

Ryan

Thanks Ryan, i did not figure $context hold a collection of promises !

Show all comments

Dear mates,

We are adding to Creatio, our contacts from marketplaces with oData.

We are facing the following issue :

data are well integrated into Creatio, but if we look at the contact sheet, in the area on the top left, the telephone professional is not indicated even though it is present in the contact's communications fields. So in the contact details of the account, we do not directly see the contact's telephone number.

 

How can we add the phone to the contacts left panel in order to see the contact's telephone number directly on the accounts page ?

Thank you !

Nicolas

Like 1

Like

1 comments

Hello,

It`s seems to be an issue that our support should take a look. Please send us an email at support@creatio.com

Best regards,
Serhii
 

Show all comments

Dear mates,

i have installed the application "Conducting surveys for Creatio".

when i go to the Interviews edit page of the section wizard, i get the following error :

Page contains items with the same name in the schema source code in different containers. Changes of these items may be applied incorrectly. It can be fixed in the source code.
 
 
The name "undefined" is used by:
- The item with path CardContentWrapper.CardContentContainer.HeaderContainer.Header.GlbQuestionnaireType.undefined
- The item with path CardContentWrapper.CardContentContainer.HeaderContainer.Header.GlbQuestionnaireType.undefined.undefined
- The item with path CardContentWrapper.CardContentContainer.HeaderContainer.Header.GlbQuestionnaire.undefined
- The item with path CardContentWrapper.CardContentContainer.HeaderContainer.Header.GlbQuestionnaire.undefined.undefined
The name "converter" is used by:
- The item with path CardContentWrapper.CardContentContainer.HeaderContainer.Header.GlbQuestionnaireType.undefined.undefined.converter
- The item with path CardContentWrapper.CardContentContainer.HeaderContainer.Header.GlbQuestionnaire.undefined.undefined.converter

how can i fix this issue ?

Thank you !

Nico

Like 0

Like

1 comments

i created two custom objects for GlbQuestionnaire and GlbQuestionnaireType but the error still appears

Show all comments

How to make a field in the expanded list read-only by default or by a condition

Like 0

Like

0 comments
Show all comments
Question

I'm creating a business process, and I want to compare two date fields, the result of this difference should provide me with the number of days that a particular item lasts in other integer field. Problem with formula or it should be faster with sql ?

 

RoundOff(([#data zakonczenia.First item of resulting collection.Data planowanego zamknięcie#]-[#data rozpoczecia.First item of resulting collection.Data rozpoczęcia#]).TotalDays)

error: 

Formula value error: Cannot convert type "Double" to "Boolean"

Like 1

Like

5 comments

Two thoughts, where do you get the RoundOff() function from, it doesn't look like a C# function (should it not be Math.Round()).

 

It may or may not be this, but if your code is OK (and the total days calculation looks fine), is the error in code elsewhere that is being published at the same time as your total days code?

it is just formula in business process. I have two dates field: begin date, end date. I must compare this and result should be in third field Integer only days but as an integer. This is what i must do. 

The error is likely because you're attempting to put the result of the formula in a boolean param or column and it's not a boolean, it's a double. If you're wanting to know if the number of days is greater than 5 days, for example, you could use the following, which would be a boolean:

RoundOff(([#data zakonczenia.First item of resulting collection.Data planowanego zamknięcie#]-[#data rozpoczecia.First item of resulting collection.Data rozpoczęcia#]).TotalDays) > 5

Ryan

I need to know the exact number of days because I will be using this information further, so the only way is to validate this?

 

Arkadiusz Polus,

if you need to know the number of days just make sure you putting the result of the formula in an integer param, not Boolean. 
Ryan

Show all comments