Get record from table on the basis of field id in Microsoft dynamics axapta x++


How to Get record from table on the basis of field id in dynamics axapta x++. just try following code in job to understand better way.

   emplTable  emplTable;  
   FieldId   fieldId;  
   ;  
   fieldId = fieldNum(emplTable, Emplid);  
   select emplTable;  
   info(emplTable.(fieldId));  
   select emplTable  
     where emplTable.(fieldId) == '1101';  
   info(emplTable.Name);  

Resolved: Dynamics AX 2012 R3 client crashes Issue

I was facing below issue 
Dynamics AX 2012 R3 client crashes after opening suddenly AX client session get crashes. There is no event log to find out what exactly is the issue. 

Solution:

I applied below steps.

1. I Deleted AUC files in user profile.

C:\Users\user1\AppData\Local

2. Reset the usage data from menu.
Click File > Tools > Options. In the Options form, click Usage data then reset button press click yes..

3. To delete all user usage data  Go to 

AOT-->SystemDocumentation-->Tables-->SysLastValue.

Delete all records.

After then Ax client work fine.