Edit Key tables

Hi

i have this structure in my app
3X_3_6_366f9c02a97eb0f42c1370b8c735c72e5bac3feb.png

โ€œcompanysโ€ are all customers or non-customers. The โ€œclientsโ€ table are always clients.

In the โ€œCompanysโ€ table you can insert a new company, letโ€™s give an example with the name โ€œJUBEโ€ but that is not a client yet. Your key in the โ€œcompanysโ€ table is the company_id which can be for example โ€œ1034Aโ€. The company โ€œJUBEโ€ then becomes a client and appears in the โ€œClientsโ€ table with an automatically generated company_ID

Now I needed to go to the โ€œCompanysโ€ table and change the company_id to the company_id of the โ€œClientsโ€ table to be linked with the โ€œCompanysโ€ table How can I do this knowing that the company_id is the key

Can you help please

Solved Solved
0 6 180
1 ACCEPTED SOLUTION

Hi @Tiago_Pereira

You may want to use a bot to add a new row in the โ€œCompanysโ€ table, everytime you add a row to the Clients, or People, or Visit.
And this table will need to have minimal columns:

  • key_column, type Text, with initial value: UNIQUEID()
  • client: type Ref, source table: Client
  • people: type Ref, source table: People
  • visit: type Ref, source table: Visit

You will need to use some tricks
Here are some documentation that may help you into achieving your goal, depending on it.

View solution in original post

6 REPLIES 6

Steve
Platinum 4
Platinum 4

A rowโ€™s key column value cannot change once the row is saved the first time.

In this situation how to solve this problem to create the app

How can we resolve this problem ? Anybody know?

Hi @Tiago_Pereira

You may want to use a bot to add a new row in the โ€œCompanysโ€ table, everytime you add a row to the Clients, or People, or Visit.
And this table will need to have minimal columns:

  • key_column, type Text, with initial value: UNIQUEID()
  • client: type Ref, source table: Client
  • people: type Ref, source table: People
  • visit: type Ref, source table: Visit

You will need to use some tricks
Here are some documentation that may help you into achieving your goal, depending on it.

Thanks a lot for the tricks

You are welcome

Top Labels in this Space