Pega Constellation UI - Picklist - Dropdown or Advanced Search- set Placeholder or set first reference value as a default value

Hi All, is there any way to set one default value or first reference value in Pega constellation dropdown control instead of Select placeholder?

A.png

@VenkateswararaoKHave you tried setting the value for this field before rendering a screen?

@Kamil Janeczek the current UI field is from Create (model Dialog) screen from Landing page where we don’t any option of flow action, Data transform to set the value.

Currently we are referencing dropdown values with Data Page. is there any way first reference value is the default value for the UI field as we don’t have any option of setting the value from Create UI Screen?

Please suggest any other options?

@VenkateswararaoK In addition to what @Kamil Janeczek has mentioned,

For v24, you only have an option of View for modal dialog and repeating row. You can make use of pyDefault or pyRefreshData to setup data for your object with necessary conditions before the entry loads on the UI. Ensure that these DT’s are extended in your data class.

Please note that these two DT’s have different behaviour for below 3 modes of data entry,

  • Inline Editing in Table rows
  • Modal Window
  • Repeating rows

Setup all the 3 types for testing and see which one suits better for your implementation both from data and UI perspective.

For v25, in addition to View, you have Action option as well where you can setup pre-processing DT/activity in flow action and preset required information based on conditions (if needed).

Hope this helps,

Thanks

JC