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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

can fields be added on form dynamically on basis of records present in lookup field?

(0) ShareShare
ReportReport
Posted on by 226
////
Hi everyone,
i have a scenario, this is  an inquiry form which is working on basis of parameter values, first parameter is working fine but i have to develop a functionality on second parameter on basis of /blank or given / value in parameter (Warehouse). 
for example if my warehouse parameter is showing values in lookup (as it is showing six warehouses) if i pass blank value in parameter the number of warehouses should be added in grid (as per present scenario six fields should be added to grid dynamically) and only one field should be added into grid when a specific warehouse is selected.
 
is it possible? Experts i need your guidance. 
I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    238,850 Most Valuable Professional on at
    Well, many of things are possible with enough effort, but it doesn't sounds like a good idea to me. It would be difficult, it would conflict with F&O UX guidelines and it could have negative impact on performance. If you want to display a value for each warehouse, why don't you create a separate grid with warehouses related to the selected record? It'll be easy ti to do, it'll support any number of warehouses, it'll allow filtering and sorting, it's the design users are used to from the rest of F&O...

    (Moved from Dynamics AX forum.)
  • JJDunaid Profile Picture
    226 on at
    Yes Martin,
    I got your point , I found another option to  do it with the "the Matrix control in a report".
    it is way more easier.
  • Martin Dráb Profile Picture
    238,850 Most Valuable Professional on at
    Sure, a matrix control is a good way to visualize the data, if doing it in the form is not required.
  • Navneeth Nagrajan Profile Picture
    2,516 Super User 2026 Season 1 on at
    Hi,
    The above mentioned scenario is possible based on the parameters mentioned in the Lookup, however, adding multiple lookup parameters isn't a recommended approach as it will also impact the performance on the system. The suggestion is to add a display method for the fields to be visible based on the warehouses being selected in the lookup. This would be a recommended approach.
    For example, when you pass blank value in parameters, the number of warehouses to be added should be a display field and you can add this code to the modified event handler of the lookup. 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 527 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 473

#3
Adis Profile Picture

Adis 284 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans