Hi Isomorphic,
I have a few questions regarding ListGrid.exportData() (12.1p), as I'm in the process of converting some of my ListGrids from exportClientData() to exportData().
I wondered about how the server knows what fields to export with exportData(), when this information is not in DSRequest-subtab in the Developer Console RPC Tab. I then found the fieldlist in the RPCRequest-subtab. Is this correct? Shouldn't this and possibly other information there be part of the DSRequest-tab? exportFields is even a property of DSRequest.
Then I wondered how the default field list is built (because for one fields I get the (unwanted) ID and the name in the exported file).
I can see one field here for me, where the client sends the ID instead of the expected Name-field.
Here it is MD_LEADTYPE_ID, where I'd expect MD_LEADTYPE_NAME.
I can't seem to find a difference in the field definition in my clientside ListGridField (they all have name: "ID-version-of-the-fieldname").
Also in the .ds.xml DataSourceFields the definitions are similar (=ID-field with displayField pointing to the Name-field).
So from my perspective MD_LEADTYPE_ID and MD_LEADTEMPERATURE_ID have a similar setup, yet for one the ID field is used to export.
Could you explain how ListGrid.exportData() decides which fieldnames it sends to the server? Then I could perhaps find what the configuration difference here might be.
Thank you & Best regards
Blama
I have a few questions regarding ListGrid.exportData() (12.1p), as I'm in the process of converting some of my ListGrids from exportClientData() to exportData().
I wondered about how the server knows what fields to export with exportData(), when this information is not in DSRequest-subtab in the Developer Console RPC Tab. I then found the fieldlist in the RPCRequest-subtab. Is this correct? Shouldn't this and possibly other information there be part of the DSRequest-tab? exportFields is even a property of DSRequest.
Then I wondered how the default field list is built (because for one fields I get the (unwanted) ID and the name in the exported file).
I can see one field here for me, where the client sends the ID instead of the expected Name-field.
Code:
"exportFields":[... .... "MD_LEADTEMPERATURE_NAME", "MD_CAMPAIGN_NAME", "MD_LEADTYPE_ID", "MD_EARLIEST_START", ...
I can't seem to find a difference in the field definition in my clientside ListGridField (they all have name: "ID-version-of-the-fieldname").
Also in the .ds.xml DataSourceFields the definitions are similar (=ID-field with displayField pointing to the Name-field).
So from my perspective MD_LEADTYPE_ID and MD_LEADTEMPERATURE_ID have a similar setup, yet for one the ID field is used to export.
Could you explain how ListGrid.exportData() decides which fieldnames it sends to the server? Then I could perhaps find what the configuration difference here might be.
Thank you & Best regards
Blama
Comment