Question
Implement custom template detail like installment plan detail
11:28 Nov 28, 2022
Hi community,
I want to implement the similar functionality in my custom package with custom detail.
How to populate those templates marked in the circle.
Thanks in advance.
Like
1 comments
17:36 Nov 29, 2022
Hello,
The logic of this list creation is located in the "SupplyPaymentDetailV2" module in the "initItemTemplates" method that is triggered by the "init" method in the same "SupplyPaymentDetailV2" module. This formed list of templates is than connected to the "AddTypedRecordButton" button in the "controlConfig" property:
{ "operation": "merge", "name": "AddTypedRecordButton", "values": { "caption": "", "click": {"bindTo": "onAddButtonClick"}, "controlConfig": {"menu": {"items": {"bindTo": "ItemTemplates"}}} } },
So the logic of populating the list of templates is located in the "initItemTemplates" method that should be debugged further.
Show all comments