Hi community,

 

I have followed this article explaining how to set up hints in fields for pre-defined sections : https://academy.creatio.com/docs/developer/interface_elements/record_pa…

 

However, I have implemented a custom detail which inherits from the "BaseFieldsDetail" Client module. The question here is : 

 

How can I know what is the name of the parentName value to add a hint button ?

 

Let me know !

 

Best regards,

Jonathan

Like 0

Like

7 comments

Hi Jonathan,

 

Using this article you will be able to set the hint for the button. Please clarify for which button in the detail do you need to set the hint? If this is a "Save" button on the opened detail record page then the code will be similar to the one in the article. Or do you want a hint to the custom button added near the "+" sign of the detail. In this case there is a hint on the three dots sign that opens the detail actions menu (where "Export to excel" or "Select multiple records" options are available) and this button also has a hint that is specified in the BaseGridDetailV2 of the Nui package:

{
				"operation": "insert",
				"parentName": "Detail",
				"propertyName": "tools",
				"name": "ToolsButton",
				"values": {
					"generateId": false,
					"itemType": Terrasoft.ViewItemType.BUTTON,
					"imageConfig": {"bindTo": "Resources.Images.ToolsButtonImage"},
					"style": Terrasoft.controls.ButtonEnums.style.TRANSPARENT,
					"hint": {"bindTo": "Resources.Strings.ToolsButtonHint"},

 

 

Best regards,

Oscar

Oscar Dylan,

 

First of all, thanks for your answer.

 

My custom detail is the following one :

 

 

All these fields are doing automatic calculations. I would love to have a tooltip (the green arrow which activates when we mouse hover the label) for all the fields. (one different tooltip for all the fields).

 

What is the code snippet needed to achieve this ? I have followed the academy article, although they always do example for OOTB features and the parentname are always the same (LeftConatiner, ProfileContainer, GeneralInfoBlock, etc.). How can I find the correct parentname of my custom detail ?

 

Many thanks,

Jonathan

Jonathan Quendoz,

 

Oh, this is a custom fields group and fields in it. Tips to columns there can be added using the following construction:

"tip": {
								"content": {"bindTo": "Resources.Strings.STRINGe0d1c4a7Tip"}
							},

and adding a localizable string for the STRINGe0d1c4a7Tip string. As a result there will be a tip added to the column in the fields group:

In this particular case the code was:

{
				"operation": "insert",
				"name": "STRINGe0d1c4a7-75ff-4f3a-9e4b-efaf5ca75c01",
				"values": {
					"layout": {
						"colSpan": 12,
						"rowSpan": 1,
						"column": 0,
						"row": 0,
						"layoutName": "DetailToSortTabLabelGridLayout808a23e5"
					},
					"tip": {
								"content": {"bindTo": "Resources.Strings.STRINGe0d1c4a7Tip"}
							},
					"bindTo": "UsrForTipCheck",
					"enabled": true
				},
				"parentName": "DetailToSortTabLabelGridLayout808a23e5",
				"propertyName": "items",
				"index": 0
			},

Best regards,

Oscar

Oscar Dylan,

 

I have a few questions on the code snippet above :

 

the Name "STRINGe0d1c4a7-75ff-4f3a-9e4b-efaf5ca75c01" is the Code Name of the field under the custom detail right ?

 

Where did you find the "layoutName" and the "parentName" called "DetailToSortTabLabelGridLayout808a23e5" in your example ?

 

My code snippet was quite right but I was using "DeatilFieldsContainer" as parentName. How did you know which name has to be used for the "parentName" ?

 

Many thanks for the help provided ba the way :) appreciate it.

 

Best regards,

Jonathan

Jonathan Quendoz,

 

You can add the hints to the fields by OOB tools in the section wizard as follows:

 

Regards,

Sourav

Sourav Kumar Samal,

 

I need to implement tooltips on a custom detail which is not created from the section wizard but has a custom logic (with specific calculations based on conditions). Doing it this way, I do not have access to the UI section wizard to simply add a tooltip from the section wizard.

 

Regards,

Jonathan

Oscar Dylan,

 

Do you have any news on my answer ?  I really only need how to find the parentName of my custom detail to make this work...

Show all comments