valvore92
valvore92

Reputation: 317

DirPartyTable in form's datasource in AX

I've added datasource DirPartyTable to form with LinkType OuterJoin. Is it possible to unenabled create record method in this datasource?

public void create(boolean _append = false)
{
  //  super(_append);
}

Commenting line is not working.

When I clicked button New in the form. The record is trying to be created in DirPartyTable:

Upvotes: 1

Views: 1157

Answers (1)

rjv
rjv

Reputation: 1090

I'm going to go out on a limb here and assume that you are trying to have read-only information from a formdatasource linked to a primary formdatasource with via outer join. Also I assume that when you create new records for the primary data source (such as clicking the new+ button on the form as one example) you don't want it to create dirpartytable records as well.

If these assumptions are correct, try changing the properties of the dirpartytable formdatasource:

  • Allow Create: No
  • Allow Delete: No
  • Allow Edit: No

Upvotes: 2

Related Questions