How to make dialog elments collapsible?

巧了我就是萌 提交于 2020-01-04 03:15:10

问题


Is there any way to make DialogGroup elements collapsible through X++?

I've been looking at MSDN and going through the class but I don't seem to find something that would be useful.

Another developer has added two groups to the dialog that is displayed when creating a payment proposal (CustVendPaymJournal_Vend Class) and the "Ok" and "Cancel" buttons are no longer displayed on smaller resolutions (1024x768).

My approach is to make some of the groups collapsible to enable the dialog to display such buttons.


回答1:


I found it.

After looking at the MSDN for quite longer than I would have wanted to, I found the solution:

Once the DialogGroup is created dialogGroupProposalType = dialog.addGroup("@SYS88520");

There is a method called frameOptionButton() available, which receives a FormFrameOptionButton ennumeration value as parameter.

dialogGroupProposalType.frameOptionButton(FormFrameOptionButton::Hide);

http://msdn.microsoft.com/en-us/library/aa845161(v=ax.50).aspx#F

http://msdn.microsoft.com/en-us/library/aa627673(v=ax.50).aspx

http://msdn.microsoft.com/en-us/library/aa627673(v=ax.50).aspx

http://msdn.microsoft.com/en-us/library/aa592526(v=ax.50).aspx



来源:https://stackoverflow.com/questions/14463319/how-to-make-dialog-elments-collapsible

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!