Hi Community,

Good Day

I have tried this one

https://academy.bpmonline.com/documents/technic-sdk/7-12/dataservice-ad…

Using C# console application project we can insert data to BPM online,

 

My question is, how about adding multiple records? or do I need to re initialize all of this and trigger POST method in every record that I will insert.

 

Thanks

Like 0

Like

1 comments

Hi,

I've got some weird problems with ProcessEngineService.svc. I'm trying to run a process with parameter sent via POST. In most cases it works fine, but sometimes the process starts with blank parameter (despite proper HTTP response code 200 "Ok"). There are no differences with request data. It is totally random whether it works or not. On new installation my process starts but also without values in parameter. Response code is 200 (Ok). I'm using the same code, the same version of software etc.

My client and process are based on this thread: https://community.terrasoft.ru/questions/processengineservicesvc-i-meto…



What could be the cause of the problem ? Thanks in advance for comments and advice.

Like 0

Like

1 comments

Dear Tomasz,

Unfortunately, it is not possible to determine the exact cause based on provided information. I would recommend you to set up logging on both sides. In this case you would be able to find coincidences based on logs and possible reasons for empty parameter issue.

Though, once you will retrieve possible causes, please let us know and we will be happy to assist you.

Regards, 

Anastasia

Show all comments

Hi Community,

 

I want to open a look up which by default has already selected records, please see image below. Lets say, I have look up "Main Activity". I want record "Main Activity A" by default was checked upon opening the look up window. 

Thanks

 

 

Like 0

Like

1 comments

Dear Fulgen,

In order to add such functionality you will need to proceed with custom development to the basic functionality.

Overall, this would be a major development, and we highly do not recommend to interfere with basic functionality, since it can caused unexpected system behavior. 

If you decide to go for development within the system, you will need to do the following:

- Add the LookupUtilitiesV2 to the dependencies of the schema, where lookup is located;

- Override the basic schema BaseLookupPageV2;

- BaseLookupPageV2 contains various methods, which are responsible for opening of the lookup and processing user actions. It also contains an attribute  'SelectedRows', which you might need in your development.

- Override the basic method opening the lookup, so to retrieve the collection of objects, before they are rendered on the page. Modify or add the needed object to selected rows. 

- Add the clause, that your functionality will only execute for particular schema/lookup/section/page, since BaseLookupPageV2 is a parent schema for other lookups in the system.

Regards, 

Anastasia

Show all comments

How can I create my New Look Up inside "Existing Look up Folders (lets say Account Folder)"?

Please refer to image below.

 

 

 

 

Like 0

Like

1 comments



Hello,

