增加systablelookup的宽度以删除水平滚动条(仅显示3列中的2个) - Dynamics AX 2012

时间:2021-08-07 20:04:55

Googled a lot on this but didn't find any solution. Here is the problem:

谷歌搜索了很多,但没有找到任何解决方案。这是问题所在:

I've created a lookup using systablelookup. The lookup is working fine and is returning the selected field. The problem is with the number of columns shown on dropping the dropdown. I've added 3 columns (Col1, Col2, Col3), but the lookup shows 2 columns col1 and col2 with a horizontal scroll bar. The col3 appears only when you scroll using horizontal scroll bar.

我使用systablelookup创建了一个查找。查找工作正常,并返回选定的字段。问题在于删除下拉列表时显示的列数。我添加了3列(Col1,Col2,Col3),但查找显示了2列col1和col2以及水平滚动条。只有使用水平滚动条滚动时才会显示col3。

Please suggest solution to remove horizontal scroll bar from systablelookup.

请建议从systablelookup中删除水平滚动条的解决方案。

Regards, Maninder

问候,Maninder

1 个解决方案

#1


2  

The way SysTableLookup works is it dynamically builds the controls. You can see how it does this in \Classes\SysTableLookupBase\formRun

SysTableLookup的工作方式是动态构建控件。你可以在\ Classes \ SysTableLookupBase \ formRun中看到它是如何做到的

To accomplish what you want, you need to extend the class SysTableLookup and override buildGrid or buildControlsFinal or some other method and through code make the form changes you want.

要完成您想要的任务,您需要扩展类SysTableLookup并覆盖buildGrid或buildControlsFinal或其他一些方法,并通过代码进行所需的表单更改。

#1


2  

The way SysTableLookup works is it dynamically builds the controls. You can see how it does this in \Classes\SysTableLookupBase\formRun

SysTableLookup的工作方式是动态构建控件。你可以在\ Classes \ SysTableLookupBase \ formRun中看到它是如何做到的

To accomplish what you want, you need to extend the class SysTableLookup and override buildGrid or buildControlsFinal or some other method and through code make the form changes you want.

要完成您想要的任务,您需要扩展类SysTableLookup并覆盖buildGrid或buildControlsFinal或其他一些方法,并通过代码进行所需的表单更改。