Hi,

I have a EntityCollection and i would like to know how can i add Objects to that EntityCollection in my ScriptTask.

EntityCollection ec = Get("ProcessParameter1");

var entity;

ec.Add(entity);

Set("ProcessParameter1",ec);

Like 0

Like

1 comments

The Add method is correct. Additionally, I'd not recommend using a simple list instead. 

Show all comments

Hi,

I want to know what is the purpose of the files inside the 'bin' folder (Terrasoft.Configuration - > bin), and can I delete these files or not , because the size of this folder is too big.

Like 0

Like

1 comments

Dear Mohamad,

Those files present in bin folder are libraries that store core logic of the application and we strongly don't recommend to delete anything from there since it will destroy the application completely. Those files are core logic and "heart" of the application so they are not supposed to be deleted.

Best regards,

Oscar

Show all comments

When I compiled my bpm'online application an error occured (error : Object reference not set to an instance of an object) , what I need to know is the reason of this error, also I want to know if the compilation process has log files somewhere , and how can I access them.

 

Like 0

Like

1 comments

Dear Mohamad,

This error does not include any meaningful information that can explain what happened. I recommend you to check the logs (Error file in directory like %windows%temp%bpmonline%) - it should contain details of this error. 

Best regards,

Angela

Show all comments

 

I have a button in a page , when I press that button , it performs a save and close operation.Also in this page I have a virtual detail, the problem is that when I press the button no data is saved in the page object when the page is in combinet Mode , if I refresh the page (no longer in combinet mode) and click the button the data is saved

- The code of the Approval Button is :

onApprovalButtonClicked: function(){
 
 
var self= this;
self.set("StStatus", {value: "BFBE5A54-08C6-4830-AE3F-09969C626C4B", displayValue:"Closed"});
self.save();
if (self.tryShowNextPrcElCard()) {
	return;
}
var isLastProcessElement = self.get("IsProcessMode") && !self.get("NextPrcElReady");
if ((self.get("IsInChain") || self.get("IsSeparateMode")) || isLastProcessElement) {
if (!self.destroyed) {
	self.sandbox.publish("BackHistoryState");
}
return;
}
self.sandbox.publish("CloseCard", null, [self.sandbox.id]);
self.hideBodyMask();
 
}

 

- it gives me that error when the button is pressed:

Uncaught Terrasoft.UnsupportedTypeException: Message DetailValidated is not defined in CardModuleV2 (SectionModuleV2_StWorkOrder1Section_CardModuleV2) module 

 

Like 0

Like

4 comments

Hello Mohammad,

 

To fix the issue please flush Redis and compile all items. That should do the trick. 



Regards,

Alex

Hi,



I know this posts was old.

But how was this fixed?



Thanks,

Solem.

Dear Solem,



Please, refer to the comment from Alex:



To fix the issue please flush Redis and compile all items. That should do the trick. 



Best Regards,

Ivanna

Dear Ivanna Yatsura,



I actually did that but I still got the error.

 

Message GetMasterEntitySchema is not defined in CardModuleV2 (SectionModuleV2_AccountSectionV2_CardModuleV2) module 

I was following this https://community.creatio.com/articles/add-iframe-modalbox.



Thanks,

Solem

Show all comments

In the contact section page , when I click on a contact record , it opens in combinet mode, what I want is when I click on any contact record in the contact section page in first time, I want to open the contact record in Edit mode not in combined mode.

- Combined mode

yy

- when I refresh the page , it's no longer in combined mode 

Like 0

Like

1 comments

Dear Mohamad,

Unfortunately, this is a hard encoded functionality and the basic application tools do not allow to set it up. We already had similar request and our R&D team will consider developing the functionality that will allow to set up the vertical view in the future application releases. 

Best regards,

Dean

Show all comments

Understanding of core system tables are really important for a successful work with bpm'online on advanced level. Especially, if you work as a system administrator or a developer. The article in the attached file can be useful if you want to gain more knowledge on the topic. 

Like 1

Like

Share

0 comments
Show all comments

