Studio_Creatio
7.17

Hello Community!

 

I need to read the roles of the user logged in the mobile app. I try with a query sql but I don't have any result (query is working from the sql console). There is any other better option for that?

 

var sqlText =
			"select u.contactid, u.name, rol.name from  sysUserInRole ur  " +
			"inner join sysadminunit u on ur.sysUserId = u.id inner join " +
			"sysadminunit rol on ur.SysRoleId = rol.id where u.contactid ='" + Terrasoft.CurrentUserInfo.contactId + "'";
		var me = this;
		Terrasoft.Sql.DBExecutor.executeSql({
			sqls: [sqlText],
			success: function(data) {
				if (data.length > 0) {
					var records = data[0].rows;
					for (var i = 0, ln = records.length; i < ln; i++) {
						var sqlData = records.item(i);
 
					}
				}
			}
		});

 

Like 0

Like

6 comments

Hello Federico,

 

And have you tried using ESQ select query using the Terrasoft.CurrentUserInfo.contactId as a value for the ESQ filter? Please try this approach as well.

 

Best regards,

Oscar

Oscar Dylan,

 Can you give me a example of this query using esq for mobile?

Federico Buffa,

 

I have no example, but the code should be similar to the one below:

var resultArray = [];
var esq = Ext.create("Terrasoft.EntitySchemaQuery", { rootSchemaName: "SysAdminUnitInRole" });
esq.addColumn("SysAdminUnit");
esq.addColumn("SysAdminUnitRole");
esq.filters.addItem(esq.createColumnFilterWithParameter(3, "SysAdminUnit", Terrasoft.CurrentUserInfo.userId));
esq.filters.addItem(esq.createColumnFilterWithParameter(4, "SysAdminUnitRole", Terrasoft.CurrentUserInfo.userId));
esq.getEntityCollection(function (result) {
	if (result.success &amp;&amp; result.collection.getCount() &gt; 0) {
		var item = result.collection.getByIndex(0);
		resultArray.push(item.get("SysAdminUnitRole"));
	}
}, this);

Best regards,

Oscar

Oscar Dylan,

 I tried to add the esq query but Im getting error in the filters looks filters not exist in the esq. Im trying to add this in a custom BR. Any idea of the correct syntax?

 

If I check the esq properties for filters is undefined. As well I tried create a group filter to add it later to the esq but with no luck.

 

Any another idea of how to know the roles of the user in the mobile app?

Federico Buffa,

Did you get your answer ? 

Show all comments

Hello community. By any chance somebody know how to localize the tag button in the filter panel of the section?

 

Thanks,

Like 0

Like

2 comments

Hello Federico,



You can localize the "tag" button on the "Translation" page of the system setup. The corresponding key is 

"Configuration:TagFilterViewModelGeneratorV2:LocalizableStrings.TagButtonCaption.Value"

 

Best regards,

Bogdan

There is any way to bound that lozalization to the package?

Show all comments
Studio_Creatio
7.17

Hi 

Is it possible to remove thousand separator in a metric item?

Like 0

Like

5 comments

Hello Stefano,

 

It is possible but the logic depends on the page.

Please refer to these posts where this question was explained:

 

https://community.creatio.com/questions/special-character

 

https://community.creatio.com/questions/how-remove-comma-integer-field-section-list-page

 

Best Regards,

Max.

Max,

Hi Max,

thank you for your response.

My problem is remove thousand separator in the metric page element and your suggestion works on standard fields

Stefano Bassoli,

 

Sorry, I misinterpreted your post. Unfortunately, it is not possible to remove the separator in the metric page element.

Max,

ok, thank you

Max,

Is it possible to remove a thousand operators from the Lookup fields?



BR,

Bhoobalan Palanivelu.

Show all comments
oData
Studio_Creatio
7.17

Hi community,

I'm trying to read the contact tags using odata, in particular  I would like to expand the ContactTag object when I read the ContactInTag,

an  error raises

"The query specified in the URI is not valid. Could not find a property named 'ContactTag' on type 'Terrasoft.Configuration.OData.ContactInTag'."

Which is the correct entity name to expand ?

 

Like 0

Like

6 comments

Hello Stefano,

In the ContactInTag object, the reference to ContactTag is actually the property called Tag. I believe if you expand Tag, it should give you the ContactTag reference.

Ryan

Hello Stefano,



We've got the same result in our system as well. We are working on the solution to this issue.



Best Regards,

Tetiana Bakai

Ryan Farley,

Hi Ryan,

I tried you suggestion using $expand=Tag($select=name), but I receive this message "
An error has occurred."

Stefano Bassoli,

Hmm. I just tested that and I get the same error (also if I try to expand Entity). I wonder if it's because those are columns inherited from the BaseEntityInTag object (which is virtual)? I can expand CreatedBy fine on that object though. Not sure why the error occurs.

Hello Stefano,



For now you should use two select queries, because using the $expand clause with those columns would give you errors. We passed this problem to Core R&D team and got the information that there is some issue in Core logic that causes that thing, so they would fix it in the next versions.



Best Regards,

Tetiana Bakai

Tetiana Bakai,

thank you for your feedback

Show all comments
Studio_Creatio
7.17

Hi community,

 

I tried to install the Refresh Data Button for Creatio | Creatio Marketplace addon

