Hi all ,

I have a custom business rule in mobile app were i need to set the value of a lookup filed of the records. but i just can't find the way how to do it.

for example:



Terrasoft.sdk.Model.addBusinessRule("InvoiceProduct", {

    // The name of the business rule.

    name: "MyRULE",

    // Business rule type: custom.

    ruleType: Terrasoft.RuleTypes.Custom,

    triggeredByColumns: ["Product"],

      events: [Terrasoft.BusinessRuleEvents.Load],

    // Handler function.

    executeFn: function(record, rule, column, customData, callbackConfig) {

        record.set("Product",{value:  , displayValue: });

        // Asynchronous return of values.

        Ext.callback(callbackConfig.success, callbackConfig.scope, [isValid]);

    }

});

 

But this does not work.. i get :

record.set("Product",{value:  , displayValue: });

base-model.js:453 Uncaught TypeError: value.toLowerCase is not a function

 

Can you help ?

 

Thanks.

Eran.

 

Like 0

Like

2 comments

Hi Eran,

Here is how you should write a set function:

set(columnName, value, fireEventConfig)

Here is an example of how to set lookup fields:

record.set("ActivityCategory", ActivityCategory.Store.getById("8b16d130-313e-4b12-a12e-73a2dd8d33cf"), true);

Please note, the value parameter should always contain a record, if this lookup is not loaded in your mobile app then you should do a request to a database in order to get it instead of Store.getById.

Thanks Dmytro,

You are right, I needed to request the database to fetch the lookup record, and only then I could use the  " set(columnName, <lookup record>, fireEventConfig)  "

Show all comments

Dear mates,

PDF attachments are not visible on iPhone using Mail app.

Has anyone had this problem ?

How can I correct this problem ?

Email are generate by process: an email activity open on the sender Creatio screen with the file insert as attachment.

We follow this documentation from Ryan Farley:

https://customerfx.com/article/running-a-word-printable-in-a-process-sc…

The attached files appear well on other email clients...

Thank you !

Nicolas

Like 0

Like

4 comments

Hello Nicolas,

 

Since other email clients work as expected - it seems that the issue is limited to iOS and not connected to Creatio specifically.

 

I tried looking for similar problems on the web. Here is an example, perhaps you have a similar issue:

https://discussions.apple.com/thread/7491137

 

Best Regards,

Dan

Hello,

Patrice from the Nicolas team here.

This issue is not resolved from our side, so i tried to investigate a bit more about it :



I tried sending an email with attachment from Creatio, then read it from an iPhone.

Then sent  an email with same attachment from thunderbird.

 

The email sent from Creatio do no show the attachment, while the one sent from thunderbird works fine.



Having a look at the email source show some differences around the MIME structure :

 

the email sent from thunderbird has that structure :

Content-Type: multipart/mixed;

Content-Type: text/plain;

Content-Type: application/pdf;

 

The email sent from Creatio has that structure : 

Content-Type: multipart/related;

Content-Type: multipart/alternative;

Content-Type: text/plain;

Content-Type: application/pdf;

 

according to that documentation https://learn.microsoft.com/en-us/previous-versions/office/developer/ex…

it seems that Creatio should use multipart/mixed as root..

 

So depending of the email client, the attachment may show or not. 

 

 

I'm not 100% sure of this as i'm not used to that topic, but maybe it's worth checking ?

 

Best regards

Patrice

Patrice-ABPost,

 

Is the issue reproducing only on IOS?

Hello Bogdan,

 

yes, so far, there is no complains with other  platform..

Show all comments

Hi Community,

 

I just noticed on our approval functionality, it is getting "canceled" automatically. Is there any OOB set up for it. How it is getting cancelled? in the ui the options are only to approve or reject.

 

Like 0

Like

4 comments

Hello, Fulgen!



We need more details to solve your problem. 

Please specify the following:

You say: "our approval functionality" is this your internal development?

By what principle do you know that approvals go to the canceled status Please provide screenshots.

Pavlo Sokil,

 



Hi, we've implemented oob approval on our custom section. I wanted to know how it is getting canceled, is there any OOB functionality which is running from the bacground? since on the ui user has only  approve/reject options?

Hello,

 

It looks like your Approvals were canceled as process tasks.

 

If Approval is created by a process or DCM, then when the process is canceled, all of its tasks are also canceled.

Hi Cherednichenko Nikita,

 

Thanks for the info, is there any way to avoid this? because we are triggerring the approval via business process only.

 

 

Show all comments

Hi community,

 

How can I automatically change the status of a case after a customer response? 

Out of the box, when a customer responds to a case, the status is changed to Reopened. I want to move the case to my custom status. How can I achieve this?

 

BR Paulina

Like 0

Like

1 comments
Best reply

Good day,

 

Currently, there is some hardcoded logic in the processes that make the case reopen itself. If you are absolutely sure that you are comfortable with a little bit of code rewriting you can absolutely change reopen stage to a custom one.

 

I will leave a link to an article that mentions the processes that you will have to alter here.

Alternatively, you could just rename the stage and build upon it.

 

Thank you,

Good day,

 

Currently, there is some hardcoded logic in the processes that make the case reopen itself. If you are absolutely sure that you are comfortable with a little bit of code rewriting you can absolutely change reopen stage to a custom one.

 

I will leave a link to an article that mentions the processes that you will have to alter here.

Alternatively, you could just rename the stage and build upon it.

 

Thank you,

Show all comments

Is it possible to use a Microsoft Office word macro in the template of a MS-word printable?

