Replies: 1 comment
-
using observer or event should solve this |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello
I have two tables
A
andB
.Table
A
has three columns calledb_id
,hour
, andamount
.Table
B
also has auser_id
andsalary
column.The relationship between the two tables is also well defined.
When the user creates an
A
, I want theamount
to be filled in automatically according to the following relation:amount
=hour
*b.salary
How do I do this?
Beta Was this translation helpful? Give feedback.
All reactions