@rhooper91
Try something like this
update screen PJ304000 {
update container "LaborTimeAndActivities" {
fieldsToShow = 7
add field "EquipmentID"{
selectorDisplayFormat = KeyDescription
pickerType = Searchable
weight = 2
selector {
add field "EquipmentID"
add field "nYour Description (if you have one)]"
}
placeAfter field "Employee"
}
}
}
@Fernando Amadoz
I just attempted this. Replaced “EquipmentID” and “Description” in your brackets and I’m still getting the same functionality.
Updated Mobile Code:
update screen PJ304000 {
update container "LaborTimeAndActivities" {
fieldsToShow = 7
add field "EquipmentID"{
selectorDisplayFormat = KeyDescription
pickerType = Searchable
weight = 2
selector {
add field "EquipmentID"
add field "Description"
}
placeAfter field "Employee"
}
}
}
Could it have something to do with the way I defined the DAC extension? See below for my field code:
#region UsrEquipmentID
PXDefault(PersistingCheck = PXPersistingCheck.Nothing)]
PXDBInt()]
PXUIField(DisplayName = "Equipment ID")]
PXSelector(typeof(Search<EPEquipment.equipmentID, Where<EPEquipment.status, Equal<EPEquipmentStatus.EquipmentStatusActive>>>), SubstituteKey = typeof(EPEquipment.equipmentCD), DescriptionField = typeof(EPEquipment.description))]
public virtual int? UsrEquipmentID { get; set; }
public abstract class usrEquipmentID : PX.Data.BQL.BqlInt.Field<usrEquipmentID> { }
#endregion
Ok… this was a bit of a monster. You have to add levels to the grid. By default it shows as a grid control. You then need to add it as a selector control type.
Thank you for sharing your solution with the community @rhooper91 !