Skip to main content
Answer

How to add UDF/Attribute with control type "selector" to a screen?

  • November 21, 2024
  • 1 reply
  • 171 views

I am trying to add a UDF with control type “selector” to the main part of a screen, but I get the following error when I do that.

To start from the beginning - I added an attribute with control type “Selector”:

Attribute with control type “selector"​​​​

Then I added it as a UDF to the PO screen, which shows up on the “User Defined Fields” tab as a selector:

UDF on User-Defined Fields tab of PO screen

However, when I try to add it to the main part of the screen, it shows up as control type “TextEdit” instead of “Selector”.

Data Field with control type TextEdit

I can select the control type and change it to “Selector” before I add it to the screen.  This works and shows up on the PO screen correctly as a selector, however, when I load the PO list GI (which is replaces the PO entry screen), I get the error in the screenshot at the top of this post:

Also, when I open the customization project again and go to that screen, I get a similar error, with just a bit more info:

But if I haven’t backed up my project, I have to delete it and start over or manually edit the XML to remove the UDF or change it back to a TextEdit field.

It appears that I need to edit the graph, but I don’t know how to do that.  Can someone point me in the right direction to make the needed edits?

Thanks.

Best answer by darylbowman

I don't understand why you'd be getting this error. Placing the field on the screen shouldn't change anything that I can see.

A custom field would be the alternative.

1 reply

darylbowman
Captain II
Forum|alt.badge.img+15
  • Answer
  • November 22, 2024

I don't understand why you'd be getting this error. Placing the field on the screen shouldn't change anything that I can see.

A custom field would be the alternative.