Article

We believe this recognition is based on the substantial investment into development of multichannel marketing platform to orchestrate customer journeys and accelerate lead-to-revenue.

Celebrate the achievement with us - get your complimentary copy of the report today!

Download the report >>

Share

0 comments
Log in or register to comment
Question

Hi

I'm looking for an method that when triggered, all data is already loaded to the page.

I uses the "onEntityInitialized" and noticed that it is triggered before I have data so I can't do much with it.

Documentation suggest using the "init" or "render" methods but the only examples are not for a replacing client module.

I tried the "init" and "render" with "Hello World!" alert that never appeared.

My question is, is there a method that is triggered after the data is present and thus can be manipulated via JavaScript code ?

Thanks

 

Like

0 comments
Log in or register to comment
Question

I accidentally deleted the Self Service Cases section. 

 

How can i add it back? 

Like

0 comments
Log in or register to comment
Question

I need one popup like email is already exists  if the email will be same while adding the new lead on lead section. 

Here the code i was written but it is not applying can anyone help on this.

define("LeadMiniPage", [], function() {
    return {
        entitySchemaName: "Lead",
        details: /**SCHEMA_DETAILS*/{}/**SCHEMA_DETAILS*/,
       attributes: {
            "Email": {
                dataValueType: Terrasoft.DataValueType.TEXT,
                dependencies: [
                    {
                        columns: ["Email"],
                        methodName: "validateEmail"
                    }
                ]
            },
        methods: {
            
            validateForm: function() {
                    
                    var recordEmail = this.get("Email");
                    var message = "";
                    //Validate when phone is not nul or empty
                //Validate when email is not nul or empty
                    if(recordEmail !== null && recordEmail !== "" && recordEmail !== undefined) 
                    {
                    //    var emailMessage = "";
                        var emailesq = this.Ext.create("Terrasoft.EntitySchemaQuery", {
                            rootSchemaName: "Lead"
                        });
                        
                        
                        emailesq.addColumn("Email", "Email");
                        
                        var esqEmailFilter = emailesq.createColumnFilterWithParameter(Terrasoft.ComparisonType.EQUAL, 
                                                    "Email", recordEmail);
                                                    
                        emailesq.filters.add(esqEmailFilter);
                        
                        emailesq.getEntityCollection(function (result) {
                            if (!result.success) {
                                this.showInformationDialog("Data query error");
                                return false;
                            }
                            else{
                                result.collection.each(function (item) {
                                    message = message + "Email " + item.get("Email");
                                 //   return false;
                                });
                                
                            }
                            
                            if(message !== ""){
                                this.showInformationDialog(message);
                            }
                            
                        }, this);
                        
                        
                    }
                    
                    
                    
            }
        },
        // Visual display of the [UsrBalance] column on the edit page.
        diff: /**SCHEMA_DIFF*/[
            
            
        ] /**SCHEMA_DIFF*/
}
};
});

Like

1 comments

The problem is the esq to check for other conflicting emails is asynchonous. You'll need to create a flow to check for when your validation has completed before the page's base save function is called. 

See the responses from Anastasia in this thread for an overview of how the flow should work. You'll need to implement something similar. https://community.bpmonline.com/questions/cant-return-validation-message

Ryan

Log in or register to comment
Question

Hi all,

We have a custom section called 'Dossiers'.

A dossier can have multiple invoices. Therefore we created a custom detail 'Invoice history' where each record is linked to a dossier (name UsrDossierInvoiceHistory).

Now I want to make the data from this detail available like a section so I can add it to a workplace and all records (linked to all dossiers) are displayed and can be filtered on.

Would it be enough to add a file 'UsrDossierInvoiceHistorySection' and 'UsrDossierInvoiceHistoryPage'?

Or can I achieve this using the section wizard, referring to an existing detail object?

Kind regards,

Vincent 

Like

0 comments
Log in or register to comment