ESQ
7.15_()
Studio_Creatio_()

Hi Community,

I need to have a validation on my edit page and this validation will involve complex sql query, now please help me how i can convert below sql query in esq client side.

The query below involves some joins and group by function

select a.Table2Id, b.Name, a.CreatedOn from Table1 a 

inner join Table2 b on a.Table2Id = b.Id 

join ( 

select b.Name as Name, Max(a.CreatedOn) as CreatedOn from Table1 a 

inner join Table2 b on a.Table2Id = b.Id  

group by b.Name ) 

c on c.Name = b.Name and c.CreatedOn = a.CreatedOn

 

Like 0

Like

5 comments

If you're not able to come up with an ESQ solution for this (I've never tried a groupby with ESQ, not sure if it can do those - nothing mentioned in the docs), often when I have a complex SQL statement, I instead put it in an configuration web service and do the query using the Select class or a direct SQL statement, then call/consume the service from the client side code.

If you go that route, here's some articles on those topics:

Select class: https://academy.creatio.com/documents/technic-sdk/7-15/retrieving-infor…

Direct SQL: https://customerfx.com/article/executing-direct-sql-statements-in-a-pro…

Creating and calling configuration services: https://customerfx.com/article/creating-a-web-service-and-consuming-it-…

Ryan

I'm not 100% on that, but I'm fairly sure that you can use an aggregration column for the nested SQL statement, which handles the group by for you. You could then run the first 2 lines as a separate ESQ inside the first ESQ callback, and then do the rest of the logic separately in JS.

Dear Fulgen, 

 

Unfortunately, there is no way to create a complex query with subqueries via client ESQ.

You can create a business process that will perform the request to the database, fetch all needed data, process it and display it on the page.

Hi Ryan Farley,



When using CustomQuery, what library should I declare? I am getting "The type or namespace name CustomQuery could not be fould".



Thank you

Fulgen Ninofranco,

CustomQuery is located in Terrasoft.Core.DB

Ryan

Show all comments
satisfaction_survey
7.15_()
Studio_Creatio_()

Hi Community,

How I can customize the OOB satisfaction survey page, Aside from Comments field, I need to add some more fields from Case object into it.

Like 0

Like

2 comments

Hi Community, Any Idea? Thanks

Dear Fulgen,

 

Please create a replacing client module for the “CaseRatingFeedbackPage” schema and modify the “diff” property. Please find more information about the “diff” property in the article by the link below:

 

https://academy.creatio.com/documents/technic-sdk/7-15/diff-array

 

Best regards,

Norton

Show all comments
maps
7.15_()
Studio_Creatio_()

Hi Community,

I have a scenario below, that we want to apply on the mobile app

1. On Case edit page there will be a link to open a map

2. On the map user can move a pin to indicate his current location.

3. Capture the location(long/lat) based on the location of the pin

Any idea how I can implement above scenarios?

 

 

Like 0

Like

3 comments

Dear Fulgen,

You can inspect the Account address detail as an example of integration with OpenStreetMaps in the system and Field Force application as an example of maps functionality on mobile apps. 

Best regards,

Angela

Angela Reyes,

Thanks Angela, I tried in Account address detail, by clicking it map is opening, what I need is that user should be able to pin location on the map, then will capture the coordinates(long/lat) and save it back in case edit page in mobile. Do you have any sample for this.

Fulgen Ninofranco,

Try checking Field Force application as well as it contains map for mobile application. Unfortunately we do not have any example of such customisation. 

Show all comments
compile
install package
7.15_()
Studio_Creatio_()

Hi Community,

Is it recommended to "Compile All" items in configuration after package installation? Or a compile modified items is already enough? Why I am asking is that "Compile All" items is taking too much time to finish. 

Like 0

Like

1 comments

Dear Fulgen, 

The compilation is not required after the package installation. However, if you install packages via configuration section, I would recommend to compile the system afterwards. 

Show all comments
7.14_()
Studio_Creatio_()

Hello Team

please Guide me 

how to do attachment* as mandatory field

kindly let me know the process .hoping for a positive reply

regards,

uttej.

 

Like 0

Like

9 comments

Hi,

as Attachments is not a field, but is a detail, you can do the following validation script (sample for Activities) in object process for Validating message

UserConnection userConnection = context.UserConnection;
 
   Select select = (Select)new Select(userConnection)
            .Column(Func.Count("Id"))
            .From("ActivityFile")
            .Where("ActivityId").IsEqual(Core.DB.Column.Parameter(Entity.Id));
       
if (select.ExecuteScalar<int>() == 0)
            throw new Exception("Attachment is required");
 
return true;

 

Vladimir Sokolov,

Hello Vladimir Sokolov,

Thank you for your reply uttej

could you please tell me clearly 

for which page this code belongs to and where it is write in  (diff or methods)  detail page or card schema page or section page or detailpagev2