I am following the instructions in the academy page (https://academy.bpmonline.com/documents/technic-sdk/7-13/adding-detail-…) to create an editable list.  When I get to part 2 (Creating a Detail Schema), it says to inherit BaseGridDetailV2 base detail list schema functions, and the picture shows "Base schema - Details with list ( NUI )."  I don't see an option with the NUI in the list, but if I choose the one that is there then I get an error message "Substitution of Modules is not Allowed."  

 

These are the options I have to choose from:

 

I have looked for "BaseGrid" and "base detail list", but there are no options to choose from.  Are these instructions still up to date?

Like 0

Like

2 comments

The instructions said to add a new Module, but I found that it works if I use a "Schema of the Detail View Model with List" instead.  It works fine doing it this way.

Hello Timothy,



Try to choose "Schema of the Detail View Model with List" option when adding a new module instead of "Module" options. It should help.



Best regards,

Alex

Show all comments

I created a module that I used to generate a custom  comboBoxEdit  view  (lookup/dropdown) , then I used that module in another page (load the component)  , and the view created successfully but without data.

To be more clear:

1- Code of my Custom Module 

define("UsrDropDownGenerator", ["ext-base", "terrasoft", "sandbox"], function (Ext, Terrasoft, sandbox) {

    Ext.define("Terrasoft.configuration.UsrDropDownGenerator", {

        alternateClassName: "Terrasoft.UsrDropDownGenerator",

        extend: "Terrasoft.BaseModule",

       

        Ext: null,

        sandbox: null,

        Terrasoft: null,

        viewModel: null,

        

        view: null,

      

        init: function () {

            debugger;

            this.callParent(arguments);

            this.initViewModel();

        },

        initViewModel: function () {

           debugger;

            var self = this;

            

            this.viewModel = Ext.create("Terrasoft.BaseViewModel", {

                values: {

                    

                    booleanValueColumnList: Ext.create("Terrasoft.Collection")

                },

                columns: {

                    

                    booleanValueColumnList: {

                        type: Terrasoft.ViewModelColumnType.VIRTUAL_COLUMN,

                        name: "booleanValueColumnList",

                        isCollection: true,

                    }

                    

                },

                methods: {

                     getColumnList: function (filters, list) {

                         

                         debugger;

                       if (list === null) {

                            return;

                        }

                        list.clear();

                        var columns = {};

                       for (var x = 0; x < 4; x++) 

                          {

                                            

                                var value1 = {

                                displayValue: "qq",

                                value:"1"

            

                              };

                            columns[x] = value1;

                          } 

            

                            list.loadAll(columns);

                            

                    },

                    

                    simpleFilterColumnChange  :function(args){

                        debugger;

                    }

                }

            });

            

        },

        

        render: function (renderTo) {

                 

 // This is executed on the module initialization, right after the init method.

            

              this.view = this.Ext.create("Terrasoft.Container", {

            

                items: [

                    Ext.create("Terrasoft.Container", {

                        renderTo: renderTo,

                    

                        items: [

                            {

                                width: "300px",

                                markerValue: "testMarker",

                                rightIconClasses: ["combobox-edit-right-icon"],

                                className: "Terrasoft.ComboBoxEdit",

                                list: {

                                    bindTo: "booleanValueColumnList"

                                },

                                prepareList: {

                                    bindTo: "getColumnList"

                                },

                                change: {

                                    bindTo: "simpleFilterColumnChange"

                                }

                                

                            }

                            

                        ]

                    })

                ]

            });

            

            

          

            this.view.bind(this.viewModel);

            

            

            return this.view;

        },



       

        destroy: function () {

            

            this.view.destroy();

           

            this.viewModel.destroy();

        }

    });

    debugger;

    

    return Terrasoft.UsrDropDownGenerator;

});

 

2- Code of my page  

......

        methods: {

                             

            onEntityInitialized:function(){

                

                this.callParent(arguments);

                

                var configObj = {

                       data : [{label : "Name" , description:"hh"},{label:"Age" , description : "10"},{label:"Job" , description : "bb"}]

                };

                                      

                this.sandbox.loadModule("UsrDropDownGenerator", {

                        renderTo: "centerPanel", //name of the container where visual module view will be displayed

                        keepAlive: true

                });

                

            },

        

            

        },

 

The dropdown was created successfully and appeared in the page  , but it does not contains any data.

When I click the dropdown ,  the getColumnList() function executed and the data are saved in the list , but no data appear in UI .

Why the data are not filled in the dropdown  , where is the problem in my code?

 

Like 0

Like

1 comments

Hello,



Unfortunately, it`s hard to tell why exactly this code is not applying.



I can recommend you another, easier way to achieve it . If I understood you right, the task is to create dropdown with some values. 

To achieve it you can simply create new object that will store all the data, and add the new lookup field to the page via section wizard.



Also, you can create some custom styles for this field, more about styles can be found here: https://community.bpmonline.com/questions/how-add-custom-style-control-… and here https://community.bpmonline.com/articles/how-add-or-edit-css-style



Best regards,

Alex

 

Show all comments

How can I set a color value as an attribute? 

I have tried something similar to the below but it didnt work out:

attributes:{
  "labelCaption": {
		    "dataValueType": Terrasoft.DataValueType.TEXT,
		    "type": Terrasoft.ViewModelColumnType.VIRTUAL_COLUMN,
		    "value": "Test"
		   },
 
   "labelColor": {
		    "dataValueType": Terrasoft.DataValueType.COLOR,
		    "type": Terrasoft.ColorEncoding.HEX,
		    "value":"#009900"
		   }
}

Although labelCaption is working fine but labelColor is not

Like 0

Like

5 comments

Hello Mohammad,



The code that you provided is working and attribute "labelColor" is storing "#009900". If this behavior is not something that you expected, please specify more accurately what are you trying to achieve.



In case you want to create some custom styles for html elements we recommend to use CSS styles instead:  https://academy.bpmonline.com/documents/technic-sdk/7-13/advanced-setti…



Best regards,

Alex

You can do this by adding a CSS module, then add this module to your page, and then specify the CSS class using the wrapClass element.

See the following for creating a CSS module:

https://community.bpmonline.com/articles/how-add-or-edit-css-style

https://community.bpmonline.com/questions/how-add-custom-style-control-…

Once you created your CSS, simply add the CSS class to the element using wrapClass. For example:

{
	"operation": "insert",
	"name": "PaymentAmount",
	"values": {
		"layout": {
		"colSpan": 12,
		"rowSpan": 1,
		"column": 0,
		"row": 1,
		"layoutName": "Tab01"
	},
	"bindTo": "PaymentAmount",
	"wrapClass": [
		"payment-amount-highlight"
	]},
	"parentName": "Tab00",
	"propertyName": "items",
	"index": 2
}

Ryan

Im trying to set the color and the text to certain values based on some conditions at runtime.. Here is the rest of the code

//In Diff
{
"operation": "insert",
"name": "HeaderLabel2",
"values": {
"itemType": 6,
	"classes": {
		"labelClass": [
			"results-caption"
		]
	},
	"layout": {
		"colSpan": 10,
		"rowSpan": 1,
		"column": 0,
		"row": 0,
		"layoutName": "Header"
		},
	"caption": {
		"bindTo": "labelcaption"
	},
	"styles": {
		"labelStyle": {
			"color":{
				"bindTo": "labelColor"
			} 
		}
	}
},
"parentName": "Header",
"propertyName": "items",
"index": 0
},
 
//In onEntityInitialized method
 
if(//some condition)
  this.set("labelColor","#ff0000");
  this.set("labelcaption", "Message Testing"));

However, as I said before, labelcaption is working fine but lableColor isnt

Mohammad Yahfoufi,

The response on this post shows you how to change the label color based on conditions: 

https://community.bpmonline.com/questions/how-add-custom-style-control-…

Ryan

Ryan Farley,

Thanks! This will work.. But why doing it as an attributes wont work?

 

Show all comments

I want to add borders to all dropdowns/lookups in the system.

How can I achieve that?

Like 0

Like

4 comments

Dear Mohammad,

Hope you are doing well today.

If you need to change the size of the lookup fields on a page, you can do it through the section wizard. Here is the article for more details. Please refer to the paragraph 'How to set up field location on a page'

https://academy.bpmonline.com/documents/administration/7-13/how-set-pag…

Best regards,

Dean

Dear Dean Parrett,

Hope you are doing good as well.

What I wanted is to have all my dropdowns as the dropdown of the filter i.e. the field have borders and the dropdown icon is always visible. 

 

Thank you in advance!

 

Mohammad Yahfoufi,

To achieve it you simply should add your custom css styles. Here is some links that will be helpful for you.



How to add css style: 

https://community.bpmonline.com/articles/how-add-or-edit-css-style



Css style based on condition:

https://community.bpmonline.com/questions/how-add-custom-style-control-…



Advanced settings of a custom detail:

https://academy.bpmonline.com/documents/technic-sdk/7-13/advanced-setti…



Best regards,

Alex

 

Thank you Alex! 

Show all comments