Hi Experts,

Can I track the session login time and session logoff time for all users who login to system, Can I have the result as report or as list (username,logintime,logoff time)

Like 0

Like

3 comments

Hello Mohammad,

You can find the necessary information about the user sessions in System Designer -> System User -> Access Rules tab.

Additionally it can be found in the Audit Log

Feel free to build the analytics based on the data from these places.

Lisa

Hi Lisa,

I have enabled Log user sessions management events system setting. but I am still cannot see anything in the audit log once users log off and log in.

Am I enabling the right one, I am using the sales enterprise (cloud). Do I have to contact support for anything to enable the audit..

 

Kindly direct me since I am lost in this subject..

 

Thanks for your support,

Mohammad

 

Dear Mohammad,

It is possible that the settings are cached in Redis. Please contact support at support@bpmonline.com and request the Redis to be flushed. If that doesn't do the trick, write another email providing us with the URL of your instance and if possible temporal credentials to log in so we could check what's going on there.

Lisa

Show all comments

Hi Community!

How are you? I hope you can help me!

I have configured in Account two lookup fields with "VwSysRole" as dictionary to associate roles with the account

but after adding them, I can not update the entity (BD), it throws an error.

However, I have a business process that takes those values ​​as parameters to set Access Rights in certain situations, and that works correctly. For example, when an account is added

How could you update the DB or what dictionary could I set in those fields to be able to associate the roles with the account without generating inconsistencies in the DB?

King Regards,

Ezequiel

Like 0

Like

1 comments

Unfortunately you will not be able to create a field linked to the VwSysRole view in the account object. VwSysRole is not a table. It's a view and it doesn't allow all of the operations that you can do with a table. 

Additionally, account is a unit that is not related to the system roles. Simply, you can't login with an account. Even contacts are not linked to system roles directly. 

Only admin units that you can find in the system section "System users" are linked to roles directly. Basically, when the system decides what permissions you should have, the system looks at the login credentials that you used and it doesn't look at your contact or an account.

Show all comments

Hi Community!

How are you?

I hope you can help me!

 

I want to make a query with filters where the equivalent in sql server for example would be: "..Where field = 'Administrator' OR  field like 'Ope%' or field like 'Supe%'

 

 

Is there any way to include combinations of AND and OR with ESQ? Is there an alternative?

King regards,

Ezequiel

Like 0

Like

4 comments

Dear Ezequiel,

You can create the filter that would include AND and OR at the same time and would work as described. 

You need to build the filter as shown in the following example:

                var filters = Ext.create("Terrasoft.FilterGroup");
                filters.logicalOperation = this.Terrasoft.LogicalOperatorType.OR;
                filters.addItem(select.createColumnFilterWithParameter(Terrasoft.ComparisonType.START_WITH, "UsrPresents",
                               present.value));
                select.filters = filters;

 

Lisa

Hi Lisa! 

Thank you for you answer!

sorry, I expressed myself badly, I need to add a filter. The complete filter would be:

Where Id = 'some id' and (name = 'Administrator' OR  name like 'Ope%' or name like 'Supe%')

Can be done?

Regards,

Ezequiel

I show the example below

var esq = Ext.create("Terrasoft.EntitySchemaQuery", {
				rootSchemaName: "SysUserInRole"
});
esq.addColumn("[SysFuncRoleInOrgRole:OrgRole:SysRole].FuncRole.Name", "RolFuncionaAsociado");
var esqFilter = esq.createColumnFilterWithParameter(Terrasoft.ComparisonType.EQUAL, "SysUser.Id", userId);
var esqFilter2 = esq.createColumnFilterWithParameter(Terrasoft.ComparisonType.EQUAL, "[SysFuncRoleInOrgRole:OrgRole:SysRole].FuncRole.Name", nombreRol);

The second filter is who should have the OR combination

Regards,

Ezequiel

You can use my example above to create the correct filtration. Just make sure you add all the necessary filters to the collection and then combine them in the way you need. You can use the following example to add the filters to the collection:

// Adding created filters to query collection. 
esqCities.Filters.Add(esqFirstFilter);
esqCities.Filters.Add(esqSecondFilter);

More useful examples can be found in our Academy here - https://academy.bpmonline.com/documents/technic-sdk/7-11/use-entityschemaquery-creation-queries-database.

Lisa

Show all comments

Hi Community!

How are you?

I hope you can help me!

I want override "DELETE" button from the Employee Grid,