please give me  detail explanation about code

hope you reply soon 

with positive response  

regards;

uttejyadala

Hi, this is not Page Code.



You should add process in your Object "UsrAligment"

Hello,

 

Unfortunately, there is no option to make the fields as required in the attachments detail without code. Technically it is possible to enable the Required attribute for the detail fields but you will not be able to attach the file itself. It will fail with errors.

 

Regards,

Dean

Hello Vladimir,



Could you please specify where exactly we need to write the validation script provided.



Do we need to create process with validation message as signal?

Hello,

You are right, you need to create a process with the validation message as a signal. You can do it by clicking the "Open Process" button in the object configuration. The start signal in this case would be "AccountValidating".

Dmytro Vovchenko,

 

I'm not able to drag any business process element in the object process

Amritha Mayan Gorky,

 

I suggest you contact our support team directly with this specific issue at support@creatio.com.

Hi,Vladimir Sokolov,

Isn't there another way to make the attachment file mandatory through validation of the form page and not by placing a condition on the table in the database that I want in the form page?

Show all comments
functional roles
7.15_()
Studio_Creatio_()

Hi Community,

How I can convert existing functional role as Portal Functional Role?

Like 0

Like

0 comments
Show all comments
7.15_()
Studio_Creatio_()

I get an error while creating a package with clio:

Unhandled Exception: System.MissingMethodException: Constructor on type 'Clio.Command.ReferenceCommand' not found. 

 

Like 0

Like

1 comments

I have the same exact issue -- can someone assist with this asap please?

 

Show all comments
Email_activity
TimeLine
7.15_()
Studio_Creatio_()

Hi Community,

In Case I have created a custom BP that sends email to some of the CRM users. Now since this is a custom Email, it is now showing in Timeline Tab, how can I configure my custom Email so that it will show in Timeline. 

 

Like 0

Like

3 comments

Dear Fulgen,

If email is sent automatically via business process it will not create activity. You can either send it manually or use script task to send email and create activity. 

Best regards,

Angela 

Angela Reyes,

 

Thanks Angela,

Then how I can show it on Case Timeline?

Fulgen Ninofranco,

It will appear in timeline when it is connected to the record. To connect email to record it must be created firs. You can use Send email to case assignee as an example to examine how activities are created and connected to records via script task. 

Show all comments
Field validation
Maxlength
7.14_()
Studio_Creatio_()

Hello



Creatio by default allows a user to choose between 50, 250 and 500 as max lengths of a Text column from the Object designer. We have a use case where we have to set a specific max length for a field Eg Text (80 charecters). Find below a few questions in this regard 

1. Is there a way to set this custom max length for that object from the Creatio GUI?

2. If #1 is not possible, Can this be set directly at the database/data model layer? If Yes, How? Also, will such a limit automatically bubble upward to the UI? ie If the field is set to 80 charectars and an input field is linked to it, Does a validation of max 80 charectars on the UI automatically apply?

3. The following link provides guidelines on how to custom implement an input validation on the UI. Will such a validation also work on Creatio Mobile?

Like 0

Like

4 comments

Hello. Would really appreciate some help on this question

M Shrikanth,

 

1. There is no way to set the custom max length for a field from the Creatio GUI.

 

2. It's possible to set the custom max length for a field via development by creating a field validator. Please find the examples in the article on Academy:

https://academy.creatio.com/documents/technic-sdk/7-15/how-add-field-validation?_ga=2.27542716.1082264901.1584023961-1276886288.1584023961

 

3. The validation functionality must be developed in the mobile application separately. You need to create a custom business rule in the mobile for that. The guidelines can be found in the article on Academy:

https://academy.creatio.com/documents/technic-sdkmob/7-15/custom-business-rules-mobile-application

Hello

Creatio by default allows a user to choose between 50, 250 and 500 as max lengths of a Text column from the Object designer.

1. Is there a way to set this custom max length for that object from the Freedom UI?

Ahamed Rizlan,

 

Hello,

 

On the object level it's not possible however field validator can be used on the page where the field is added to ensure the value has a specific length and prevent saving when the field length is greater than some value. Here is an article regarding field validators in Freedom UI.

Show all comments
mobile application
sorting
7.15_()
Studio_Creatio_()

Hi Community,

How to Sort Records in Mobile App Section List?

Like 0

Like

3 comments

Dear Fulgen,

Hope you are doing well today.

The mobile application doesn't have this option. We already had similar requests from multiple users and our R&D team has in plans to implement the sorting option in the future application versions.

Best regards,

Dean

Dean Parrett,

Thanks Dean, but programatically is there any way?

Dear Fulgen,

Yes, you can develop custom sorting function. You can try to debug the sorting feature in the web version and implement similar logic for mobile version.

Regards,

Dean

Show all comments