Skip to main content
Answer

How to add user selector?

  • November 13, 2025
  • 1 reply
  • 30 views

Forum|alt.badge.img+1

I need to add my custom field for user selector.
#region Creator
        [PXDBString]
        [PXUIField(DisplayName = Messages.Creator, Required = true, Enabled = true, Visibility = PXUIVisibility.SelectorVisible)]
        [PXSelector(
            typeof(Search<Users.username, Where<Users.isHidden, Equal<False>>>)
        )]
        public virtual string Creator { get; set; }
        public abstract class creator : PX.Data.BQL.BqlString.Field<creator> { }
        #endregion

 

I have some problem

Best answer by Django

Sometimes you’ll see this type of disconnect if you added the field to the screen before you set up the DAC field with the PXSelector attribute.

Try deleting the field from the screen, publish, and then re-add the field to the screen, and publish.

1 reply

Forum|alt.badge.img+7
  • Captain II
  • Answer
  • November 13, 2025

Sometimes you’ll see this type of disconnect if you added the field to the screen before you set up the DAC field with the PXSelector attribute.

Try deleting the field from the screen, publish, and then re-add the field to the screen, and publish.