If I have the following:
<field name="f_klassenlehrer"/>
<field name="f_klassenlehrer_text" customSelectExpression="case when ..." />
No join is being made. This is what I want in this case. I don't have more fields (no foreignKey, etc).
By just adding "displayField" to <field name="f_klassenlehrer"/>, i.e.: <field name="f_klassenlehrer" displayField="f_klassenlehrer_text"/>, a join is being made.
Why ? By reading the docs I see:
displayField:
Name of another field in this DataSource that should be used as the display value for this field.
Typically used for editable foreignKey fields:
I understand this as "typically, but not always", so I thought this can be used without joins. Is this incorrect?
Using smartgwt 6.0p power
<field name="f_klassenlehrer"/>
<field name="f_klassenlehrer_text" customSelectExpression="case when ..." />
No join is being made. This is what I want in this case. I don't have more fields (no foreignKey, etc).
By just adding "displayField" to <field name="f_klassenlehrer"/>, i.e.: <field name="f_klassenlehrer" displayField="f_klassenlehrer_text"/>, a join is being made.
Why ? By reading the docs I see:
displayField:
Name of another field in this DataSource that should be used as the display value for this field.
Typically used for editable foreignKey fields:
I understand this as "typically, but not always", so I thought this can be used without joins. Is this incorrect?
Using smartgwt 6.0p power
Comment