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.

  • PB-27051451-0 Profile Picture
    20 on at
    RE: Table datasource not editable when joined to a view in a form

    Ok thank you for your help.

  • Suggested answer
    Martin Dráb Profile Picture
    233,334 Most Valuable Professional on at
    RE: Table datasource not editable when joined to a view in a form

    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?

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

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

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 225

#2
Martin Dráb Profile Picture

Martin Dráb 174 Most Valuable Professional

#3
Adis Profile Picture

Adis 132 Super User 2025 Season 1

Overall leaderboard

Product updates

Dynamics 365 release plans