I want to explore more on view model properties but could not found  good article which describes the get and set properties of view model properties

Like 0

Like

1 comments
Best reply

Hello,

 

For detailed documentation on view model properties, please refer to the following link:

Data handling basics

Hello,

 

For detailed documentation on view model properties, please refer to the following link:

Data handling basics

Show all comments

Please let me know how to do this: We have this Order Management (Order Allotment) in which employees are assigned in list below (GlbAssignedCatchers) of field from our Team lookup (every team has different number of employees), Let us know if we can save all of these catchers from GlbAssignedCatcher into a field on Order Allotment like (Catcher 1 / Catcher 2 / Catcher 3 / So on..) So that we can display all list of catchers in our list (on 2nd picture). This would help us alot. The main thing we are concerned is that, the number of catchers are different in every team and how we can get them all. Picture 2:

Like 0

Like

2 comments

bump

Hello,
 

Thank you for your question. We have analyzed your problem and, unfortunately, there is currently no such possibility in the application.
 

However, we understand that this is not ideal for your specific needs.
 

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 again for bringing this to our attention, and please do not hesitate to reach out if you have any further questions or concerns.

Show all comments

Dear,

 

I m trying to send to a source code object a guid converted to string format

I allready do this in an other process with the orderId using: 

var orderId = Get("OrderId").ToString();

 

 

When i save and compile my process, i get no error, but when i start the process, i get the following error:

 

My AccountAddressId parameter is an Id:

 

And i set it with the Read Primary Account Address First collection element:

 

 

What wrong m i doing ?

 

Thank you

Nicolas

Like 0

Like

3 comments

Hello Nicolas,

 

The very same process in my local app didn't return the error. Are you sure that the issue is in the accountId parameter, but not in the two other parameters? 

Oleg Drobina,

if i comment the line with the accountAddressId parameter, the process doesn't return me any error, so the problem seems coming from this line.

Oleg Drobina,

Well, i change the var name: accountAddressId to adressId

and now it works, may be i miss something

Show all comments

I would like to know how to listen to merge event with business process.

For instance, delete, create and modify events are there:

420.png

I would like to get Id of an entry that was merged, and then use it in business process. 

"Modify" is not always applicable. Sometimes an entry is not considered modified when merged.

Thanks in advance

Like 0

Like

1 comments

Hello Yuriy, 

There is no such out of the box functionality that allows you to subscribe on merge event due to unexisting of such event.

As workaround, you may try to modificate Deduplication process (starts when records are merging). The records that remains in the database is called golden record and id of golden record is the first id in collection that is transferred to deduplication process. 

So once you have this golden record, you may process is it as you wish.

Also please note that process of merging records is asynchronous. 



Regards,

Alex

Show all comments

Hi everyone,

We created a custom entity that has a Contact lookup called [UsrConsumidor] and we need to get a value from a Contact's field called [UsrTotalPtsAcumulados].



We got an exemple from the bpm'online academy (https://academy.bpmonline.com/documents/technic-sdk/7-10/entityschemaqu…) and followed the exactly same structure, but it's not working. 

​var contactId = this.get("UsrConsumidor");
 
// Create Terrasoft.EntitySchemaQuery class instance with [Contact] root schema.
	var esq = this.Ext.create("Terrasoft.EntitySchemaQuery", {
	rootSchemaName: "Contact"
});
 
// Add column with name of main contact of accounts that refers to given contact.
esq.addColumn("UsrVouchers.UsrConsumidor.UsrTotalPtsAcumulados", "ContactTotalPtsAcumulados");
 
// Get one record from selection on the basis of [Id] of card object and display it in an info window.
esq.getEntity(contactId, function(result) {
	if (!result.success) {
		// error processing/logging, for example
		this.showInformationDialog("Data query error");
		return;
	}
	this.showInformationDialog(result.entity.get("ContactTotalPtsAcumulados"));
}, this);

The error that is given in the console is: "errorCode: "FormatException", message: "Expected hex 0x in '{0}'." "

Am I doing something wrong or is there an easier way to get an object by ID?

Best regards,

Rogério Zampieri.

Like 0

Like

1 comments

Dear Rogerio,

You don't need to join tables, your root schema is already "Contact", you just need to specify the filter.

Moreover, please use this statement to achieve Id of the contact:

​var contactId = this.get("UsrConsumidor").value



 

​var contactId = this.get("UsrConsumidor").value;
 
// Create Terrasoft.EntitySchemaQuery class instance with [Contact] root schema.
var esq = this.Ext.create("Terrasoft.EntitySchemaQuery", {
	rootSchemaName: "Contact"
});
 
// Add column with name of main contact of accounts that refers to given contact.
esq.addColumn("UsrTotalPtsAcumulados");
esq.filters.add("IdFilter", esq.createColumnFilterWithParameter(
				Terrasoft.ComparisonType.EQUAL, "Id", contactId));
 
// Get one record from selection on the basis of [Id] of card object and display it in an info window.
esq.getEntity(contactId, function(result) {
	if (!result.success) {
		// error processing/logging, for example
		this.showInformationDialog("Data query error");
		return;
	}
	this.showInformationDialog(result.entity.get("ContactTotalPtsAcumulados"));
}, this);

Regards,

Anastasia

Show all comments