The matter is: A word template is to be filled with data from Creatio. In the exported document, additionally, at another position in the document, a function is to be provided via a word macro.

The word macro can be added to the template. But when the report is exported, the Word macro is missing.

Like 0

Like

1 comments

Hello!

 

We have discussed your case with the responsible R&D team. Unfortunately, as for now, there is no possibility to implement your business task in our application.

We want to assure you that we have created a request for our development team to implement this functionality in future versions of our application. We understand the importance of providing our clients with the best possible experience and will work hard to implement the changes you have suggested.

Thank you for this suggestion, this helps to make our product better!

 

Best regards,

Kate

Show all comments

Hello Community, 

 

I wanted to refresh the detail in a form page after adding/updating a detail.

Here all the fields in the detail is added/updated in a separate page. On click of save button, the record gets added/updated. But I wanted to refresh entire detail.

 

Thanks

Like 0

Like

3 comments

Hello, 



Please check the discussion regarding your question here.

Bogdan,

Hello Bogdan, 

 

Thank you for your response.

But I wanted to reload the detail in Freedom UI, the detail is in the form page and on click of '+' we add the new details which is in other form

 

Once I save the details the page automatically moves the parent form page. But the detail is not refreshed, Only the record gets added to the detail.

 

I wanted to refresh entire detail after click of Save while saving a new record in child form.

 

const handlerChain = sdk.HandlerChainService.instance;

                             await handlerChain.process({

                            type: "crt.LoadDataRequest",

                            $context: request.$context,

                            config: {

                                loadType: "reload"

                            },

                            dataSourceName: "datasourcename"

                        });

 

This works in the current form page. But i wanted to refresh the detail in parent form page once I click on save button in child form page.

 

GargeyiGnanasekhar,

 

Unfortunately, we don't have ready examples of the implementation of your business task.

 

We've registered it in our R&D team backlog for consideration and implementation in future application releases.

 

Thank you for helping us to improve our product. 

Show all comments

The  multiselect text add on by Ryan Farley is such an elegant solution! It works well in all cases, but I have a case where I need to add this functionality to an editable list. 

 

Is this possible?

Like 0

Like

2 comments

Not sure if it's possible, but I've never tried it. I would start with looking in ConfigurationGrid to see if there is a method there to override? 

Ryan

Ryan Farley,

 

I have tried something with ConfigurationGrid. But I am not able to make it work. Do you know any way to make it possible.

Show all comments

Hi, 

 

I have a business case to update a field in a detail in other records and then delete the selected record from a detail after clicking "Yes" from the confirmation box.

As of now field is updated to all records on click of delete button in a detail. 

{  

            request: "crt.DeleteRecordRequest",

            handler: async (request, next) => {

             await next?.handle(request); 

           console.log("Deleting a record in detail"); 

//to validate if I clicked Yes or No from the confirmation box 

}

 

Any suggestions is really helpful.

 

File attachments
Like 0

Like

4 comments

Hi,

 

Please use a business process in this case to read all remaining records from the detail and update their values that will be triggered upon record deletion from the object of this detail. It's much easier than trying to create a UI logic using DeleteRecordReqeust.

Oleg Drobina,

Hello Oleg, 

 

I have almost implemented functionality in the client schema under deleteRecordRequest handler. Right now the functionality is working irrespective of the confirmation option choosen, It works even when we click No from the confirmation box. 

 

I wanted to make the functionality to work only if I click "Yes" from the confirmation box. 

 

Is it possible to read the option chosen by user while deleting a record(either Yes or No) in the handler?

 

Thanks

 

 

GargeyiGnanasekhar,

 

What I've observed from the behavior is that the DeleteRecordRequest is called twice: once you click delete button and once you select one of the yes\no options. Then I was trying to find a difference in either requests contexts or in the requests, but there is none or it's not obvious. And finally if we take a look at the initiator of the GetCanDelete method (that is called once you hit the "Yes" option) it's also not obvious who calls it:

I really tried to find a place in the code that could be overriden, but it seems that it's impossible to do in the current version (tested in 8.0.6). That's why I've asked to use a business process instead.

If you want to initiate the delete from your own code, you can use the Model class for that. See https://customerfx.com/article/deleting-a-record-from-client-side-code-…

If you're handling the crt.DeleteRecordsRequest you could simply not call the "next" handler in the chain. Basically, only call this if the answer is yes: await next?.handle(request); 

Ryan

Show all comments

When I try to uninstall a package I receive a vague "Uninstall application error" message.



Some of the packages I'm trying to delete are empty with no dependencies as well, and this still occurs.



Is there any way to find out what this error is actually about?

Like 0

Like

1 comments

Hello,

 

Please report this issue directly for our support team at support@creatio.com so we could work on the problem directly, since it cannot be resolved over Community.

Show all comments

i can't add new text field to contact (customer360app) module



Collection "EntitySchemaColumnCollection" item "EntitySchemaColumn" with unique identifier "{65DB5BF4-C253-4BD3-8988-CA1C6397A7EE}" not found.

Like 0

Like

3 comments

Hello Arkadiusz Polus,

 

This is not a typical error and it does not recreate OOTB.

 

Please contact Creatio support directly at support@creatio.com. It would be required to inspect this particular issue individually.

 

Best Regards,

Dan

Hello Arkadiusz Polus,

Did you get the answer for this issue? Because I have the same issue.

Thanks, 

Timea

Timea Losonc,

Hello Timea,

 

Please contact Creatio support directly at support@creatio.com providing the details of your issue. This is not a typical error and, thus, each case should be inspected individually.

 

Best regards,

Yuliya

Show all comments