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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Multi select on form tree control

(2) ShareShare
ReportReport
Posted on by 252
Hi All,
Does the Form Tree Control support the multi-select option?
 
We noticed that there is a 'Single select' property at the control level, which we have set to 'No'. After this change, we are able to multi-select records using Ctrl + Click. Additionally, when using treecontrol.getSelectedCount(), it correctly returns the number of selected records.
 
However, when iterating through the selected records, the loop executes only once instead of iterating through all selected records. Below is the code snippet we are using:
 
TreeItemIdx idx = treecontrol.getFirstSelected();
while (idx)
{
    idx = treecontrol.getNextSelected(idx);   ---- (This step always returns idx as '0')
}
 
We also observed similar behaviour in the Costing Sheet form (Cost Management → Indirect Cost Accounting Policies Setup → Costing Sheets). The standard logic appears to allow multi-selecting tree nodes and deleting them, but in the UI, only the first selected record gets deleted.
 
Could someone please clarify if this is a known limitation in Tree Control, or if there are any additional configurations or workarounds available to fully support multi-selection?
I have the same question (0)
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    26,495 Super User 2025 Season 2 on at
     
    I think you need to set singleselection to false.
     
    Also assuming auto declaration property of the control is set to yes.
    void init()
    {
        treecontrol.singleSelection(false);
    }
    Best regards,
    Mohamed Amine MAHMOUDI
  • Layan Jwei Profile Picture
    8,133 Super User 2025 Season 2 on at
  • Suren_G Profile Picture
    252 on at
     
    Thanks for your response! 
     
    The 'Single Select' property is already set to false at the control level, and I'm able to multi-select the records in the UI. However, the logic is not looping as expected.
  • Suren_G Profile Picture
    252 on at
     
    Thanks for your response!
     
    I have gone through the link. We are not enabling the checkbox for the tree control at the property level, as we are concerned that using it as a multi-select option might break the parent-child relationship.

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

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

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

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 678 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

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

#3
Martin Dráb Profile Picture

Martin Dráb 283 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans