Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

DataSource Records not saved while moving to next records

Posted on by 40

Hi All. 

In the release product variant form, I have added a new enum as highlighted below.   this is properly added in the table and also in the form. but when i move to the next record from the grid it does not save this new enum added value to the datasource but all the other field get saved.  The strange is that when i change something in the Item Sales Tax Group field  then it save my enum also.  :) 

5684.jpg

  • Suggested answer
    AxaptaAmarSingh Profile Picture
    AxaptaAmarSingh 40 on at
    RE: DataSource Records not saved while moving to next records

    Hii All, 

    It is actually a bug from Microsoft :) ...  We need to write the below code in the field modified evet of a datasource and it works then 

    6005327.Image1.png

  • ToddB Profile Picture
    ToddB on at
    RE: DataSource Records not saved while moving to next records

    Hi Amar,

    Were you able to debug this to determine the cause?

  • AxaptaAmarSingh Profile Picture
    AxaptaAmarSingh 40 on at
    RE: DataSource Records not saved while moving to next records

    Hi Nikolaos,

    Thanks for the reply, yes you are correct, it does link with the datasource and datafield.  but it still not saving that particular field as we know that it save the while record and not the individual field.  

    The Strange thing is that when i change some in another customized field , then it does save this enum field also. but when i change only in this enum then it does not save the value..  Thanks 

    175276.jpg

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: DataSource Records not saved while moving to next records

    Is this enum in the same table than all the other fields on the form? And is the field pointing directly to that field (via properties "Data source" and "Data field")? If yes, then it should be saved just like all the other fields, because the system saves the whole record (not individual fields) when you move to next record.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans