- Customer_DataCard1:
Control: TypedDataCard
Variant: fluentV9ComboBoxEditCard
Properties:
DataField: ="CustomerName"
Default: =ThisItem.'Customer Name'
DisplayName: =DataSourceInfo([@'Hot Issues'],DataSourceInfo.DisplayName,'CustomerName')
Update: |-
={
Value: CustomerCombo.Selected.Title,
Id:
LookUp(
Customers,
Title = CustomerCombo.Selected.Title && Country.Value = CountryCombo.Selected.Value
).ID
}
DisplayMode: =Parent.DisplayMode
Children:
- CustomerCombo:
Control: ComboBox
Variant: pcfdataset
Properties:
AccessibleLabel: =Parent.DisplayName
DefaultSelectedItems: |-
={Title: ThisItem.'Customer Name'.Value}
InputTextPlaceholder: ="Find customer"
Items: =Filter(Customers, Country.Value = CountryCombo.Selected.Value)
Required: =Parent.Required
ValidationState: =If(IsBlank(Parent.Error), "None", "Error")
Width: =(Parent.Width - 48) * 0.4
X: =DataCardKey1.X + DataCardKey1.Width
Y: =10
Children:
- Title1:
Control: PowerApps_CoreControls_ComboboxCanvasTemplate_dataField
Variant: textualColumn
Properties:
FieldDisplayName: ="Title"
FieldName: ="Title"
FieldType: ="s"
Order: =1