What the pickerfiled showed isn't I want

image
this show the entity’s attribute,but i want show a entity’s field

after i seelcted a entity, how can i set the show content in pickerfiled

lookupAction.setAfterLookupSelectionHandler(items -> {
			  if (items != null) {
	                for (Object i : items) {
	                    if (i != null) {
	                    	Style style = metadata.create(Style.class);
	                        Style styleSelect = (Style) i;
	                        style=styleSelect;
	                        style.setCopiedStyle(style);
	                        styleDs.setItem(style);
	                    }
	                }
	            }
	    });
<pickerField id="pickerField"
                             datasource="styleDs"
                             property="copiedStyle">
                    <actions>
                        <action id="lookup"
                                trackSelection="true"/>
                    </actions>
                </pickerField>

Hi,
you should specify the Name pattern for the entity and after that this attribute will be displayed in the PickerField. To do so, open Entity Designer in Studio, go to the Instance name tab and select the property you want to display as a name. Select the attribute in the Available attributes list and move it to the Name pattern attributes list by clicking the button with the right arrow on it.

view invalid?
image
This entity is a little bit special
the entity name is “style”
“copiedStyle” of “style” is association “style”
i want show the copiedStyle‘s sampleNO