Dynamics Ax 2009
摘要: 1 通过分组实现distinct select ItemType,GoodsName from tableA order by ItemType,GoodsName group by ItemType,GoodsName where tableA.ItemType == '传入的值'; 采用上述SQL就可得到distict后的值,如果要取出数据后再进行distinct可以采用2中介绍的Set类;2 数组集合 注意: 1 List、Map、Struct、Array提供了可序列化的pack和unpack功能,可以减少RPC次数,提高速度; 2 如果设置了key的类型,存入不同类..阅读全文
摘要: *设字段类似的表tableA: ItemType GoodsNametableB: ItemType GoodsName Size如果先完成了对tableA的增删改界面frmTableA,我们可能用"重复"的方法得到相同的界面frmTableB,在此基础上修改更加快速.但是需要注意的是,如果把DataSource里面tableA的Name直接修改为tableB界面上所有控件的字段绑定将不再正确,需要重新调整;正确的做法是:修改DataSource里面tableA的Table属性为tableB,再修改Name属性。阅读全文
摘要: Ax中多表关联仅提供Inner Join/Outer Join/Exist join/Not Exist join,而么有union,可以通过Query来实现.例如Sql:select ItemType,GoodsName from table1 where TransDate between g_DateB and g_DateEunion select ItemType,GoodsName from table2 where TransDate between g_DateB and g_DateE1 实现[ from table1 ] qbd = query.addDataSource(阅读全文

