mobile sdk
business rule
7.13_()
studio

Hi Community,

Any idea how we can disable the existing mobile business rule. Lets say for example below rule.

Terrasoft.sdk.Model.addBusinessRule("Case", {

    name: "CaseContactAccountRequirementRule",

    ruleType: Terrasoft.RuleTypes.Requirement,

    requireType: Terrasoft.RequirementTypes.OneOf,

    triggeredByColumns: ["Contact", "Account"]

});

 

I tried to create my custom model config and set this existing rule to "enabled:false", compile the changes and re-synchronize the mobile but still this rule is active in mobile.

 

Like 0

Like

1 comments

If you want to disable the existing mobile business rule, you can do it by calling the removeBusinessRule function. The function accepts two parameters - the name of the model and the name of the rule. For example:

 Terrasoft.sdk.Model.removeBusinessRule("Case", "CaseContactAccountRequirementRule");

Show all comments

I've created replacement model for Product Entity, and when Im trying to save new Landing Page, error appears:

 

Thoose fields are fields that were added to Product entity.

 

How can I fix this?

Like 0

Like

1 comments

Dear Alex,

There might be multiple reasons for the similar errors. Try to double check the system setting 'SchemaNamePrefix' and make sure the prefix is set to 'Usr'. Apart from that, make sure you have the columns listed in the error message in your object. If the columns are deleted incorrectly, you can experience the similar errors. Try also to generate the source code for all times, update the database structure and compile all items http://prntscr.com/ov1z3h.

If these steps cannot help, please approach our support team via support@bpmonline.com so that we could investigate the problem in your particular environment.

Best regards,

Dean 

Show all comments
#editable list
add detail
7.14_()
studio

Hello,

I have a detail into the Activity section in a page in a custom section. I modified the detail to be an editable list by using the method described in the documentation in the Academy. I want to default the Activity type to a new type I created called "Review", see screenshot. The result needed is to have the user click the "+" sign in the detail, a new row is created below of type "Review", and they can start filling in the fields in the editable list. 

 

Also, a second thing, is there a way to have the text wrap in the editable list like it does for a normal detail. If the text in a field is too long, it is cut off. Can I make it so it wraps down and makes the row taller?

Thank you very much. 

Like 0

Like

2 comments

Hello Reid,

The easiest way to achieve this target is to specify "Review" to be an activity type by default (in advanced settings of Activity object http://prntscr.com/oq52rk). This will make all activities created in the application to have the type field being filled in with the value of "Review".

The second way to achieve a target is to create a process that will be triggered upon record adding into this detail and this process will set the value of "Review" for "Activity type" field. So once the record is added and user opens this record as an editable list - he will see needed activity type.

The third variant requires development skills. The method used upon record adding by clicking on "+" sighn is called addRecord. You can create a replacing schema for "ActivityDetailV2" object and specify your own addRecord method that will use ConfigurationConstant for activity type.

And as per your second question - you can set this string field as "Multi-line text" type field http://prntscr.com/oq5d3o and as a result it will be displayed in several rows.

Best regards,

Oscar

Oscar Dylan,

Hello Oscar,

Thank you so much for the response. Yes I am able to do either of the first two options, but the third option is, of course, preferred to make it less confusing for the user. I've tried to figure that out but I think it is beyond our skill at the moment. Need to keep learning. 

As for the multi-line text, it seems that only works in normal fields or details. But if the detail has been modified to be an editable list, it does not wrap the text into multiple lines anymore, even with the multi-line text bool checked. 

Show all comments
oData
7.13_()
studio

Hi Community,

Currently I am not able to filter record using ODATA for my lookup field, I am getting object reference error. Below is my request string.

UsrEmiratesId is the lookup field

"UsrAreaCollection?$top=1000&$filter=UsrEmiratesId eq guid'" + emirateId + "'&select=Id, Name, UsrEmiratesId"

 

But when I filter the record using Id which the PK column, request is successful, what is wrong with this lookup field why it is not working

 

Like 1

Like

1 comments

Dear Fulgen,

The possible reason for an error could be in syntax of lookup in the request. Please try to modify the request string, so that you filter by UsrEmirates/Id. For example, as if I would like to select orders with certain opportunitites, I would filter by Opportunity/Id

Hope you find it helpful,

Anastasia

Show all comments
7.14_()
studio

I am trying to replace the bpm'online section icons with branded ones. 

I see that with most you navigate to View > Open Section Wizard and replace the image. However, some sections do not have the View dropdown. How do I change the icon for these? 

Also, I am replacing them with a PNG of the new icon, but it is not working or showing up as a big white block. Do I need to upload it in a certain format? 

Thanks. 

Like 0

Like

3 comments

Dear Collette,

Could you please name the sections that doesn't not have View option? Are you talking about Dashboards section? 

As for the images, we recommend using a white icon on a transparent background. Image format - PNG or SVG, size - 38x38 px.

Looking forward to your reply.

Dean

Dean Parrett,

 

Thanks, PNG wasn't working for me but SVG is. 

Yes, I am talking about the dashboard section as well as agent desktop & feed. I can find their section wizard by going through Workplace Setup, but get this error when trying to access it: 

Hi,

I need update dashboard section's icon, too.

Show all comments
Connected to
image
edit page
#entity profile
7.14_()
studio

I have created a custom [Connected entity profile] on the accounts section that is a duplicate of the primary contact connected entity, except the text displays: Billing Contact:

 

I have followed the following academy article to do so: https://academy.bpmonline.com/documents/technic-sdk/7-13/connected-entity-profile-control

 

But am unable to set the default image ?? (I.e. I want the billing contact to have the same icon as the primary contact when an entity is not yet selected for the field ...):

 

 

Like 0

Like

1 comments

Please feel free to set any default image in the configuration section. In order to do it open the billing profile schema and upload the needed image in the BlankSlateIcon property. Save the schema and clean the cashe.

Show all comments
studio
7.12
Business Process
businessProcess
7.12_()

Hi everyone,

I'm facing a problem in the business process , when I try to save the business process element , the following message appears: ' Error occurred when saving : Collection item  with unique identifier not found '

Like 0

Like

0 comments
Show all comments
Activity
tasks
completion date
7.13_()
studio

Hi Community,

I have completed tasks on Activity object, I want to know the completion date, what column in activity table the completion date is?

 

Like 0

Like

1 comments

Dear Fulgen, 

Unfortunately, there is no such column, however you can add this column in the section wizard or configuration and use business process to populate it. This process would trigger on status changed to Completed and populate this column's value to the current date. 

Best regards,

Dennis 

Show all comments

I have multtiple lookup values in Product model, and I need to populate them from Script Task.

For example, this field: 

 

How can I populate this field and/or add new Price Lists from Script Task?

Like 0

Like

1 comments

It's possible to implement via multi-row data insert. The example for the "Prices" is below.

var priceListId1 = new Guid("FA689C95-C63C-4908-8FD2-19A95E0425BD");

var priceListId2 = new Guid("90699A9B-99AF-49B3-9678-73BDAE7EAEFE");

var priceListId3 = new Guid("7635F047-2DD4-4060-AF07-D7B9820BBC34");

var productId = new Guid("A802F388-59AA-4B69-88C3-ECC9078BF27D");

new Insert(UserConnection)

.Into("ProductPrice")

.Values()

    .Set("PriceListId", Column.Const(priceListId1))

    .Set("ProductId", Column.Const(productId))

.Values()

    .Set("PriceListId", Column.Const(priceListId2))

    .Set("ProductId", Column.Const(productId))

.Values()

    .Set("PriceListId", Column.Const(priceListId3))

    .Set("ProductId", Column.Const(productId))

.Execute();

Please find more information in the article by the link below

https://academy.bpmonline.com/documents/technic-sdk/7-13/multi-row-data-insert

Show all comments

I've created Replacing Object for Product entity, added custom fields, but when I'm saving following error appears:

Error while saving: Item with name "Product" not found

 

How can I fix this problem?

Like 0

Like

1 comments

This issue occurs when the system can’t link an object with a table in a database.

This happens because of adding custom columns to the object and further deleting these columns. In this case, the columns continue to exist in the database. When you try to create a replace object, the system won’t be able to find a table in the database that exactly equals the object.

To solve this issue, I offer the following recommendations:

1. If you remember which columns of the object you deleted, you can try to create them again.

2. If you don't remember which columns you deleted, you can see what columns are in the table in the database and compare them with the columns of your object. Then add the missing columns to the object. The system will not be able to link them if the data types won’t be equal.

3. If the previous instructions have not eliminated the error, you can restore the site from the backup.

For more detailed assistance, please contact technical support.

Show all comments