Question

Hi,

I would like to know how can i trigger 'someMethod' by adding, editing or removing something in my detail.

 

Like

4 comments

Dear Pedro,

Please find the options to trigger your custom method:

adding:

you can override the addRecord method of BaseGridDetailV2 to launch your custom method along with parent realization.

editing:

You can create a new attribute on the page schema, which will trigger method "methodName" based on the changes in indicated columns:

"Probability": {
    // Determination of the column dependency.
    "dependencies": [
      {
        // Depends on the "Stage" column.
        "columns": [ "Stage" ],
        // The name of the handler method for the "Stage" column change.
        // setProbabilityByStage() method is defined  in methods property
        // of schema object.
        "methodName": "setProbabilityByStage"
      }
    ]
  }

delete:

you can override the basic deleteRecords method on the detail schema, so to run your custom method after, or before parent realization of the method.

Regards,

Anastasia

Anastasia Botezat,

 Hi,

I've tried to override "deleteRecords" method on my detail schema page, and didn't work, I think its because of package dependencies but I'm not sure.

Pedro Pinheiro,

The "deleteRecords" method does work on the detail schema. Please debug the code, so to narrow down the possible cause. Here is an instruction on the client side debug:

https://academy.bpmonline.com/documents/technic-sdk/7-13/client-code-debugging

Regards,

Anastasia

Anastasia Botezat, I manage to fix my problem using "onDelete" instead of the "deleteRecords" method.

Thanks for your response.

Log in or register to comment
Question

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<EntityCollection>("ProcessParameter1");

var entity;

ec.Add(entity);

Set<EntityCollection>("ProcessParameter1",ec);

Like

1 comments

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

Log in or register to comment
Question

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

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

Log in or register to comment
Question

Hi,

i'm switching my application to development in file system mode, for that, i am following the "Basic development on the bpm'online platform Day 2"(10:30) video and "Development Guide".

After i made the necessary changes to the web.conf file and press "Compile all items"

<fileDesignMode enabled="true" />
<add key="UseStaticFileContent" value="false" />

im getting a access denied error :

"Access to the path "Terrasoft.Configuration.Dev.csproj" is denied."

I would like to know how can i run "Compile all items" without errors.

 

Like

2 comments
Best reply

I manage to fix the problem by changing the file permissions to accept the IIS_IUSRS using the https://academy.bpmonline.com/documents/technic-sdk/7-13/development-fi… guide. (Note: To find the file i used the search engine from the windows file explorer)

I manage to fix the problem by changing the file permissions to accept the IIS_IUSRS using the https://academy.bpmonline.com/documents/technic-sdk/7-13/development-fi… guide. (Note: To find the file i used the search engine from the windows file explorer)

Dear Pedro,

Yes the solution is to edit file permissions as it is described in the Academy article you provided. Good luck in your development!

Best regards,

Oscar

Log in or register to comment
Question

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

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

Log in or register to comment
Question

 

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") &amp;&amp; !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

1 comments

Hello Mohammad,
 

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

Regards,
Alex

Log in or register to comment
Question

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

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

Log in or register to comment
Article

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. 

Share

0 comments
Log in or register to comment
Question

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

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

Log in or register to comment
Question

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

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
 

Log in or register to comment