You need to select lookups that you are interested in with the help of "Select multiple records" tool (see screenshot http://prntscr.com/kwecax) and then choose the action called "Add to folder" (see screenshot http://prntscr.com/kwecmf) and choose the folder you are interested in.

Best regards,

Oscar

Show all comments

I have this look up object name Category (Please see image below)

 

 

Now, How can I get the value "Hardware" from "Category" look up object and pass it in the variable?

I tried 

var a = this.get("Category");

but this doesn't work

 

Like 0

Like

8 comments

Dear Fulgen,

If you are at the Category edit page and need to get Hardware field which is a column of Category table or an attribute of the edit page:

var hardware = this.get("Hardware");

Peter Vdovukhin,

Hi Peter,

Good Day

Category is the column, "Hardware" is the selected value from the look up. Now I want to get the ID of "Hardware" from the look up

 

Thanks

Then

 var category = this.get("Category");

should work. Please check that you have a column named "Category". Perhaps it is called "UsrCategory"

Peter Vdovukhin,

I am facing the same issue. I have the right field name, however, when I try to use the value of the lookup, it keep returning [object Object] instead of the caption column value.

I tried the String(variableName) and the JSON.stringify(variableName) approaches and got the same result.

Any thought?

Thanks.

Danilo Lage,

Lookup value is js object with two fields (displayValue and value)

this.get("Category") ==  {value: "410006e1-ca4e-4502-a9ec-e54d922d2c00", displayValue: "Hardware"}

Danilo Lage,

Hi Danilo,

1. To get the look up id -  var category = this.get("Category").value;

2. To get the look up name -  var category = this.get("Category").displayValue;

Fulgen Ninofranco,

this.get("Usrlookupname")returns undefined.

It does not work in a custom function.

It works in init or save function which are part of parent class. But I can not get it work in my custom function

RAMNATH SHARMA,

Can you provide more code in which this.get does not work as expected? 

 

Best regards,

Angela

Show all comments

I Have an exisiting filter

var filter =

                this.Terrasoft.createColumnFilterWithParameter(Terrasoft.ComparisonType.EQUAL,

                "Name", "Motherboards");

 

Name = Motherboards

 

Now I want to create multiple filter like:

Name = Motherboards or Name = Graphics Card or Name = Mouse

How can i do this one?

 

Like 0

Like

1 comments

Hello,

You need to create a filter group and set OR logical operator.

Please, see my example:



var filterGroup = this.Terrasoft.createFilterGroup();

filterGroup.logicalOperation = this.Terrasoft.LogicalOperatorType.OR;

filterGroup.add("MotherboardsFilter", this.Terrasoft.createColumnFilterWithParameter(

                    this.Terrasoft.ComparisonType.EQUAL,

                     "Name", "Motherboards");

filterGroup.add("GraphicsFilter", this.Terrasoft.createColumnFilterWithParameter(

                    this.Terrasoft.ComparisonType.EQUAL,

                     "Name", "Graphics");

filterGroup.add("MouseFilter", this.Terrasoft.createColumnFilterWithParameter(

                    this.Terrasoft.ComparisonType.EQUAL,

                     "Name", "Mouse");  



You can find more examples in the documentation - https://academy.bpmonline.com/documents/technic-sdk/7-12/entityschemaqu…

Show all comments

I have an existing lookup field which is already working now I want to change this field to string. How can I possibly edit this field to make it string

Like 0

Like

1 comments

Hello!

 

You can change field type in configuration. You need to find object which contains this field -> open it -> choose field which must be changed -> sort All (https://prnt.sc/kvnotb) -> change Data type accordingly to you business task -> publish

Best regards,

Angela

Show all comments

I have a look up window which populates data of ProductType (Please see image below)

 

 

Upon displaying the modal look up window, Now I want it already filtered by default. I want only specific data will be displayed. 

Like 0

Like

3 comments

Dear Fulgen,

Please see the example below:

// Action handler method. Opens the [Contacts] lookup.
	setOwner: function() {
	// Defining the lookup configuration.
		var config = {
		  // The [Contact] Schema.
		  entitySchemaName: "Contact",
		  // Multiple selection is disabled.
		  multiSelect: false,
		  // The displayed column — [Name].
		  columns: ["Name"]
	     };
	     var EmployeeFilter = 
         this.Terrasoft.createColumnFilterWithParameter(Terrasoft.ComparisonType.EQUAL, "Type.Name",
		 "Employee");
		 EmployeeFilter.Name = "existsFilter";
		 config.filters = EmployeeFilter;
// Opening of the lookup with certain configuration and call-back function that is triggered
// after you click [Select].
		 this.openLookup(config, this.lookupCallback, this);
	},

Hope you will find it helpful.

Regards,

Anastasia

Anastasia Botezat,

Good Day Anastasia,

 

What does parameters "Type.Name" and Employee represents?



I want my look up to like this one (please see image below).

Default filter - "Category"

Default filter value - "Hardware";

 

Thanks

Dear Fulgen,

Base on my example, the "Type.Name" and Employee says, that filter will display contacts, whose type is Employee. You can adjust the filter up to your needs.

Regards,

Anastasia

Show all comments

Hi Sir/Madam,

Please tell me how to add dropdowns in dashboard.

Regards

Raghu Ram

Like 0

Like

3 comments

Hello,

Could you please specify what you mean by dropdowns in dashboard?

Best regards, 

Dennis 

Hi Sir/Madam,

Dropdowns are lookups.

Regards

Raghu Ram

 

Dear Raghu,

Please specify what business task do you need to implement? Please share screenshots or detailed description of what you want to achieve. 

 

Show all comments

I have  string text field, I want to pop up look up upon hitting [enter] or [tab] keys

Like 0

Like

1 comments

It will be hard to catch the [tab] click event. The problem is that the [tab] key is reserved for changing an active element in a browser.

The [Enter] key will be easy to catch. I would do the following:

define("ContactPageV2", [], function() {
	return {
		entitySchemaName: "Contact",
		attributes: {},
		modules: /**SCHEMA_MODULES*/{}/**SCHEMA_MODULES*/,
		details: /**SCHEMA_DETAILS*/{}/**SCHEMA_DETAILS*/,
		businessRules: /**SCHEMA_BUSINESS_RULES*/{}/**SCHEMA_BUSINESS_RULES*/,
		methods: {
			onEntityInitialized: function() {
				this.callParent(arguments);
			},
			onPhoneClick: function(e) {
				if (e && e.keyCode === 13) {
					console.log("show popup");
				}
			}
		},
		dataModels: /**SCHEMA_DATA_MODELS*/{}/**SCHEMA_DATA_MODELS*/,
		diff: /**SCHEMA_DIFF*/[
			{
				"operation": "merge",
				"name": "AccountPhone",
				"values": {
					"layout": {
						"colSpan": 24,
						"rowSpan": 1,
						"column": 0,
						"row": 4
					},
					"keyup": {
						"bindTo": "onPhoneClick"
					}
				}
			}
		]/**SCHEMA_DIFF*/
	};
});

 

Show all comments