//Get Caller Form name and caller name in AX Table method ax 2012
FormDataSource fds;
FormName fn;
FormRun caller;
if (this.isFormDataSource())
{
fds = this.dataSource() as FormDataSource;
if (fds)
{
fn = fds.formRun().name();
caller = fds.formRun().args().caller();
if(caller.args().name() == formStr(<Form Name>))
{
//logic
}
}
}
FormDataSource fds;
FormName fn;
FormRun caller;
if (this.isFormDataSource())
{
fds = this.dataSource() as FormDataSource;
if (fds)
{
fn = fds.formRun().name();
caller = fds.formRun().args().caller();
if(caller.args().name() == formStr(<Form Name>))
{
//logic
}
}
}
In which Table method we should use this code?
ReplyDeleteAny table method. I have checked in ModifiedField emthod
ReplyDelete