Skip to main content
Solved

Adding User Define Field to Main Screen - Schema Field/Selector not working


annetrockman27
Freshman I
Forum|alt.badge.img

I am trying to copy a User Defined Field (UDF) from the UDF tab to the main Document tab on the AP Bills and Adjustments screen. One of our UDFs uses the selector tool to pick an employee name. Thanks to @dgross’s videos, I can move the UDF to the main screen, but the selector field is not recognized. I am getting this warning when with the customization

 

The UDF is set up like this and is working when in its own UDF tab 

In the Customization, the Attribute (APAPPROVE) control shows TextEdit not Selector. I have tried multiple times to change to Selector and save it, without success. In some instances, the ID under Base properties changed from TextEdit to a selector, but the Controls still showed TextEdit and that is when I would get the error noted above (PX Selector Attribute is missing). Any thoughts on how to fix this?  

 

 

Best answer by Naveen Boga

I recommend to follow the below tutorial or you can even go through the Application Developer Certifications.

 

https://www.youtube.com/watch?v=_svNhRMHWYQ

 

View original
Did this topic help you find an answer to your question?

12 replies

Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3404 replies
  • August 25, 2024

@annetrockman27 Can you please share the customization package for our review.


annetrockman27
Freshman I
Forum|alt.badge.img

@Naveen Boga  - attached is the exported customization project. Thanks so much for helping!

This has the Control listed as TextEdit as I am unable to save it with the Selector as the control. 


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3404 replies
  • August 26, 2024

@annetrockman27 Thanks for sharing the package.

UDF will works under the User Defined Fields tab only as these are the dynamic fields and can’t be added in other forms.

If you wanted to add the field in other form it should be a custom field and should be prefix as Usr. Please let me know if you need any help to add the custom fields.

 

I hope this info helps you. 


annetrockman27
Freshman I
Forum|alt.badge.img

Thanks for your help! What is the difference between a “User Defined Field” and a custom field? And please let me know the best process for adding a custom field to the main AP document. Can we create a custom field and use a schema/selector (to select an employee in the drop down)?


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3404 replies
  • August 26, 2024

@annetrockman27  Basically, User Defined fields created from the Attributes using the Manage User Defined Fields in the screen level (No Coding required).

Custom Fields are created using the Customization Project Editor or code level like creating the database field and DAC field add the script in the customization package.

 

Yes, we can create Selector/Dropdown fields with the Custom fields


annetrockman27
Freshman I
Forum|alt.badge.img

What is the process for adding a custom field using the Customization Project Editor? Thanks in advance!

 


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3404 replies
  • Answer
  • August 26, 2024

I recommend to follow the below tutorial or you can even go through the Application Developer Certifications.

 

https://www.youtube.com/watch?v=_svNhRMHWYQ

 


Forum|alt.badge.img
  • Semi-Pro II
  • 122 replies
  • February 28, 2025

Hi ​@annetrockman27 Were you able to figure out how to add a custom field in customization with selector as the control type? I’m having the same issue where the field I created is TextEdit but I need it to be a selector to find employee acctCD. ​@Naveen Boga ‘s video is helpful but does not address how to change the control type. 


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3404 replies
  • February 28, 2025

@jzhu  Have you tried deleting the TextEdit control and add a new Selector field?


Forum|alt.badge.img
  • Semi-Pro II
  • 122 replies
  • February 28, 2025

Hi ​@Naveen Boga When I created the field, TextEdit automatically populated into the Control field upon publishing the customization. I could select the ‘Selector’ option, but upon saving the field goes back to TextEdit. What do you mean by deleting the TextEdit control and adding a new Selector field? 

 


annetrockman27
Freshman I
Forum|alt.badge.img
  • Author
  • Freshman I
  • 16 replies
  • February 28, 2025

@jzhu - I did not find a solution… ​@Naveen Boga I also tried changing the Control but it either defaults back to the original or causes errors with the customization. I am waiting for our next upgrade and hoping something with the Modern UI will make this easier for us to implement. 


  • Freshman I
  • 2 replies
  • March 3, 2025

 

 

I’m a newbie to Customizations, but had the same problem with the code not changing from TextEdit to ComboBox.  I found the article linked below. 

I was keeping the Data Type as String, but not changing the length as suggested and am wondering if that’s where I (and others above) went wrong. 

I also followed the link to your article, ​@Naveen Boga , where you change the Data Type to int and decided to try that route instead.  I copied your PXIntList, but am just getting 0 as the result on the screen in a box with no dropdown option.  I am instead able to type a number.  Can you tell me where I’m going wrong?  I am at least getting ComboBox in the Add Data Fields of the customization editor now.
Article:

 

 

 

 

 Custom Data Field in Customization Project Editor:

 

Test Type from above in Opportunity Screen (Sales Type drop down is blank from a previous attempt...ComboBox values is grayed out in Customization Editor):

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings