I am creating a new record:

var schema = UserConnection.EntitySchemaManager.GetInstanceByName("UsrTable");
var entity = schema.CreateEntity(UserConnection);
entity.SetDefColumnValues();
entity.SetColumnValue("UsrColumn", columnValue);
entity.Save();
var recordId = entity.GetColumnValue("Id");

and then creating a linked record in a related table:

var schema2 = UserConnection.EntitySchemaManager.GetInstanceByName("UsrRelatedTable");
var entity2 = schema2.CreateEntity(UserConnection);
entity2.SetDefColumnValues();
entity2.SetColumnValue("UsrTable", recordId);
entity2.Save();

I'm getting the following error referring to the `UsrTable` lookup column in `UsrRelatedTable` table when running the process:

Terrasoft.Common.ItemNotFoundException: Value "UsrTable" was not found.
   at Terrasoft.Core.Entities.EntityColumnValueCollection.GetByName(String name)
   at Terrasoft.Core.Entities.Entity.SetColumnValue(String valueName, Object value)
   at Terrasoft.Core.Process.UsrImportCustomersSubMethodsWrapper.DeserialiseJSONExecute(ProcessExecutingContext context)
   at Terrasoft.Core.Process.ProcessScriptTask.InternalExecute(ProcessExecutingContext context)
   at Terrasoft.Core.Process.ProcessFlowElement.ExecuteItem(ProcessExecutingContext context)
   at Terrasoft.Core.Process.ProcessFlowElement.Execute(ProcessExecutingContext context)

The question is essentially how to initialise a lookup column with a record Id.

Like 0

Like

2 comments

It seems that the issue is in the column name:

 

  at Terrasoft.Core.Entities.EntityColumnValueCollection.GetByName(String name)
   at Terrasoft.Core.Entities.Entity.SetColumnValue(String valueName, Object value)

 

Please try UsrTableId column name

 

entity2.SetColumnValue("UsrTableId", recordId);

since this should be a lookup column for which the value is set.

Oleg Drobina,

Thank you Oleg, I should have figured that one out myself.  Cheers,

Show all comments
Question

I need to create a lookup filter for the following SQL

DECLARE @P1 uniqueidentifier = 'D21F0468-F86B-4707-9FDB-C093CF0F6F87';
 
SELECT UsrProductList.Name
FROM UsrProductList
WHERE EXISTS (
	SELECT UsrProductLineOfBusiness.UsrProduct
	FROM UsrProductLineOfBusiness
	WHERE UsrProductLineOfBusiness.UsrProductId = UsrProductList.Id
	AND UsrProductLineOfBusiness.UsrLineOfBusinessId = @P1
)

Following this post I got as far as

"UsrProduct": {
	"dataValueType": Terrasoft.DataValueType.LOOKUP,
	"lookupListConfig": {
		"filter": function() {
			var opportunityLobId = this.get("Opportunity.UsrOpportunityLineOfBusiness").value;
			var filterGroup= this.Ext.create("Terrasoft.FilterGroup");
			var subFilter = Terrasoft.createFilterGroup(Terrasoft.createColumnFilterWithParameter(Terrasoft.ComparisonType.EQUAL, *** GROUND TO A HALT HERE *** , opportunityLobId));
			subFilter.addItem();
			filterGroup.add(Terrasoft.createExistsFilter([UsrProductLineOfBusiness:UsrProduct].id, subFilter));
			return filterGroup;
		}
	}
}

However ground to a halt at `UsrProductLineOfBusiness.UsrProductId = UsrProductList.Id` in the subquery.  If anyone has any clues they would be appreciated!

Like 0

Like

1 comments

For anyone who may happen this way in the future, this was solved with

"UsrProduct": {
	"dataValueType": Terrasoft.DataValueType.LOOKUP,
	"lookupListConfig": {
		"filter": function() {
			var opportunityLobId = this.get("UsrOpportunity.UsrOpportunityLineOfBusiness").value;
			var filterGroup = this.Ext.create("Terrasoft.FilterGroup");
			var subFilter = Terrasoft.createFilterGroup();
			subFilter.addItem(Terrasoft.createColumnFilterWithParameter(Terrasoft.ComparisonType.EQUAL, "UsrLineOfBusiness.Id", opportunityLobId));
			filterGroup.add(Terrasoft.createExistsFilter("[UsrProductLineOfBusiness:UsrProduct].Id", subFilter));
			return filterGroup;
		}
	}
}

The subfilter is applied to the table in the main query's column path.

Show all comments

Hi there!

