Example #1
0
        public void action1()
        {
            Action1.SetVisible(false);
            Action1.SetEnabled(false);
            Action1.SetCaption("Action1");
            Action1.SetTooltip("Tooltip");
            PXUIFieldAttribute.SetVisible <Users.displayName>(AllUsers.Cache, null);
            PXUIFieldAttribute.SetVisibility <Users.displayName>(AllUsers.Cache, null, PXUIVisibility.Invisible);
            PXUIFieldAttribute.SetEnabled <Users.displayName>(AllUsers.Cache, null);
            PXUIFieldAttribute.SetRequired <Users.displayName>(AllUsers.Cache, false);
            PXUIFieldAttribute.SetReadOnly <Users.displayName>(AllUsers.Cache, null);
            PXUIFieldAttribute.SetDisplayName <Users.displayName>(AllUsers.Cache, "Action1");
            PXUIFieldAttribute.SetNeutralDisplayName(AllUsers.Cache, nameof(Users.displayName), "Action1");

            var newList = new Users.state.List();

            PXStringListAttribute.SetList <Users.state>(AllUsers.Cache, null, newList);
            PXStringListAttribute.AppendList <Users.state>(AllUsers.Cache, null, newList.ValueLabelDic.Keys.ToArray(), newList.ValueLabelDic.Values.ToArray());
            PXStringListAttribute.SetLocalizable <Users.displayName>(AllUsers.Cache, null, false);
            PXIntListAttribute.SetList <Users.loginTypeID>(AllUsers.Cache, null, new[] { 0, 1 }, new[] { "A", "B" });
        }
Example #2
0
        public IEnumerable action2(PXAdapter adapter)
        {
            var newList = new Users.state.List();

            return(adapter.Get());
        }
Example #3
0
 public void action1()
 {
     var newList = new Users.state.List();
 }