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, ...
Suggested Answer

Table datasource not editable when joined to a view in a form

(0) ShareShare
ReportReport
Posted on by 20

Hi,

I have a form with a grid that has a datasource based on a view.

The primary datasource (the view I mentrioned) is based on the SalesLine and exposes the RecId of each sales line.

Now I need to add a table datasource to the grid.

The table can be related to the view via SalesLine.RecId.

The main idea is to allow the user to edit a field inside the new table joined to the view.

I've added the secondary datasource to the form setting the view as JoinSource and Link Type "outer join".

Than I've created a link between the two datasources using addLink:

QueryBuildDataSource qbd = fds.queryBuildDataSource();
        qbd.clearLinks();
        qbd.joinMode(JoinMode::OuterJoin);
        qbd.addLink(fieldNum(TheFormView, SalesLineRecId), fieldNum(SalesLineExtended, RecId));
    

The grid is displaying correctly the data and the two datasources seems to be joined but when I click on "Edit" on the field I want to edit of the secondary datasource (based on the table) is not editable.

No error raised from the form.

I've set AllowEdit to true on the datasource of the form and the underlaying table.

Is is possible to edit field of a table datasource joined to a view? Is it the wrong way to achieve this?

Thank You in advance for your help.

I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at

    It makes sense to me that it's not allowed.

    What about adding an editable data source through a delayed link and editing the field outside of the grid?

  • PB-27051451-0 Profile Picture
    20 on at

    Ok thank you for your help.

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
Martin Dráb Profile Picture

Martin Dráb 503 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 278 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans