Hi, 

 

I added a Check Menu Item on the Actions menu to one of my sections and it works fine, but I have not been able to set the Checked default value base of an attribute set on the init function.

 

This is what I have:

actionMenuItems.addItem(this.getButtonMenuItem({

                    "Type": "Terrasoft.controls.CheckMenuItem",

                    "Caption": { bindTo: "Resources.Strings.OpenImagesAutomaticallyFromInitialEntryCaption" },

                    "Click": { bindTo: "setOpenImagesAutomaticallyFromInitialEntry" },

                    "Checked": { bindTo: "OpenImagesAutomaticallyFromInitialEntrySetting" }

                }));

but when I go to the menu item, the menu is always unchecked regardless of the value of the boolean attribute OpenImagesAutomaticallyFromInitialEntrySetting. 

 

Any help on how to accomplish that would be greatly appreciated.

 

Thanks,

Jose

 

Like 0

Like

2 comments

Hello Jose, 

 

Please check my last answer on this post: 

 

https://community.creatio.com/questions/how-make-radio-button-mandatory…

 

Here I explained how to use attribute "Checked" correctly. Although there is a post regarding radio button, however the required logic for "Checked" attribute will be the same. 

 

Best Regards, 

 

Bogdan L.

Bogdan Lesyk,

Thanks Bogdan. I will try that.

Show all comments



Hello Community! There is any way to get the cached syssettings in Mobile?

Equivalent to Terrasoft.SysSettings.cachedSettings in Web

Like 0

Like

3 comments

Dear Federico,



You can check Terrasoft.SysSettings in which you can see all stored information from the manifest

 

 

Best Regards,

Ivanna Yatsura.

Ivanna Yatsura,

 Yes I checked but Can't see the cached syssettings there. I dont know from where are coming those system settings.

Federico Buffa ,

 

Unfortunately, it is the only option here.



Best Regards,

Ivanna Yatsura.

Show all comments

Hi community

is it possible to change the background color of a single cell on a detail conditionally ?

Like 0

Like

3 comments

Hello Stefano, 



Feel free to refer to this answer on out community: 

https://community.creatio.com/questions/how-add-custom-style-control-pa…



You'll need to implement such method in the detail page schema, and

change background color in your CSS module. 



Best Regards,

Yurii

Hi Yuril

thank you for you suggestion.

I know the suggested articles.

I need to change the background color of a cell in the detail grid based on the value of some fields of the detail row, but I don't know how to get it.

Stefano Bassoli,

You can conditionally style a list row based on conditions in the data, however, the list/grid in Creatio doesn't support adding style to specific cells. To style a list row based on conditions in the data of that row, refer to this article 

https://customerfx.com/article/styling-section-list-rows-based-on-condi…

Ryan

Show all comments

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

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

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

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

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

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