简体   繁体   English

AX2012-ListPageGrid不更新

[英]AX2012 - ListPageGrid does not update

I'm having a lot of trouble adding another field to a ListPageGrid in one of my Microsoft Dynamics AX 2012 - R3 environments. 我在将Microsoft Dynamics AX 2012-R3环境之一添加到ListPageGrid的另一个字段时遇到很多麻烦。

For some background information, I have 4 different environments which I'm trying to do this on. 有关一些背景信息,我尝试使用4种不同的环境。 2 successful, 2 unsuccessful. 2个成功,2个失败。 Environments are like so: 环境就像这样:

Environment A: MS AX 2012 R3 - Demo Data. 环境A:MS AX 2012 R3-演示数据。 I follow the steps below and can successfully add a new field to the ListPageGrid or swap the order of them. 我按照以下步骤操作,可以成功地将新字段添加到ListPageGrid或交换它们的顺序。

Environment B: MS AX 2012 R3 - Client Data #1 . 环境B:MS AX 2012 R3-客户端数据#1 I follow the exact same steps here and am not able to see any changes. 我在这里执行完全相同的步骤,看不到任何更改。

Environment C: MS AX 2012 R3 - Client Data #1 - Copy. 环境C:MS AX 2012 R3-客户端数据#1-复制。 This environment is essentially a clone of environment B, it has very similar data. 此环境本质上是环境B的克隆,它具有非常相似的数据。 I'm not able to see changes here either. 我也无法在此处看到更改。

Environment D: MS AX 2012 - Client Data #2 . 环境D:MS AX 2012-客户端数据#2 This is not an R3 environment, and contains data that is different from environment C and B. 这不是R3环境,并且包含与环境C和B不同的数据。

Now, here are the steps that I follow to make the changes: 现在,按照以下步骤进行更改:

  1. Open the form (in my case, ReqTransPoListPage ) 打开表单(在我的情况下为ReqTransPoListPage
  2. Designs -> Design -> [Grid:ListPageGrid] 设计->设计-> [Grid:ListPageGrid]
  3. I would then open the datasource attached to the grid in a new window (in my case, RecPO ) 然后,我将在新窗口中打开附加到网格的数据源(在我的情况下为RecPO
  4. Drag the field from the window to the list of current fields 将字段从窗口拖动到当前字段列表
  5. Save/Compile the form 保存/编译表格

In environments A and D this is successful, in environments B and C this is not. 在环境A和D中,这是成功的;在环境B和C中,这不是成功的。 I have also tried just simply re-arranging the order of currently existing fields in the grid, and again same results in the same environments. 我还尝试过简单地重新排列网格中现有字段的顺序,并在相同环境中再次获得相同的结果。

When I successfully add a new field in environments A and D, I'm able to see them right away and when I right click -> personalize, I can see the new field I have added. 在环境A和D中成功添加新字段后,我可以立即看到它们,而当我右键单击->个性化时,我可以看到添加的新字段。 In environments C and D, I cannot. 在环境C和D中,我不能。 It just sits there under the grid without being visible anywhere else. 它只是坐在网格下面,在其他任何地方都不可见。 I can scramble the order of the fields too and that has no effect on the form. 我也可以打乱字段的顺序,这对表单没有影响。

To confirm that I am in fact looking at the right form, I took one of the currently existing fields and gave it a label. 为了确认我实际上是在寻找正确的表格,我选择了一个当前存在的字段并给它加上了标签。 To my surprise, this worked. 令我惊讶的是,它奏效了。 I can give currently existing fields a label, but I cannot swap the order, add anything new, or delete them. 我可以给当前存在的字段加上标签,但是不能交换订单,添加任何新内容或删除它们。

Seeing this pattern, one can conclude that it's some kind of configuration in my environments B and C, since they are very very similar. 看到这种模式,可以得出结论,这是我的环境B和C中的某种配置,因为它们非常相似。

Does anyone have any ideas as to why I cannot make these changes or what I should be checking to see if it's misconfigured? 是否有人对我为什么不能进行这些更改有任何想法,或者我应该检查哪些内容是否配置错误? I've honestly spent almost a full day on this and it's getting really frustrating. 老实说,我已经花了整整一整天的时间,这真令人沮丧。

Any help would be greatly appreciated. 任何帮助将不胜感激。 Thanks in advance! 提前致谢!

(I can look up and provide any further information if necessary. I've checked the data source of the grid, the query associated with it, etc) (我可以查找并在必要时提供任何进一步的信息。我已经检查了网格的数据源,与之关联的查询等)

Try closing all forms and refreshing your usage data. 尝试关闭所有表单并刷新您的使用情况数据。

In your dev environment, go to: Tools>Options>Usage data(button) and click the "Reset" button. 在您的开发环境中,转到:工具>选项>使用数据(按钮),然后单击“重置”按钮。 This will clear all of your saved selections/queries/personalizations/etc. 这将清除所有已保存的选择/查询/个性化设置/等。 but I'm assuming this will solve your random form visibility issue. 但我假设这将解决您的随机表单可见性问题。

You could also find the form in the "form setup" tab and delete that if you want to be a little bit more surgical. 您还可以在“表单设置”标签中找到该表单,然后删除该表单,以进行更多外科手术。 Clearing usage data is normally my go-to for weird UX issues. 通常,清除使用情况数据是解决奇怪的UX问题的首选方法。

I've had issues with form mods not showing up, usually for me it ends up being a usage data issue. 我遇到了表单Mod无法显示的问题,通常对我来说这最终是使用情况数据问题。 Try clearing your usage data: 尝试清除您的使用情况数据:

  • go to Tools > options from the development window 从开发窗口转到工具>选项
  • click the usage data button in the dialog box toolbar 单击对话框工具栏中的使用情况数据按钮
  • Open the "All usage data" tab, and use wildcards (*RecPo*) in the Element name field to find all usage data that pertains to your form and data sources 打开“所有使用情况数据”选项卡,然后在“元素名称”字段中使用通配符(* RecPo *)查找与您的表单和数据源有关的所有使用情况数据
  • Use Ctrl+A to select them all, then Alt+F9 to delete them. 使用Ctrl + A将其全部选中,然后使用Alt + F9将其删除。 Close and recompile the form, and hopefully your changes will be visible. 关闭并重新编译该窗体,希望您所做的更改将可见。

Does the grid in B and C have a value in the DataGroup attribute of the grid control? B和C中的网格在网格控件的DataGroup属性中是否具有值?

If so, any field you add to the grid is discarded. 如果是这样,您添加到网格的任何字段都将被丢弃。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM