Announcements
I'm trying to put a list panel on the VendParameters form. For this, I created a new Group on the form, then implemented the SysListPanel before the init method of the form.
This works for all the examples of list panels I could find on the system. The issue is that the FormGroupControl I'm trying to add the list panel is my extension, this means before the init() method my control is not defined yet and I cannot pass the controlId to the SysListPanel class. The SysListPanel class only works before the init method , so I have to call it here, but my since my form control is on the extension form, I cannot use it.
What happens is that the controlId is 0 and the list panel gets added like this on the form (instead of inside my custom Group control):
Anyone has a workaround for this? For example, could I force the group form control to be defined at the same time as the other controls?
Thank you
Hi Joao Could you please help me i have the similar Requirement how to achieve this.. please share the code if you have or the steps that make me to achieve this requirement
Thanks Nuno and Sergei, I just tried the initializing event and it works indeed.
Meanwhile I found another way of doing it. I used the ListView form pattern (docs.microsoft.com/.../list-panel-subpattern) and filled the list view with a while select statement, added logic to the add and remove buttons and got the behavior I wanted. I did it based on this link: https://community.dynamics.com/365/financeandoperations/b/axaptavsme/posts/list-view-control-in-dynamics-ax
Thank you!
SimulationJournalGroupForm_ApplicationSuite_Extension is supported on top of Initializing event, the same concept should work on extensions. Take a look on it.
Hi Joao,
"Initializing" form event is also working for controls to be used with List panel added via extensions.
The only point that you need to create Extension class to add SysListPanelRelationTableCallback variable, but initialization for that variable should be done via "Initializing" event.
Hi Nuno,
Unfortunately, that's also not a good example because the Group control that they add the List Panel is already there in the standard form and is not a group that was added through extension.
Thanks anyway!
Check standard extension in class SimulationJournalGroupForm_ApplicationSuite_Extension
André Arnaud de Cal...
293,737
Super User 2025 Season 1
Martin Dráb
232,720
Most Valuable Professional
nmaenpaa
101,158
Moderator