I have created two entities, RequestManagement and Requestlist, with a one-to-many relationship between them. Both entities have a link named "accountId." I would like to automatically set the accountId of a Requestlist record to match the accountId of the corresponding RequestManagement when creating the Requestlist record.
Announcement
Collapse
No announcement yet.
How to automatically set the accountId?
Collapse
X
-
Originally posted by lj4353 View PostI have created two entities, RequestManagement and Requestlist, with a one-to-many relationship between them. Both entities have a link named "accountId." I would like to automatically set the accountId of a Requestlist record to match the accountId of the corresponding RequestManagement when creating the Requestlist record.
PHP Code:if (requestManagment.accountId) {
accountId = requestManagment.accountId;
}
Rabii
Web Dev
Comment
Comment