zoukankan      html  css  js  c++  java
  • By TableId and RecId extract data table records

    In many cases, we will need to TableId and RecId to directly access the data table records. For example, in Dynamics AX time to achieve full-text search, a reasonable design is to allow full-text search to return RecId, and then built based on different data tables TableId instance, the final return of RecId based access to data table records, so the results displayed to the user .

    The code is as follows:

    static void Jimmy_dataFromTableIdAndRecId(Args _args)  
    {  
    
         RecId           recId       = 5637144576;  
         TableId         tableId     = 77; // CustTable  
         Common          common;  
         SysDictTable    dictTable;  
         CustTable       custTable;  
    ; 
         dictTable 	= new SysDictTable(tableId);  
         common 	= dictTable.makeRecord();       
         select firstonly common  
                    where common.RecId == recId;                     
    
         // Here we got a CustTable record  
         // whose RecId is 5637144576          
    
         custTable = common; // Assign to CustTable  
         info(custTable.Address);  
    } 
    
    

     

  • 相关阅读:
    软件测试课堂练习
    JSP第一次作业
    安卓第六次作业
    安卓第五次作业
    第四次安卓作业
    JSP第四周
    软件测试课堂练习3.4
    Android数据库表
    Android购物菜单
    Android增删改查
  • 原文地址:https://www.cnblogs.com/Fandyx/p/1823915.html
Copyright © 2011-2022 走看看