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 :
Microsoft Dynamics AX (Archived)

Manage mandatory field in OuterJoined form datasource

(0) ShareShare
ReportReport
Posted on by

Hi,

Here is my requirement :

DataSourceA with fields A.recId, A.Name, A.DataSourceBRefRecId

DataSourceB with fields B.recId, B.Name, B.someData (Mandatory on table lvl)

DataSourceB OuterJoin DataSourceA.

A.DataSourceBRefRecId can be empty.

When I update record in DataSourceA with A.DataSourceBRefRecId empty(0 in database), I got the errorBox : B.someData is mandatory.

How to avoid this ? I have no more idea of what checking. (I dont want to disable mandatory property of tableB.someData).

I hope this is clear, if not, I will be there to provide more informations.

Thx

*This post is locked for comments

I have the same question (0)
  • Rustem Galiamov Profile Picture
    8,072 on at

    Hi Stephane M!

    Can you provide some screenshots of the form and form DS properties?

  • Community Member Profile Picture
    on at

    Here is some screenshots :

    DataSourceA properties

    6153.Capture2.PNG

    DataSourceB properties

    6153.Capture2.PNG

    A.BrefRecId

    4405.Capture3.PNG

    If you need something else, tell me :)

  • Rustem Galiamov Profile Picture
    8,072 on at

    You may override validateWrite() method on DataSourceB and return true instead of super() or write some logic to return true if super() return false.

  • Community Member Profile Picture
    on at

    1362.Capture5.PNG

    Not working :s

    Always 1362.Capture5.PNG

    (Translation :

    Field 'CustAccount' is mandatory

    Field 'CustGroup' is mandatory

    Field 'Currency' is mandatory)

  • Suggested answer
    Rustem Galiamov Profile Picture
    8,072 on at

    Hmm..I've tried to do the same and it works.

    Try to set breakpoint to the add() method of Info class and find the warning source.

  • Community Member Profile Picture
    on at

    Rustem Galiamov, Thank you a lot for the time you spend to help me.

    Unfortunately, I dont have much time to spend for this and after some discuss with my colleagues we decided to bypass the problem by using a Views. (and it works perfectly)

    Again thank you.

    PS: the problem is not really solved but do you want I "close" the thread ?

  • Rustem Galiamov Profile Picture
    8,072 on at

    If problem not solved then the question should not be marked as verified.

    Thanks.

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans