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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

New FormDataSource in SalesTable: Values Only Show After Refresh

(3) ShareShare
ReportReport
Posted on by 60

Hi everyone,

I’ve added a new FormDataSource to the SalesTable form extension. This new FormDataSource represents the InventTable because I need to display the nameAlias for a given ItemId.

The field shows up in the grid of the sales line, but the values only appear after I manually refresh the form.

I believe the issue might be that I either need to trigger a manual refresh somewhere, but I’m not sure where, or I need to set certain properties in the FormDataSource extension. I’ve also noticed that on forms where the JoinSource points to the first listed FormDataSource, I don’t encounter this problem. I cannot use a display method because I also need to filter on this field.

Has anyone encountered a similar issue or know how to ensure the values display correctly?

 

Please find my image showing the Properties of the new created Fds:

 
 
Categories:
I have the same question (0)
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    301,194 Super User 2025 Season 2 on at
    Hi Marvin,
     
    You can try to set the property Delay active to No and/or set the Link Type to InnerJoin.
    Besides as the InventTable has a lot of fields, I would recommend to set the value of Only Fetch Active to Yes. This will then only query the active fields used on the form which will be better for performance compared to querying all fields of the InventTable.
  • Marvin Richter Profile Picture
    60 on at

    Hi André,

    I tried your changes, but unfortunately, it’s still not working. The field is still only populated after a refresh.

    Your performance tip was very helpful, and I’ll definitely keep it! Do you have any other suggestions to make it work?

    Thanks for your help!

  • Verified answer
    Marvin Richter Profile Picture
    60 on at

    I was able to solve my problem by calling executeQuery() on the Form Data Source Extension of my join source. In this case, it was SalesLine. I implemented this in the write or validateWrite method, ensuring that the data refreshed properly after changes to SalesLine.

    Executing it in itemIdModified() could also work. Calling executeQuery() will rerun the query and update, add, or delete rows in the grid as needed.

    Here is a simplified example:
    [ExtensionOf(formDataSourceStr(SalesTable, SalesLine))]
    internal final class SalesTable_SalesLineMyFds_Extension
    { 
     boolean validateWrite()
     {
         var ret = next validateWrite();
         this.executeQuery();
         return ret;
     }
    }
     

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…

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
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 420 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 241 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans