KEY and Label Confusion

HI,

i’m using two tables the first one named [FICHES PRODUIT] the second one named [CLIENTS]

in the first table [FICHES PRODUIT] i have column named “NOM DU CLIENT” that refers to the table [CLIENTS] in order to select or add the customer name…So the Column data type of "NOM DU CLIENT is REF

After sycing the app, my spreadsheet NOM DU CLIENT column mentions the Customer KEY and not his name (attached some pictures to get better idea about this problem)

Please help with that because it looks like this problem will affect my APP later.

With many thanks !

Solved Solved
0 6 1,836
1 ACCEPTED SOLUTION

I request you to go through the stepes mentioned again. The steps mention tables and columns to be created etc. I have also added some more details in terms of column types.

Please make both the columns in steps 1and 2 as real columns.

View solution in original post

6 REPLIES 6

Hi @bomexport_industry,

The AppSheet app shows the label in the dropdown and saves the key of the parent table in the backend of the child table. Labels are more user friendly names and keys are cryptic many times.

If you wish to store the name of the client in the child table “FICHES PRODUIT” , you may do the following

  1. Please create one additional column in the “FICHES PRODUIT” table and name this column as say [CLIENT KEY] . Please make this column as reference column that refers the CLIENTS table.

  2. In the [ NOM DU CLIENT] column in the child table “FICHES PRODUIT” , please have app formula as [CLIENT KEY].[COLUMN NAME IN CLIENTS TABLE THAT CONTAINS CUSTOMER NAME]

This expression will pull the client name from the parent table “CLIENTS” and populate the [ NOM DU CLIENT] column in the child table. This expression and technique is called dereferencing.

Please do it with caution, just in case you have any other expressions/ columns based on the reference column in the child table.

Please go through below article and the sample app just in case you have not yet gone through

The sample app:

https://www.appsheet.com/samples/This-app-shows-the-difference-between-keys-and-row-labels?appGuidSt...

Hi,

I see your meaning, i did that using a VIRTUAL COLUMN and it works pretty well, Thank you so much !

However i would like to save the CUSTOMER NAME in my spreadsheet using the app, is that possible ?
i can add formula in my spreadsheet (a simple vlookup) in case it’s not possible via the App

Yes, you can definitely add a real column as well. In fact in the point 2 above, I requested to add the formula in your existing column [ NOM DU CLIENT ] iteslf.

[NOM DU CLIENT] itself means the Column i’m using the select the customer name ? which is REF type ?

I request you to go through the stepes mentioned again. The steps mention tables and columns to be created etc. I have also added some more details in terms of column types.

Please make both the columns in steps 1and 2 as real columns.

OK now i get your meaning
Thank you so much for your help !

Top Labels in this Space