web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

How to put a list panel in an extension form?

(0) ShareShare
ReportReport
Posted on by 2

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):

2642.pastedimage1598969636775v1.png

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

I have the same question (0)
  • nunomaia Profile Picture
    23 Moderator on at
    RE: How to put a list panel in an extension form?

    Check standard extension in class SimulationJournalGroupForm_ApplicationSuite_Extension  

  • Joao Almeida Profile Picture
    2 on at
    RE: How to put a list panel in an extension form?

    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!

  • Verified answer
    Sergei Minozhenko Profile Picture
    23,093 on at
    RE: How to put a list panel in an extension form?

    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.

  • Verified answer
    nunomaia Profile Picture
    23 Moderator on at
    RE: How to put a list panel in an extension form?

    SimulationJournalGroupForm_ApplicationSuite_Extension is supported on top of Initializing event, the same concept should work on  extensions. Take a look on it.

  • Joao Almeida Profile Picture
    2 on at
    RE: How to put a list panel in an extension form?

    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!

  • vinaytak Profile Picture
    371 on at
    RE: How to put a list panel in an extension form?

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 2,188

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 868 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 593 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans