Dynamics NAVAX Refresh caller form[AX 2012]
2015-08-20 10:23
477 查看
Refresh caller form [AX 2012]
There are a few ways to refresh a caller form. You may notice in AX2012 sometimes calling research(true) causes the record to jump to the starting position.
The right way is to reread the references data sources before calling the research(true). Below is some sample code I use.
Code:
There are a few ways to refresh a caller form. You may notice in AX2012 sometimes calling research(true) causes the record to jump to the starting position.
The right way is to reread the references data sources before calling the research(true). Below is some sample code I use.
Code:
/// <summary> /// Refresh the caller form by calling the research(true) which does not work. /// research(True) alone will jump the cursor to the begining (either first or last) record. /// </summary> /// <remarks> /// Taken from form InventTableInventoryDimensionGroups.closeOk() /// </remarks> public void refreshCaller() { Common common; FormDataSource callingFormDataSource; common = element.args().record(); if (common) { callingFormDataSource = common.dataSource(); if (callingFormDataSource) { // Referenced datasources must be reread before calling research as data has been modified behind the scenes // without calling research will fail to position selection correctly callingFormDataSource.reread(); callingFormDataSource.rereadReferenceDataSources(); callingFormDataSource.research(true); } } }
相关文章推荐
- 学习 NAV PowerShell之部署Microsoft Dynamics NAV
- Dynamics GP report Note
- 开始漫谈:CRM 2015
- Dynamics AX 配置 SANA,录入SANA基础数据
- AX2012处理数据1--重命名主键
- 使用UIKit Dynamics创建动画效果
- 【iOS开发】UIKit Dynamics
- [iOS开发]TextKit之动态改变样式
- Microsoft Dynamics CRM 2013 Reporting Extensions 正式安装
- Microsoft Dynamics CRM 2013 的权限管理与分配 (一)
- Microsoft Dynamics CRM 2013 的权限管理与分配 (二)
- Microsoft Dynamics CRM 2013 server 升级 sp1 KB2963850
- Microsoft Dynamics CRM 2013 竞争对手 介绍
- Microsoft Dynamics CRM 2015 数据管理 之 如何批量导入数据到 正式区(一)
- Microsoft Dynamics CRM 2015 数据管理 之 如何批量导入数据到 正式区(二)系统自带示例数据 安装及教学
- DatacenterDynamics数据中心深圳站大会通知
- DatacenterDynamics数据中心深圳站大会通知
- Dynamics AX 20年简史
- Microsoft Dynamics CRM 2015 之 设定默认电话服务商 office 或者Lync 2013 或 skpye
- Microsoft Dynamics CRM 2013 联系人 介绍