I'm trying to run clio in Docker on Ubuntu Server 20.04.

Following instructions provided here - https://github.com/Advance-Technologies-Foundation/clio#installation-an…, I have downloaded the source code, and executed "docker build -f ./install/Dockerfile -t clio ."

But I got unexpected output, and, seems, clio container did not even started:



 

DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
            Install the buildx component to build images with BuildKit:
            https://docs.docker.com/go/buildx/
 
Sending build context to Docker daemon  2.899MB
Step 1/13 : FROM mcr.microsoft.com/dotnet/sdk:3.1 as base
 ---> 1e8401d05dea
Step 2/13 : WORKDIR /app
 ---> Using cache
 ---> 18f52a48e0a5
Step 3/13 : FROM mcr.microsoft.com/dotnet/sdk:3.1 AS build
 ---> 1e8401d05dea
Step 4/13 : WORKDIR /app
 ---> Using cache
 ---> 18f52a48e0a5
Step 5/13 : COPY clio clio
 ---> Using cache
 ---> fa0fb42a25ec
Step 6/13 : COPY clio.sln clio.sln
 ---> Using cache
 ---> d8527c9fcc93
Step 7/13 : WORKDIR /app/clio
 ---> Using cache
 ---> f4ae3f90ec62
Step 8/13 : RUN dotnet publish -c Release -o /app/published
 ---> Running in 432ba7ef38dd
Microsoft (R) Build Engine version 16.7.3+2f374e28e for .NET
Copyright (C) Microsoft Corporation. All rights reserved.
 
  Determining projects to restore...
/app/clio/clio.csproj : error NU1202: Package DocumentFormat.OpenXmlSDK 2.0.0 is not compatible with net6.0 (.NETCoreApp,Version=v6.0). Package DocumentFormat.OpenXmlSDK 2.0.0 supports: net35 (.NETFramework,Version=v3.5)
  Failed to restore /app/clio/clio.csproj (in 6.4 sec).
The command '/bin/sh -c dotnet publish -c Release -o /app/published' returned a non-zero code: 1

 

Like 1

Like

2 comments

Anybody, please, help!

Hi!

 

Based on the issue you are experiencing with running Clio Docker on Ubuntu 20.04, it seems to be related to compatibility or configuration problems. To address this, I would recommend following these steps:

  1. Make sure you have met the minimum system requirements for running Clio Docker on Ubuntu 20.04. Check the official documentation for any specific prerequisites.

  2. Double-check that you have correctly followed the installation steps outlined in the documentation or guide provided by Clio.

  3. If the issue persists, I suggest visiting the Clio GitHub repository for more information and possible solutions. You can access the repository at the following link: GitHub Repository. Please search for any existing issues that match your problem or consider opening a new issue to report your specific problem. GitHub representatives and the community can provide further assistance and guidance in troubleshooting the issue.

Remember to provide as much detail as possible when reporting the issue, including any error messages or logs you have encountered. This will help the GitHub community understand and address your problem more effectively.

 

I hope this helps.

Show all comments
Question

Is it possible to configure time based workflows - i.e., end dates and durations specified for workflow stages?

Like 1

Like

3 comments

One solution to this problem is to run a BPM process at a scheduled time each day to process the workflow.

Hello Gareth,

 

Could you please elaborate on your business task? 

Bogdan,

It's OK, thank you for the reply but the issue is solved now, cheers,

Show all comments

Подскажите мне пожалуйста - в сиситеме есть разделы, а в разделах вкладки и поля, нет ли возможности просмотреть историю изменения данных полей например через логирования ?

 

Спасибо 

Like 0

Like

1 comments

Здравствуйте,

 

Для данной бизнес задачи Вы можете использовать функционал "Журанала изменений", более детальная информация о данной функциональности доступна в этой статье

Отслеживать изменения Вы сможете только после настройки "Журнала изменений", возможности просмотреть изменения за время до того, как данная функциональность была настроена, к сожалению, нет. 



С уважением, 

Анастасия

Show all comments

Hello, the system does not log in, what is the problem, please tell me?

Like 0

Like

2 comments

Hello,

 

Please contact support team via support@creatio.com for further assistance as more details are needed to proceed with investigation. 

 

Best regards,

Anastasiia

It looks like you're using HTTPS, make sure you've made the config file changes for HTTPS. See here https://academy.creatio.com/docs/user/on_site_deployment/application_se…

Ryan

Show all comments

