I am writing my own member Forum pages for a client, because they wanted to change the behavior from what the standard Wix forum app does.
Here is a fraction of my code:
let toInsert = {
“threadID”: threadIDString,
“owner”: memberIDString,
“text”: $w(‘#textHTML’).text
};
wixData.insert("posts", toInsert)
.then( (results) => {
let item = results; //see item below
} )
.catch( (err) => {
let errorMsg = err;
});
And here is the table after the insert:
The owner column, which contains a reference to “members”, is being updated correctly. On the other hand, you can see that the threadID column, which also contains a reference, has not been changed. Instead there is a column called [threadID] (which I did not create), which is getting updated. Can someone tell me what is going on here please?