Sunday 26 June 2011

Getting Go to Main Table Form as it is existing in Standard Axapta

Hi ,

  If we want to get go to main Table .we need to  follow simple steps as follows:

Create a Menu Item  for the form and Attach Particular MenuItem as FormRef Property of Particular Table.

Eg:
Suppose if i want to display  FormA(Using TableA) as Go to Main Table in any other Form then i ll Create a Menu Item for FormA and i wll Attach this MenuItem as FormRef in TableA Property.

Regards
Santhosh Reddy
-It's kind of fun to do the impossible

Wednesday 15 June 2011

Getting the Name of logged In User Name and his Email

Hi All
      We can  get the Logged In User in Axapta Using the Function curUserId().Information which is relevant to the Particular User will be stored in SysUserInfo and  UserInfo Table.Now we can get the Email Id and Full Name of the Current Logged in User by doing as Follows:

  select Email from SysUserInfo where SysUserInfo.Id == curUserId();  //For getting Email Id

  select Name from UserInfo where UserInfo.id == curUserId(); //For getting Name
 
Then, we can print out his details Using
               
  Info(“Email: “ + SysUserInfo.Email); Info(“Name: “ + UserInfo.Name); 

Thanks&Regards
Santhosh Reddy
 -It's kind of fun to do the impossible