Data of fields which have relations - WEB / TMS WEB Core - TMS Support Center (tmssoftware.com)
I'm using TXDataWebDataSets. Is there a straightforward technique to let me POST the parent object with only the foreign key value of children? So assume a structure like...
Asset
{
"id": "string",
"make": "string",
"model": "string",
"roomId": {
"id": "string",
"nameplate": "string",
"deactivatedDate": "2020-12-03T18:33:13.204Z",
"personId": {
"id": "string",
"name": "string",
"deactivatedDate": "2020-12-03T18:33:13.204Z"
}
}
}
I'd like to POST a new Asset by submitting...
{
"id": "913ecefc-820f-48d9-a9d4-c5d37a894f92",
"make": "Honda",
"model": "Civic",
"roomId": "f42aae28-8a52-4213-9e79-fb8f2c7bbe17"
}
rather than populating the full room object and its children. Naturally I'd like to do this without manually defining the objects without the relationships yet still keep the relationships in my DataModeler model.