There is a requirement in which I have to verify a specific condition based on fields and lookup values on clicking the SAVE button. I am using ESQ in edit page schema while overriding asyncValidate method to achieve this.
But, I am unable to figure out which commands can be used to get further field values of that lookup, and then compare it. For reference, here in my case, Contact lookup is on Custom section and I want to fetch Department value of it .
Hi, I am overriding asyncValidate method with multiple filters (A AND C) AND (B AND C). Here C is the field from the same object, A and B are the fields from other object using ESQ.
I have created a separate function to achieve this as below :
ConditionCheck : function(ID, BUnit, esq)
{
var esqFirstFilter = esq.createColumnFilterWithParameter(Terrasoft.ComparisonType.EQUAL, "Id",ID);
var esqSecondFilter = esq.createColumnFilterWithParameter(Terrasoft.ComparisonType.EQUAL,"Department.Name",BUnit);
And, I have used this function to call (A AND C) and (B AND C) separately as:
var result1 = this.ConditionCheck (A, C, esq);
var result2 = this.ConditionCheck (B, C, esq);
Now, I am not sure how we can combine the result1 and result2 in asyncValidate method such that it will only going to save when both result1 and result2 holds "true". Please help me on this.
does it require more resources to have several business processes left "executing" (waiting for a timer condition to be satisfied to do something) or to have a single process scheduled to run every 5 min (i.e) that searches for some record that has a "due date" condition close to the current date time?
the difference would be that the former would be left "pending" for sometime, and the latter would terminate.
The better approach in this case - is to have a single scheduled process that will be executed fastly.
Because each process, that is executing in background mode using 1 thread of quartz worker (Default value = 5 workers). So, if you will start a lot of the background processes, that are executing (waiting for some event) - you can overfill the background processes queue and new background processes will not start correctly until the old processes are not finished and the quartz worker is not free for a new task.
The better approach in this case - is to have a single scheduled process that will be executed fastly.
Because each process, that is executing in background mode using 1 thread of quartz worker (Default value = 5 workers). So, if you will start a lot of the background processes, that are executing (waiting for some event) - you can overfill the background processes queue and new background processes will not start correctly until the old processes are not finished and the quartz worker is not free for a new task.
Is it possible to format a custom macro field on an email template? I need to display a date with the long format date on an email (eg. August 25, 2022)
The email definition that has the date looks like this:
The details of this fee were [#UsrPatientContactPreference.UsrEmailText#] to the patient or dispute submitter, on [#UsrRequestForAdditionalInformationSentOn#]
Please check methods in the BaseLookupConfigurationSection schema.
In order to hide the specific action, you will need to change a Visible property:
getSectionActions: function(){
var actionMenuItems =this.callParent(arguments);
actionMenuItems.each(function(item){if(item.values.Caption.bindTo==="Resources.Strings.ExportListToExcelFileButtonCaption"){
item.values.Visible=false;}});return actionMenuItems;}
In order to remove the specific action from the collection:
getSectionActions: function(){
var actionMenuItems =this.callParent(arguments);
var itemToRemove;
actionMenuItems.each(function(item){if(item.values.Caption.bindTo==="Resources.Strings.ExportListToExcelFileButtonCaption"){
itemToRemove = item;}});
actionMenuItems.remove(itemToRemove);return actionMenuItems;}
Would like to know whether BuildConfiguration is equal to BuildWorkspace from .Net framework? As I checked my changes were not built after running BuildConfiguration only. It works only when we trigger Publish from Creatio.
I have a scenario where I have to take the users through few (let's say 2-3 ) preconfigured pages where they will fill values in fields displayed on the pages (for ex. A = true, B= false, Country = Australia) and once they submit on the last page, then they should be redirected to the section page and a dynamic folder should be automatically created having the filled in values by the users as filter conditions (A = true, B= false, Country = Australia).
Can anyone suggest an approach to this scenario.
I have checked that whenever we create a folder with filter confitions a record will be created in table "ObjectFolder" where In "SearchData" column our applied filter condition will be stored as bytes.
But still not getting any Idea on how to approach this problem.
Perhaps you could work backwards from there to do the opposite? It appears you could just form the ESQ filters as JSON, then use System.Text.Encoding.GetBytes to get the JSON as a byte array and write back to SearchData using the entity class SetBytesValue function.
Newtonsoft.Json.JsonSerializationException: Self referencing loop detected for property 'Provider' with type 'Terrasoft.Core.ManagerProvider'. Path 'Manager.DataValueTypeManager.Provider.AppConnection.LicManager'
I have setup a DCM on a section. But when I login from a portal user, I can see the DCM area/container but can not see the DCM bar. Is there any setting or permission that needs to be added?
I am using 7.18.3 Studio version. Any help would be appreciated.
We need to hide the notifications for Activities (Created in process or DCM). Is there a way to hide or don't show those notifications for activities only?
Please provide us with more details on the business logic you want to implement and specify which notifications exactly this is about (in DCM or communication panel?)
While adding an activity element in business process or in DCM, the activity notification shows under "Business Process Tasks" in communication panel (refer screenshot). Under the same "Auto generated page" or "Pre configured pages" are also shown.
Our requirement here is to hide those activity notifications from "Business Process Tasks", but keep the "Auto generated page" or "Pre configured pages" notifications.
If you do not need these tasks to be shown and completed for the process to continue, you can create activities with a simple "Add data" element in the business process instead of "Perform task".
I created a custom web service to accept xml from one of our lead aggregators. However, it is not deserializing the request body, and all I get in response is a Null Object Reference error. Am I missing something?
In order to add the same section to a workplace you ned to run the following script in the database, since it's not possible to do so from a Workplace setup:
insert into "SysModuleInWorkplace" ("SysWorkplaceId", "SysModuleId")
values ('_inser_ID_here_', '_inser_ID_here_')
So you need to find the ID of the needed section in the SysModuleId table + an ID of the workplace where you want to put add it in the SysWorkplaceId table.
It should look like this once you paste the needed IDs (please note that this is only an example):
insert into "SysModuleInWorkplace" ("SysWorkplaceId", "SysModuleId")
We would like to warn you, that though it is possible to add the same section to a workplace, we do not recommend doing so as this behavior wasn't tested and may result in unexpected issues. Also, we highly recommend testing it on a dev/test environment first to make sure it works as you need it.
In order to add the same section to a workplace you ned to run the following script in the database, since it's not possible to do so from a Workplace setup:
insert into "SysModuleInWorkplace" ("SysWorkplaceId", "SysModuleId")
values ('_inser_ID_here_', '_inser_ID_here_')
So you need to find the ID of the needed section in the SysModuleId table + an ID of the workplace where you want to put add it in the SysWorkplaceId table.
It should look like this once you paste the needed IDs (please note that this is only an example):
insert into "SysModuleInWorkplace" ("SysWorkplaceId", "SysModuleId")
We would like to warn you, that though it is possible to add the same section to a workplace, we do not recommend doing so as this behavior wasn't tested and may result in unexpected issues. Also, we highly recommend testing it on a dev/test environment first to make sure it works as you need it.
I have already put the same section in 1 Workpalce. So there will be 2 section in 1 Workplace. Next question is, can we change on of section Account to another name?
Please note that it is not possible to change the name only for one of them since this is the same object shown twice and if you change the name of one of them, the other one will change too.