Share via


InventTableButtonManager.setDatasources Method [AX 2012]

Sets the data sources that are to be used in the rule computation process.

Syntax

public void setDatasources(
    Common datasources1, 
   [Common datasources2, 
    Common datasources3, 
    Common datasources4, 
    Common datasources5])

Run On

Called

Parameters

  • datasources1
    Type: Common Table
    A Common table buffer that belongs to the 1st data source instance.
  • datasources2
    Type: Common Table
    A Common table buffer that belongs to the 2nd data source instance; optional.
  • datasources3
    Type: Common Table
    A Common table buffer that belongs to the 3rd data source instance; optional.
  • datasources4
    Type: Common Table
    A Common table buffer that belongs to the 4th data source instance; optional.
  • datasources5
    Type: Common Table
    A Common table buffer that belongs to the 5th data source instance; optional.

Remarks

Up to 5 data sources can be passed. If the implementation requires more data sources, additional custom methods should be implemented on the rule implementer class.

The method is called by the FormButtonManager on the rule class that implements the ButtonStateProvider interface.

See Also

Reference

InventTableButtonManager Class