7.12
sales_enterprise

Hello Community!

I need in a specific page not return to the list section, when the user put save the config set in IsSilent =  true; how allways can set true?

Like 0

Like

1 comments

Dear Federico,

All you need is overriding a save() method in your page schema.

    methods: {

            save: function(config) {

                if (config) {

                    config.isSilent = true;

                }

                else {

                    config = {

                        isSilent: true

                    };

                }

                this.callParent([config]);

            }

        },

Show all comments
add detail
7.12
sales_enterprise

Hi community,

 I need to add a detail into contact with information from another entity without link to contact. for example: promos to be offer to the contact.

If it possible? How can I do? 

Have a nice weekend.

Regards

Like 0

Like

3 comments

Dear Uriel,

You can create database view and then add the detail based on it. Please note that there are some limitations in this case - you will be able to view the detail content, though there will be no option to edit it or add new data there.

Lisa

Lisa Brown,

Thank you Lisa. I miss that I need to filter the data based on some contact field. For example: get records for the new entity where some field match with contact city.

Could you help me?

Regards

Uriel,

The previous advice works with the new condition too.

Show all comments

Hello Community!

I need block the edition of one field in a detail list. I try:

        attributes: {
            // Determines whether the editing is enabled.
            "IsEditable": {
                // Data type — logic.
                dataValueType: Terrasoft.DataValueType.BOOLEAN,
                // Attribute type — virtual column of the view model.
                type: Terrasoft.ViewModelColumnType.VIRTUAL_COLUMN,
                // Set value.
                value: true
            },
            "UsrPorcentaje": {
            	enabled: false
            }
        },

but not works. Any idea?

http://prntscr.com/kd46x3

Like 0

Like

3 comments

Solved adding the function:

	getCellControlsConfig: function(entitySchemaColumn) {
					debugger;
						if (!entitySchemaColumn) {
							return;
						}
						var columnName = entitySchemaColumn.name;
						var enabled = (entitySchemaColumn.usageType !== this.Terrasoft.EntitySchemaColumnUsageType.None) &&
								!this.Ext.Array.contains(this.systemColumns, columnName);
						var config = {
							itemType: this.Terrasoft.ViewItemType.MODEL_ITEM,
							name: columnName,
							labelConfig: {visible: false},
							caption: entitySchemaColumn.caption,
							enabled: enabled
						};
						if (columnName === "MyColumn") {
							config.enabled = false;
						}
						if (entitySchemaColumn.dataValueType === this.Terrasoft.DataValueType.LOOKUP{
							config.showValueAsLink = false;
						}
						if (entitySchemaColumn.dataValueType !== this.Terrasoft.DataValueType.DATE_TIME &&
								entitySchemaColumn.dataValueType !== this.Terrasoft.DataValueType.BOOLEAN) {
							config.focused = {"bindTo": "Is" + columnName + "Focused"};
						}
						return config;
					},

 

Federico Buffa,

Hi Frederico or anyone else,

Can you please provide more details on the function you added?

I tried coping it but get compiler error for those: '&&'

I need the exact same thing you were trying to do, if you can help it will be very helpful.

Thanks,

Chani

Sollved by removing the '&&' and left just 1 & instead

Show all comments
7.12
sales_enterprise



Hello Community!

Is posible add a filter for a lookup field in a edit list grid? I need filter the lookup base a condition for each row.

Also, is work the dependencies attribute, to execute a function on the field change?

Regards,

https://academy.bpmonline.com/documents/technic-sdk/7-12/adding-detail-editable-list

Like 0

Like

7 comments

Dear Federico,

There was a similar question here about detail filter.

As to your second question, could you explain what do you mean?

Peter Vdovukhin,

 Is not the same question a need filter the items inside of lookup based on the primary id of the row.

Is like add the confg on the attributes to the field in the page edit but in the detail.

And the second question is like add a OnChage on the field of the grid.

http://i.prntscr.com/_BWbe4t1SUymnWMfUvsN-w.png

If speak about the detail filter I still don't see the difference. Could you add more information?

Answering your second question. There is no anything special between changing something in a detail and edit page. So you will need to create an attribute with dependencies and to set what method will fire when the attribute is changed. For example here is an example for an edit page

Or you may look at BaseProductDetailPageV2 schema:

attributes: {

...

                "TaxAmount": {

                    name: "TaxAmount",

                    dataValueType: Terrasoft.DataValueType.FLOAT,

                    dependencies: [

                        {

                            columns: ["Amount", "DiscountTax"],


                            methodName: "setTaxAmount"

                        }

                    ]

                },

...

}

...

methods: {

...

setTaxAmount: function() {

                    var taxAmount = this.calcTaxAmount();

                    if (this.get("TaxAmount") !== taxAmount) {

                        this.set("TaxAmount", taxAmount);

                    }

                },

...

}

...

diff: {

...

{

                    "operation": "insert",

                    "name": "DiscountTax",

                    "parentName": "AmountBlock",

                    "propertyName": "items",

                    "values": {

                        "bindTo": "DiscountTax",

                        "enabled": false,

                        "layout": {

                            "column": 12,

                            "row": 3,

                            "colSpan": 12

                        }

                    }

                },

...

}

Peter Vdovukhin,

 But this is work in a editble list detail? I add the dependencies attribute in a editable list detail and not execute de function.

Yes, It works for me. I tested this yesterday. I told you, check BaseProductDetailPageV2 schema. The setTaxAmount method will be launched when you change some of the dependent columns in an order in a product editable list

Peter Vdovukhin,

In the BaseProductDetailPageV2 the attributes is work on the edit page. I don't have a edit page. I need put the filter in the lookup listed in the editable list detail to filter the field in the image, the equivalent of ProductDetailV2. Exist a example of that?

http://i.prntscr.com/_BWbe4t1SUymnWMfUvsN-w.png

Dear Federico,

Just try it and you will see it works. You may also use Detail wizard from the parent page to add some business rules such filters and making fields editalble and you will see that these rules work in an editable list and stored in a DetailPageV2.

Show all comments
7.12
sales_enterprise

Hello Community!

Is posible set a default active tab when a page is init? Not remember the last tab active.

Like 0

Like

1 comments

Dear Federico,

Yes, it is possible. Lets take CasePage as an example. You will find the method setDefaultActiveTab here.

Simply delete the if part and change the "CaseInformationTab" to any tab you need. This tab will be displayed by default.

Feel free to find similar logic in other pages. 

Oliver

Show all comments
Logotype
layout
design
page designer
7.12
sales_enterprise

Hi there,

In need to change bpm'online logo of loading page.

Like 0

Like

1 comments

Hello,

To do that please contact your manager and discuss all needed details for further implementation.

Best regards,

Oscar

Show all comments
7.12
sales_enterprise

Hi Community,

I have no button to export the translations in the system. I have allowed the rights to the ‘Export list records’ operation in the Operation permissions section in System Designer.

How can I enable the button?

Like 0

Like

1 comments

Dear Martin,

The export option in Translations is available starting from 7.12.2 system version. In all the previous versions you need to add the lookup for Translations and export the data from it.

Lisa

Show all comments
7.12
sales_enterprise

Hello Community! I need get the GPS cordenate from the map selecting the pin on the direction.

Is that posible with the map in address?

Like 0

Like

3 comments

Dear Federico,

You can try to use the fields GPSN and GPSE and try to get the coordinates from them in the Account object, for example: 

 

Best regards,

Lily

Lily Johnson,

Lily i want put the pint on the map and then get the GPSN, GPSE. Then with this cordenate get the address. The problem is move the pin on the map, is blocked.

Dear Federico,

Unfortunately, there is no such possibility to achieve your goals with basic functionality.

However, you can replace OsmMapsModule and apply any custom logic you would like. Please note, that when replacing the module, you need to copy the entire code of the parent schema (OsmMapsModule).

Also, here you can find more information on available possibilities of Open street maps, its API, marker variations and example of how to work with them:

https://wiki.openstreetmap.org/wiki/Marker_Api



Moreover, official documentation on OSM can be found on the official website - http://nominatim.openstreetmap.org/

Regards, 

Anastasia Botezat

Show all comments
7.12
sales_enterprise

Hello Community!

I'm trying to set up a default quantity when the ProductSelectionSchema is loading the products. 

In what function need equal the value?

 

Regards,

 

 

Like 0

Like

2 comments

Federico Buffa,



Could you please help with how to achieve this?

The image is not loading.



Also, it would be of great help if you could assist in applying default filters to the data loaded in "ProductSelectionSchema".



BR,

Bhoobalan Palanivelu.

Show all comments
sales_enterprise

Hello, 

How could you set up a parameter in the Business Process designer to display: 

- the 15th Day of the Current Month  (Output = Date) 

- the 15th Day of the Next Month   (Output = Date)

I ve tried a few ways but had not luck. Help would be much appreciated! 

 

 

Like 0

Like

7 comments

Hello,

It depends on the purpose of the designed business process. If you want to filter something you should add condition like on the screenshot http://prntscr.com/jxfbnp and specify exact date. For example 15.06.2018. And you will get the result for this day. The same one is for the next mount. If you want to build formula you should specify condition like on the screenshot http://prntscr.com/jxfc6b. If it hasn't helped please describe the idea of the business process that you are creating.

Oscar Dylan,

Oscar Dylan,

Hello Oscar, 

Thank you for your reply, but I need the parameter to have a formula to calculate those dates rather than I specify it: 

-Process Example: ReadData -> Lead Date (22/03/2018) 

Parameter 1:   DateTime.CurrentMonth(15th Day)  - 15/03/2018

Parameter 2:   DateTime.NextMonth(15th Day)       - 15/04/2018

Does this make sense? Thank you

Thanos,

Have you tried something like this ?

First date: DateTime(DateTime.Now.Year, DateTime.Now.Month, 15)

Second date: First date.AddMonths(1)

Jean I have but I get the following error:

Formula value error: Parameter "DateDateTimeUtilities" not found 

I don't really know if you can use it in a formula, but what about a script task ?

DateTime date = Get<DateTime>("LeadDate");
 
DateTime firstDate = new DateTime(date.Year, date.Month, 15);
DateTime secondDate = firstDate.AddMonths(1);
 
Set("FirstDateParameter", firstDate);
Set("SecondDateParameter", secondDate);
 
return true;

with using 'System'

Jean Michou,

Thank you Jean, really appreciate it, I tried but I dont think I know how to get rid of the errors on the script task... Asked support for help in the meantime! 

The following formulas will work

DateTime.Now.AddDays(15 - DateTime.Now.Day).AddHours(12-DateTime.Now.Hour)



DateTime.Now.AddMonths(1).AddDays(15 - DateTime.Now.Day).AddHours(12 - DateTime.Now.Hour)

Show all comments