Hi All,
I have a use case to display a field containing values updating dynamically by querying the data from another table. And display the data in the calendar section page container similar to setup up the summary calculation.
Similar to the below image which shows total number of products and total cost in order page.
I need to implement this functionality in the calendar section page by calculating the value from another table (say, any integer field in Contact section).
How to implement this functionality?
Regards,
Adharsh S
Like
Hello Adharsh,
You need to add label control element to "SeparateModeActionButtonsRightContainer" container in ActivitySectionV2 and define logic to calculate its value.
Best regards,
Bogdan S.
Bogdan Spasibov,
When I tried with "SeparateModeActionButtonsRightContainer" .
Since I have more buttons in that container, it getting overflowed. I need to create this label near the Tag in the filterContainer. When I tried to add in the "FiltersContainer". Its getting hidden as shown below. Can you help me with it, by showing the label in the filtercontainer?
Hi Adharsh,
It seems that your issue is that you are trying to occupy the space already reserved for the out-of-the-box filter module, so your fields are pushed out of its container. Please read my message here about this block:
https://community.creatio.com/questions/fixed-filter-blocking-multiple-…
You can use the same strategy, but, as I've mentioned in my message, Creatio R&D team highly disrecommend our clients affecting this part of the system somehow.
Instead, you can easily set your fields under the filter container. Here is the code example of how you can do it:
define("ActivitySectionV2", [], function() { return { entitySchemaName: "Activity", messages: {}, attributes: { "MyField1": { dataValueType: Terrasoft.DataValueType.TEXT, type: Terrasoft.ViewModelColumnType.VIRTUAL_COLUMN, value: "MyField1Value" }, "MyField2": { dataValueType: Terrasoft.DataValueType.TEXT, type: Terrasoft.ViewModelColumnType.VIRTUAL_COLUMN, value: "MyField2Value" } }, methods: {}, diff: [{ "operation": "insert", "parentName": "FiltersContainer", "propertyName": "items", "name": "MyContainer", "values": { "itemType": Terrasoft.ViewItemType.CONTAINER, "id": "MyContainer", "wrapClass": ["filter-inner-container", "custom-filter-button-container"], "items": [{ "name": "MyField1", "bindTo": "MyField1", "caption": "MyCaption1" }, { "name": "MyField2", "bindTo": "MyField2", "caption": "MyCaption2" } ] } }] }; });
Regards,
Anastasiia