Differences between LabKey ComboBox Implementations

LabKey Support Forum (Inactive)
Differences between LabKey ComboBox Implementations slangley  2010-12-20 18:14
Status: Closed
 
I've wanting to use a ComboBox with the possible values populated from a LabKey.ext.Store. Why would I want to use one of these implemenations over the other?

1. LABKEY.ext.ComboBox defined in ./server/api/webapp/clientapi/FormPanel.js

2. EHR.ext.customFields.LabKeyCombo defined in ./server/customModules/ehr/webapp/ehr/utilities.js

Both of these implementations extend Ext.form.ComboBox. EHR.ext.customFields.LabKeyCombo seems to be quite new so one would think it's more up-to-date.

Thanks.

Scott Langley
 
 
Ben Bimber responded:  2010-12-20 18:25
I would use the first. The latter was created during the early days of the EHR and I actually removed it this afternoon. The EHR module contains code for this project that is not part of the Labkey core. I'm trying to make sure there's minimal redundancy, but there still might be some.

Labkey overrides the default Ext combo w/ LABKEY.ext.ComboBox, so xtype: 'combo' should use their extension.