Hello Isomorphic,
I'm using SmartGWT 4.1p (v9.1p_2014-12-06) and have a question regarding the short-time display of key-values in a DynamicForm:
I have a DS with the following field:
In my DynamicForm I do display this field with
(actually it are some text fields and 3 FK fields, thereof 2 with SelectItem and 1 with ComboBoxItem)
The class definition is:
This setup should be very common in every(?) application using Foreign Keys.
Now, upon load of the DynamicForm I can see the Leadtemperature-ID for a short time before the displayField from the databound SelectItem is displayed. Obviously this effect/timespan is larger in DevMode, but nevertheless still visible in Compiled mode. As requests to the main DS and the FormItems are not queued, depending on network quality, the effect can even be visible for the non-developer-eye.
For ComboBoxItems, the string "Loading" is displayed, instead.
As I really don't like showing the IDs to the end user, my question is if you think this is a bug and can show the "Loading"-string message for SelectItems as well.
Besides, my enhancement suggestion is the following: If the field in the main DS has a displayField, show the main-DS's displayField instead of the main-DS's field (the ID value) while the FormItem is loading its data.
Best regards,
Blama
I'm using SmartGWT 4.1p (v9.1p_2014-12-06) and have a question regarding the short-time display of key-values in a DynamicForm:
I have a DS with the following field:
Code:
<field foreignKey="T_LEADTEMPERATURE.ID" name="LEADTEMPERATURE_ID" displayField="LEADTEMPERATURE_NAME" title="Leadtemperature" type="integer" required="true" /> <field includeFrom="T_LEADTEMPERATURE.NAME" name="LEADTEMPERATURE_NAME" hidden="true" />
Code:
final SelectItemLeadtemperature leadtemperatureSI = new SelectItemLeadtemperature("LEADTEMPERATURE_ID"); setFields(...) fetchData(...)
The class definition is:
Code:
public class SelectItemLeadtemperature extends SelectItem { final private DataSource leadtemperatureDS = DataSource.get(DatasourceEnum.T_LEADTEMPERATURE.getValue()); public SelectItemLeadtemperature(String name) { super(name); setOptionDataSource(leadtemperatureDS); setValueField(leadtemperatureDS.getPrimaryKeyFieldName()); setDisplayField("NAME"); setSortField("POSITION"); setOptionCriteria(new AdvancedCriteria("AVAILABLE", OperatorId.EQUALS, true)); setBrowserSpellCheck(false); } }
Now, upon load of the DynamicForm I can see the Leadtemperature-ID for a short time before the displayField from the databound SelectItem is displayed. Obviously this effect/timespan is larger in DevMode, but nevertheless still visible in Compiled mode. As requests to the main DS and the FormItems are not queued, depending on network quality, the effect can even be visible for the non-developer-eye.
For ComboBoxItems, the string "Loading" is displayed, instead.
As I really don't like showing the IDs to the end user, my question is if you think this is a bug and can show the "Loading"-string message for SelectItems as well.
Besides, my enhancement suggestion is the following: If the field in the main DS has a displayField, show the main-DS's displayField instead of the main-DS's field (the ID value) while the FormItem is loading its data.
Best regards,
Blama
Comment