Enterprise portal common methods in ax

Below code will help to get the value of the field from enterprise portal

we can retrive the value from Grid / group / form using below code

DataSetViewRow row = CurrentRow;
string accountnum= string.Empty;
if (row != null)
{
accountnum= (string)row.GetFieldValue(“custTrans!AcountNum”);
}