Hello Guys,
I am facing a problem with displayField attribute of listGridField.
I am using the below code :
then the grid to grid copy will send only the description not the ID and it breaks.
Problem : If I used the above code , the framework is sending another fetch call along with grid fetch without any criteria for the same datasource and it hangs as it has alot of data in it. Is there.
Solutions I tried :
I have gone through the displayField documentation that says this attribute is ideally used for foreign key association fields. Is there any way I can stop this extra fetch call? In short I want displayField to be set as a field which is not a foreignKeyAssociation.
Thanks in advance.
I am facing a problem with displayField attribute of listGridField.
I am using the below code :
Code:
<field name="selected_ids" type="text" displayField="selectedIdDescriptions"/> <field name="selectedIdDescriptions" type="text" customSelectExpression="IFNULL((select GROUP_CONCAT(user.user_name order by user.user_name asc) from my_user where user.user_id in(user_groups.user_ids)),'')"/> ListGridField field = new ListGridField("selected_ids");
- selected_ids is my database column.
- selectedIdDescriptions is not a database column and is just used to fetch the id descriptions
Code:
ListGridField field = new ListGridField("selectedIdDescriptions");
Problem : If I used the above code , the framework is sending another fetch call along with grid fetch without any criteria for the same datasource and it hangs as it has alot of data in it. Is there.
Solutions I tried :
- displayValueFromRecord="true"
- useLocalDisplayFieldValue="true"
- autoFetchDisplayMap="false"
I have gone through the displayField documentation that says this attribute is ideally used for foreign key association fields. Is there any way I can stop this extra fetch call? In short I want displayField to be set as a field which is not a foreignKeyAssociation.
Thanks in advance.
Comment