How to activate another button using click event of certain button in MS Dynamics AX?

StackOverflow https://stackoverflow.com/questions/21455689

  •  05-10-2022
  •  | 
  •  

Вопрос

I'm creating a new form in Axapta. How can I make a Show-->Line View to be activated by clicking on New--> Item? Should I do this by X++ override methods or it is possible not to use code?

Это было полезно?

Решение

I think it can only be done with code. Override your datasource's create() method and then call the button clicked() method. Note that to call directly the button's Auto declaration propery need to be set to Yes.

For instance in a SalesTable form you could overwrite SalesTable.create() method :

void  create(boolean  append = true)
{
    SalesTable   newSalesTable;

    EditDetailsButton.clicked();

    // rest code goes here

}
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top