The application is installed successfully, but the refresh  button doesn't appear in section and card.

The application does not appear in applications installed section

I check the application logs and everything seems fine

Like 0

Like

3 comments

Hello Stefano, 

 

I would suggest to double-check whether you have tested the functionality in the corresponding sections, as mentioned in the Addon notes: "buttons appear only in sections, cards and details with the registry inherited from the basic schemas (BaseSectionV2, BasePageV2 and BaseGridDetailV2 respectively)" and as an option if the installation was successful, try to clear cache and re-login to the system. 

 

If the issue still persists and even re-installing the addon doesn't help, please contact the addon's support team: creatioapps-support@anserem.com

 

Hope this helps!

Best regards, 

Anastasiia

Anastasiia Zhuravel,

Hi Anastasiia,

the problem appears in all standard section like accounts and contacts opportunities.

 

Stefano Bassoli,

 

In such case I would advise to perform recommendations provided above (to clear cache and re-login to the system and in case re-install the application)  and if the issue persists, contact the addon's support team. 

 

Should you have any further questions, please let us know!

 

Best regards, 

Anastasiia

Show all comments
#Printable
Studio_Creatio
7.17

Hi;

I generate printables for some entities

I now how to customize the name saving in entityFile table but is it the way to change dynamically name of word document downloaded from the print button



Regards



Tomek

Like 0

Like

3 comments

Hello Tomasz,

There is a marketplace add-on that does this if you're interested. See https://marketplace.creatio.com/app/custom-names-reports-creatio

Ryan

Ryan Farley,

Thank You

Hi Ryan,

 

The link you've provided seems to be unavailable. Could you please help in generating a customized name for printable.

 

Best Regards,

Sarika

Show all comments
Studio_Creatio
7.17

Hi community

When a user links a case or something else in the mini activity page is it possible to use the selection window instead of list selection ?

 

Like 0

Like

1 comments

Hi Stefano, 

 

Technically such implementation is not possible due to the out-of-the-box logic. 

 

Hopefully it won't bring you much inconvenience within working with the system. 

 

We already informed our Core R&D team in order to add such functionality in our next releases.

 

Thank you!

 

Regards, 

 

Bogdan L.

Show all comments

Hi Everyone 

 

I need that my custom detail works like the attachments, but i think,  i am doing something wrong

i 've configured the object like this

but it isn't enough

 

Anyone help me please

Like 0

Like

3 comments
Best reply

Hello Carlos, 

 

Please check the below article for the proper instructions on how to add the custom Attachments detail:

 

https://academy.creatio.com/docs/developer/elements_and_components/basi…

 

A few things to add:

You can change the parent object for the detail list schema (step 2 in the article) as shown on the below screenshot: 

 

Also, in case the changes are not reflected straight away once all the required steps from the instruction are done, generate a source code and compile a system. 

 

Hope this helps!

Best regards, 

Anastasiia

 

Hello Carlos, 

 

Please check the below article for the proper instructions on how to add the custom Attachments detail:

 

https://academy.creatio.com/docs/developer/elements_and_components/basi…

 

A few things to add:

You can change the parent object for the detail list schema (step 2 in the article) as shown on the below screenshot: 

 

Also, in case the changes are not reflected straight away once all the required steps from the instruction are done, generate a source code and compile a system. 

 

Hope this helps!

Best regards, 

Anastasiia

 

Thanks Anastasiia Zhuravel,

Now the interface works but  the list is not working propertly

 

 

it allow me create records, but when i refresh the page, i can't  see my records and the debugger show the error in the pic , but the records are persisted, i've  check it in the DataBase,

Any  idea what is the problem?

 

Carlos Alberto Arce Ortuño,

 

The error message indicates that there is an issue with a column: it is either incorrectly added to the schema page or is renamed/deleted. 

I would suggest to double-check the article and re-add the custom Attachments detail anew following the guidance so this way it will be properly added to the needed section. 



In case the issue still persists or occurs with your custom columns added to the detail afterwards, please approach us at support@creatio.com, so we will be able to check the configuration on the instance and find the root cause of the issue. 

 

Best regards, 

Anastasiia

Show all comments
lookup
Studio_Creatio
7.17

Hello Team! 

 

Which is the good practice for assign default values for a new record from lookup.

I have an Account lookup and a Contact lookup. I want to take the account selected as a default account once I'm creating a new contact.

Business Rules is applied but the account is not pulled to the contact.

 

Thanks!

 

Like 0

Like

1 comments

Hello Dmytro,

 

You can set up a default value for an 'Assignee' column of your object. However, the object should be in the Custom package. You will not be able to set a default value for the base objects. Apart from that, in this particular example, the case assignee will be the save for all the cases.



But we recommend you double-check the business rule. Please feel free to find the information about business rules in our Creatio Academy article. 



Best regards,

Bogdan. 

Show all comments
Studio_Creatio
7.17

What is the meaning/purpose of "Isread" field?

Can it help me filter unread messages? I need to make a dashboard of a list that show all the unread messages of current contact

Like 0

Like

1 comments

Hello Shira,

 

The boolean field “IsRead” on the ESNNotification object shows whether the message has been read and whether it needs to be read on the counter (the number on the CTI panel). 



Best regards,

Bogdan.

 

Show all comments