Scenery:
I have a database with 2 tables, table A has the screens of an app, and screen B registers the activity on each screen, thus:
____________________
| Tabela A |
-------------------
| id | tela |
| 0 | principal |
| 1 | menu |
| 2 | visualização |
-------------------
___________________________
| Tabela B | |
---------------------------
| id | acoes | tela |
| 0 | acao_1 | 0 |
| 1 | acao_2 | 2 |
| 2 | acao_3 | 1 |
---------------------------
As I add actions to table B, and already having a table reference table, table A, I would like to know if the screen field could be auto filled as the action is inserted in table B.