Posted: 7 May 2018 9:23 EDT Last activity: 22 Aug 2018 6:33 EDT
Dynamic Dropdown in Records tab of Datatype is not working
We have a need to deligate a datatype. in that one of the column should be a dropdown. we selected picklist that created property with pxdropdown control and local list. But we need dynamic list.
Steps to Reproduce
Create a new datatype.
Add new property as pick list. and some text properties. and true flase property.
in records tab when you add new record, you can see check box for text. text filed for normal property. but picklist with dynamic list is not working.
I tried overriding the control with custom control which was saved from pxdropdown. and i used datapage as source.
Also In databasetable editor(report definition) tried using control in format, but thats not working in Datatype.
That datapage has data. I am passing reports as param to that datapage, which should load list of report names from that table. That data page is being used in other areas of my application. just for testing I used that data page. On UI its not rendering as Dropdown, instead it shows a disabled textbox(I think)
I see the issue that you are experiencing, the UI does not reflect the markup that is needed when you through a drop down control sourced through a clipboard/DP. If I do what you did in a regular section it works but not in a data type rule form. I doubt if this is supported to begin with, one of the Community moderators should be able to confirm that for you.
This is not a supported use case (Launch pad team can confirm this), the pick list configuration only supports list configured using table types. The record editor cannot support configuring a Auto Generated control with pre-defined settings. If you need a dynamic dropdown the alternative is to use a non-auto control.
The reason why it is not possible is the columns of the record editor are dynamic the record editor uses a Table (Grid) configuration that is bound to a ReportDefinition (DataTableEditorReport for the data class) and the columns sourced dynamically from RD Definition. The way report definition column configuration works is it gets the control (control configured on column directly or on property ) configuration and merges the configuration with control configuration on the column of the report definition page while doing so it will ignore editable configuration of the control and only merges the read only configuration (RD are supposed to displayed only in readonly) so any editable configuration done on the autogenerated control is lost.
A feedback request has been created on your behalf in our internal portal. The feedback ID is tagged to the issue description above (under Related Support Case Number). Use this FDBK ID as reference to connect with your Pega Account Executive to track the progress of this request.