I am trying to set a toolbar button image. I have found various ways of defining button images, but none seem to work consistently.
Here are the ways I have found (either in documentation or on SO):
In code (doesn't work at all for me [for toolbar buttons])
public PXAction<DAC> action; [PXButton(CommitChanges = true, ImageKey = PX.Web.UI.Sprite.Main.ArrowRight)] [PXUIField(DisplayName = "Action")] protected virtual void Action()
In ASPX, in
Base Properties
>Images
>Normal
of the screen editorNormal
|main@ArrowRight
In ASPX, in
Ext Properties
>ImageKey
andImageSet
of the screen editorImageKey
|main
ImageSet
|ArrowRight
The ASPX options work for the main
ArrowRight
icon, but there are various other icons in the same sprite that I would like to use that do NOT work. For instance, intellisense in VS suggests that Relation
and RelationF
are also in the main
sprite, but these display as blank images.
What am I doing wrong, and how can I access something other than arrows?