Hello,
I'm well aware of the advantages of a Canonical Id representation
https://doc.tmssoftware.com/biz/xdata/guide/json.html#canonical-id
and I'm getting this result from a REST call to XData Server with DefaultExpandLevel set at 0:
{
:
"fk_plant_id@xdata.ref": "COM_plants(2)",
"fk_dept_id@xdata.ref": "COM_enx_depts(4)",
"fk_dept_id_alt": null,
"fk_prodphase_id": null,
"fk_prodphase_id_alt": null,
:
}
so: when there's no association, the fk_ foreign key field points to null; otherwise it points to a "Canonical Id-ized" record and the field name is modified with an appended @xdata.ref tail.
Is there a way to get a response with "fk_plant_id": "2"
instead of "fk_plant_id@xdata.ref": "COM_plants(2)"
from XData?
At present my client code (angular with dxDataGrid from DevExpress) expects a response with "simple" Id for associations and does a "local" lookup with cached data... that's why "simple" Ids would be preferred during this migration phase...