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.
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.
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.
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.
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.
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.
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.
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
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
// 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);},
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.