Approvals by the user's manager are showing in the Approvals tab on the Opportunities section edit page, however I assume they should also show on the Communications panel / Notification centre / Approvals tab with the 'Show only my approvals' flag unticked.

 

Is there any reason why they might not show here?

 

Thanks,

Like 0

Like

6 comments

Hello,

 

basically, there might be only a few reasons for that.

One of the most common ones is the absence of the Time zone in the user profile.

Can you please check on that? If there is no time zone selected, you can fill it with the necessary one and check on the issue again.

 

Regards,

Gleb.

Thank you for your reply, much appreciated.

 

I have set the time zones for both the user and the user's manager, the approval is still not showing in the communications panel.  Are there any other reasons this might be the case? 

Gareth Osler,

 

then you will need to check all of the right for the object that the user has.

I suggest registering a case for the support team in order to help you resolving the issue as it may take much time and knowledge of the system.

Also, some of the settings may not be correct so it is better to check them as well.

 

Regards,

Gleb.

Gleb,

Thanks.

Gareth Osler,

Hello Gareth did you find any solution ?

Anas Znibi,

 

Hey Anas, this was a long time ago, I cannot remember, apols.

Show all comments

Здравствуйте!

У нас печатные формы договоров двуязычные. Т.е в одном шаблоне слева Казахский язык, справа - Русский.

Столкнулись с проблемой того, что на двух языках формат разный. Примеры адресов:

Рус: 050060, Республика Казахстан, Алматинская область, г. Алматы, ул. Розыбакиева, 263

Каз: 050060, Қазақстан Республикасы, Алматы облысы, Алматы қ, Розыбакиев к., 263

  1. В справочнике стран наша страна = Казахстан. Переименовывать не хочется.
  2. Для значений полей Страна, Область, Город значения на двух языках разные с приставками-сокращениями города (г.). Да и сами названия - разные.
  3. На двух языках улица - разная и позиция слова разная: ул. пишется перед названием улицы, к. пишется после названия улицы, но и оно ручками пишется.
  4. Названия улиц так-же склоняются по разному. Для рус - ул. Розыбакиева, для каз - Розыбакиев к..

Есть ли у вас уже решения или рекоммендации по решению таких задач?

Like 0

Like

1 comments

Здравствуйте,



Коллеги, согласно базовой логике, в печатных формах, на страницу просто переноситься значение поля.

Которое в свою очередь (Если речь идет о поле "Полный Адрес", в новом интерфейсе, собираеться из полей "Индекс", "Страна", "Область/штат", "Город", "Адрес".



Также хотелось бы обратить внимание, что  в справочниках на русском языке, страна = Казахстан.

А так же поле создаеться без приставок ".ул", "г.".



Я бы рекомендовал пересмотреть логику работы поля, в которое вписываеться адресс,в интерфейсе, поскольку проблема не в печатных формах, а значении поля, из которого данные просто копируються на станицу печатной формы.

 

Show all comments

Greetings. 

I have a need to give users the ability to decide, which fields should be required for a particular page. I had some sort of the solution in my head. It makes an request and returns with a list of fields that need to be required for this particular page. The problem I am facing is making fields required via JS code (not in Diff section but in the code section, like "onEntityInitialized"). Looking forward to seeing the possible ways to solve this problem.

Like 0

Like

1 comments

Hello,

In order to make a field required based on the condition you need to bind it to an attribute, here is an example of how to do it:

1) Create a new boolean attribute

attributes: {
			"IsValueRequired": {
				"dataValueType": Terrasoft.DataValueType.BOOLEAN,
				"value": false
			}
		},

2) Bind this attribute to an "IsRequired" parameter in the field diff:

"values": {
					"isRequired": {"bindTo": "IsValueRequired"},
					"layout": {

3) Set the value to this attribute in the onEntityInitialized method:

methods: {
			onEntityInitialized: function() {
				this.callParent(arguments);
				this.setIsValueRequired();
			},
			setIsValueRequired: function() {
				if (YOUR CONDITION) {
					this.set("IsValueRequired", true);
				}
				else this.set("IsValueRequired", false);
			}
		},

 

Show all comments

Hi all,

 

Is there a way to force a detail to remain expanded for all users?



Like 0

Like

1 comments
Best reply

Hello,

 

Please check the below post where the similar business task has been already discussed:

https://community.creatio.com/questions/any-way-force-hierarchical-deta…

 

Best regards,

Anastasiia

Hello,

 

Please check the below post where the similar business task has been already discussed:

https://community.creatio.com/questions/any-way-force-hierarchical-deta…

 

Best regards,

Anastasiia

Show all comments