Hi, Readers.
Today, I would like to talk about the best way to append an ellipsis (. . .) to the caption on a command button or menu item in Business Central.
As you might know, on some pages, there is an ellipsis (. . .) after the caption of action. The ellipsis tells the user that other choices will appear if the command button or menu item are selected.
For example: On the Sales Order page, you can find “Post. . .“, “Post and New. . .“, “Post and Send. . .” actions.
![](https://yzhums.com/wp-content/uploads/2021/06/image-116-1024x495.png)
On Item Card page, you can find “Apply Template. . .” and “Save as Template. . .” actions
![](https://yzhums.com/wp-content/uploads/2021/06/image-118-1024x483.png)
If we need to add an action that contains an ellipsis, what should we do?
The most straightforward way is to add the ellipsis to the caption.
![](https://yzhums.com/wp-content/uploads/2021/06/image-120.png)
Yes, this will indeed show the ellipsis.
![](https://yzhums.com/wp-content/uploads/2021/06/image-121-1024x421.png)
But you have to know that this is not the best way.
Let’s look at some standard code in Base Application.
page 42 “Sales Order”:
![](https://yzhums.com/wp-content/uploads/2021/06/image-117.png)
page 30 “Item Card”
![](https://yzhums.com/wp-content/uploads/2021/06/image-119.png)
In the standard, the ellipsis is not added directly after the caption, but the Ellipsis Property is added.
Yes, you can use Ellipsis Property to add append an ellipsis (. . .) to the caption.
Ellipsis Property: Sets a value that specifies whether an ellipsis (…) is appended to the caption on a command button or menu item. An ellipsis tells the user that other choices will appear if the command button or menu item are selected.
Applies to: Page Action
True if the ellipsis is appended; otherwise, false. The default value is false.
For example:
![](https://yzhums.com/wp-content/uploads/2021/06/image-122.png)
Test:
![](https://yzhums.com/wp-content/uploads/2021/06/image-123-1024x441.png)
END
Hope this will help.
Thanks for reading.
ZHU
コメント