Skip to main content
Post a question

Notifications

Community site session details

Community site session details

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

How to put a list panel in an extension form?

Like (0) ShareShare
ReportReport
Posted on 1 Sep 2020 14:14:31 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

  • vinaytak Profile Picture
    371 on 22 Sep 2020 at 06:41:58
    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

  • Joao Almeida Profile Picture
    2 on 01 Sep 2020 at 16:33:52
    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!

  • Verified answer
    nunomaia Profile Picture
    11 Moderator on 01 Sep 2020 at 16:25:10
    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.

  • Verified answer
    Sergei Minozhenko Profile Picture
    23,091 on 01 Sep 2020 at 16:18:55
    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.

  • Joao Almeida Profile Picture
    2 on 01 Sep 2020 at 16:14:36
    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!

  • nunomaia Profile Picture
    11 Moderator on 01 Sep 2020 at 16:09:23
    RE: How to put a list panel in an extension form?

    Check standard extension in class SimulationJournalGroupForm_ApplicationSuite_Extension  

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,737 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,720 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans
Loading started
Loading complete