Notifications
Announcements
I have the below working
Clear(colPTStd); If( FormNDT.Mode <> FormMode.New, Collect( colPTStd, galNDT.Selected.'PT Std' ) )
I need to add additional collections to both clear and collect. Same gallery and same form but how could I add additional collections?
Hi @ScablandsKing
You would just need to add in more Clear(collection) and Collect(item(s)). You also have the function ClearCollect which clears the collection and then collects the data
-------------------------------------------------------------------If my reply helped you, please give a 👍 If it solved your issue, please give a 👍 & accept it as the Solution to help other community members find it.
Clear(colPTStd); Clear(colMTStd); If( FormNDT.Mode <> FormMode.New, Collect( colPTStd, galNDT.Selected.'PT Std' ) ); If( FormNDT.Mode <> FormMode.New, Collect( colMTStd, galNDT.Selected.'MT Std' ) );
Is there a more organized way to do it than this?
You can do multiple actions within the If, see below. Each action is separated with a ';'
Clear(colPTStd); Clear(colMTStd); If( FormNDT.Mode <> FormMode.New, Collect( colPTStd, galNDT.Selected.'PT Std' ); Collect( colMTStd, galNDT.Selected.'MT Std' ) );
@realwillwright Thank you!
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 796 Most Valuable Professional
Michael E. Gernaey 327 Super User 2025 Season 2
Power Platform 1919 268