For that, edit EmployeeSection and overwrite the "deleteRecords" method. However, the permissions applied to the "Delete" action were lost

 

I want to overwrite the method but respecting the configured permissions

Any idea?

King Regards,

Ezequiel

Like 0

Like

1 comments

Dear Ezequiel,

Overwriting the method shouldn't impact the access right set for the object as you overwrite it in JS on the user side and the access rights are configured in the back-end in C#.

Please check the functionality again and if there are still some malfunctions provide us with the detailed description of all the actions taken by you and the result you got. You can either answer here, or send the detailed email to support@bpmonline.com so we could take a look. 

Lisa

 

Show all comments

Hi,

In my client module, i want to get the most high parent company of my current company ...

how can i get that ?

Thanks in advance,

Davyd REY

Like 0

Like

4 comments

I have created a Table Sql Server function to get the "master company" of a given company but how can i call it from esq in my client module?

Hi Davyd, how do you identify whether company is parent to your company or not. What parameters do you compare?

Hello there : i have found a way to get the top most account of a given child account (i have created a sqlserver function) but now, i want to execute that sql script from my clientmodule : SELECT * FROM fnGetMasterAccount("<child account id>")



How can i execute it and get the record obtained from ExtJS client module (ESQ?) ?



 

 

Dear Davyd,

You can find the examples of execution and getting the query results from ESQ in our Academy - https://academy.bpmonline.com/documents/technic-sdk/7-11/use-entityschemaquery-implementation-client.

Lisa

Show all comments

Hi everyone!

How are you?

I hope you can help me

I want know if a user have associated a functional role in his organization role.

Example: User: "apaez", Organization Role : "Operador Arcor", Functional Role: "Operador Empresa"

The user "apaez" is asocciatted the "Operador Arcor" Organization Role and "Operador Arcor" Organization Role is associatted "Operador Empresa" Functional Role

The query that builds in SQLServer is the following:

SELECT * FROM SysUserInRole ur

  JOIN SysFuncRoleInOrgRole a ON ur.SysRoleId = a.OrgRoleId

  JOIN VwSysRole sr ON a.FuncRoleId = sr.Id

Where sr.Name = 'Operador Empresa'

AND ur.SysUserId = '20abeba5-5327-45aa-a5c2-07c41ac1fdf2'

 

How can I replicate it in ESQ (Client)?

King Regards,

Ezequiel!

 

 

Like 0

Like

2 comments

Maybe this example can help

	function getUserSaveRights(callback, renderTo, scope) {
		var currentUser = Terrasoft.SysValue.CURRENT_USER.value;
		var sysAdmins = ConfigurationConstants.SysAdminUnit.Id.SysAdministrators;
		var esq = Ext.create("Terrasoft.EntitySchemaQuery", {
			rootSchemaName: "SysUserInRole"
		});
		esq.addColumn("SysRole");
		esq.addColumn("SysUser");
		esq.filters.add("SysUser", Terrasoft.createColumnFilterWithParameter(
			Terrasoft.ComparisonType.EQUAL, "SysUser", currentUser));
		esq.filters.add("SysRole", Terrasoft.createColumnFilterWithParameter(
			Terrasoft.ComparisonType.EQUAL, "SysRole", sysAdmins));
		esq.getEntityCollection(function(response) {
			if (response &amp;&amp; response.success) {
				var result = response.collection;
				var isSysAdmin = (result.collection.length !== 0);
				callback.call(scope, renderTo, isSysAdmin);
			}
		}, this);
	}

 

Federico,

Thanks for you help!

I was able to solve the query in the following way:

var esq = Ext.create("Terrasoft.EntitySchemaQuery", {
						rootSchemaName: "SysUserInRole"
					});
esq.addColumn("[SysFuncRoleInOrgRole:OrgRole:SysRole].FuncRole.Name", "RolFuncionaAsociado");
 
var esqFilter = esq.createColumnFilterWithParameter(Terrasoft.ComparisonType.EQUAL, "SysUser.Id", userId);
var esqFilter2 = esq.createColumnFilterWithParameter(Terrasoft.ComparisonType.EQUAL, "[SysFuncRoleInOrgRole:OrgRole:SysRole].FuncRole.Name", nombreRol);
esq.filters.add("esqFilter", esqFilter);
esq.filters.add("esqFilter2", esqFilter2);
esq.getEntityCollection(function (result) {
   if (!result.success || result.collection.collection.length == 0) {
		// error processing/logging, for example
		this.showInformationDialog("Data query error");
		return;
   }
   debugger;
   this.set(nombreRol, true);
   return;
}, this);

King Regards!

Ezequiel

Show all comments

Hi!

How are you?

I hope you can help me!

I have an Employee printable and I added some related tables, among them, Employee's career, where the IsCurrent field is Boolean, and the same in the report is shown with the value "True" or "False", there is a way to show "Yes" or "No" instead of "True" or "False"?

King Regards,

 

Ezequiel

Like 0

Like

1 comments



Hello Community! Need add a image container on the left of lookup and change that with a function.

Any have a example of code?

Regrads,

 

Like 0

Like

1 comments

Solver using

	{
					"operation": "insert",
					"parentName": "PhotoContainer",
					"propertyName": "items",
					"name": "Photo",
					"values": {
						"getSrcMethod": "getPhotoSrcMethod",
						"onPhotoChange": "onPhotoChange",
						"beforeFileSelected": "beforePhotoFileSelected",
						"readonly": false,
						"generator": "ImageCustomGeneratorV2.generateCustomImageControl"
					}
				},
				{
					"operation": "insert",
					"parentName": "Header",
					"propertyName": "items",
					"name": "Name",
					"values": {
						"layout": {"column": 3, "row": 0, "colSpan": 20},
						"labelWrapConfig": {"classes": {"wrapClassName": ["page-header-label-wrap"]}}
					}
				},

 

Show all comments

Hi all,

1.- I need to create a page with locations and it's respective maps.

2.- Some locations are included on others, like a tree structure:

  • "Chile",
    • "Santiago" is on "Chile"
      • "Ñuñoa" is on "Santiago"
        • "Calle Marathon 1000" is on "Ñuñoa"
          • "Building 1" is on "Calle Marathon 1000"
          • "Building 2" and so on are on "Calle Marathon 1000"
Like 0

Like

5 comments

Dear Julio,

You can inspect the Account address detail or Contact address detail for the example of maps realization in the system. 

Also, there is another option - install Field Force package, which contains more complex functionality, and use its possibilities to achieve your goals.

As for now the question is quite complex and general. Please let us know if you will face an issue while implementing the functionality. We will be happy to help.

Regards,

Anastasia

Anastasia Botezat,

Thanks Anastasia, where canm I found this package?, I look for it on marketplace, but didn't found it,

Thanks in advance

Regards

Dear Julio,

 

Here's the link for the package on our Marketplace - https://marketplace.bpmonline.com/app/bpmonline-field-sales. It is called Field Sales.

Lisa

Thanks, what about the second question? regarding to show info in a tree structure, where each element had associated the same location data structure, like:

1.- "Chile",

1.1.- "Santiago" is on "Chile"

1.1.1.- "Ñuñoa" is on "Santiago"

1.1.1.1.-"Calle Marathon 1000" is on "Ñuñoa"

1.1.1.1.1.- "Building 1" is on "Calle Marathon 1000"

1.1.1.1.2.- "Building 2" and so on are on "Calle Marathon 1000"

Is there some way to implement something like this? for example what https://www.jstree.com/ did. or http://jonmiles.github.io/bootstrap-treeview/,

 

Dear Julio,

Please take a look at Organizational structure detail in Accounts section. It contains the realization of functionality you need. Please use it as an example.

Regards,

Anastasia

Show all comments

Hi!

How are you?

I hope can you help me!

 

I have a permission in Employees where the records created by "Operator Arcor" (Organizational Role) can only be seen by someone from that Role or a Supervisor

 

When I create an employee with the "Supervisor" user, I want to modify the "Created By" field to set it to the Contact of a user of "Operador Arcor" role, and in that way, to see that record within that role.

To do that, I create a business process where I modify this field if it was created by the Supervisor, but for some reason I do not see the record in the Employees section when I log in with a user of that role

am I still missing something more in the process?

The fields that I update are "Created By" and "Owner".

The same test with Contact instead of Employee works ... That is, I can see the contacts with some user of the role "operator Arcor", where the field Created By was set through the business process

King Regards!

Ezequiel!

Like 0

Like

1 comments

Dear Ezequiel,

The default access rights for the record are distributed while the creation process. In other words, when you change the owner or the created by filed using a business process, the rights won't be re-distributed.

In your case, you just need to add the [Change access rights] element after you change the owner and the author of the record to redistribute the rights to the corresponding users. The more detailed info about this element: https://academy.bpmonline.com/documents/technic-bpms/7-11/change-access-rights-process-item

Best regards,

Lily

 

Show all comments