Forum Discussion
_anomDiebolt_
10 years agoQrew Elite
I managed to get the Scooby Doo technique to work.
You are in the club but your choice of verbs is a little week. How about: I dominated the Scooby Doo technique.
If you are adding only one child and you have determined the [Record ID#] of the newly created parent record you can use this code:
$.post(dbidChild, {
act: "API_AddRecord",
_fid_6: rid,
_fid_7: "I am a little teapot"
}).then(function(xml) {
//any additional code
});
In the above fid=6 is the [Related Parent] field in the child and _fid_7 represents any additional fields you want to set values for in the child table.
If you wanted to add multiple child records you would use the method API_ImportFromCSV rather than makes multiple calls to API_AddRecord.
You are in the club but your choice of verbs is a little week. How about: I dominated the Scooby Doo technique.
If you are adding only one child and you have determined the [Record ID#] of the newly created parent record you can use this code:
$.post(dbidChild, {
act: "API_AddRecord",
_fid_6: rid,
_fid_7: "I am a little teapot"
}).then(function(xml) {
//any additional code
});
In the above fid=6 is the [Related Parent] field in the child and _fid_7 represents any additional fields you want to set values for in the child table.
If you wanted to add multiple child records you would use the method API_ImportFromCSV rather than makes multiple calls to API_AddRecord.