So I have a reference to another table that d...

So I have a reference to another table that does nothing but act as a referenced list for a drop down in my form. For some reason after every other save those virtual columns revert back to the type โ€œtextโ€ instead of โ€œlistsโ€ which produces an error. I have to change it back to the list type every time and my error goes away and the app acts as it should. Why does this keep changing from list to text? This has never happened to me before, even though Iโ€™ve referenced lists exactly like this multiple times.

0 7 2,811
7 REPLIES 7

What is the App formula for the virtual column?

@Steven_Coile

'REF_ROWS("โ€œDLSWHSEโ€ Daily Time Sheet", โ€œService Request #'s:โ€

and

'REF_ROWS("โ€œDLSWHSEโ€ Daily Time Sheet", โ€œActivity #2 Work Performed:โ€)

The specific error that I am receiving is:

โ€œColumn Name โ€˜Related โ€œDLSWHSEโ€ Daily Time Sheets By Activity #2 Work Performed:โ€™ in Schema โ€˜Work Performed Categories_Schemaโ€™ of Column Type โ€˜Textโ€™ has an invalid app formula 'REF_ROWS(โ€โ€œDLSWHSEโ€ Daily Time Sheet", โ€œActivity #2 Work Performed:โ€)โ€™. Unable to find table โ€˜โ€™"

Like Iโ€™ve said, Iโ€™ve always been able reference rows like how Iโ€™m doing now. None of the settings are different (that I can find, and Iโ€™ve definitely looked). The only steps that Iโ€™m taking:

1.) Created a data filler tab in my excel file. 2.) Added those tables to my data table pages 3.) Turned the column I wish to turn into a dependent drop down to a โ€œRefโ€ type. 4.) For the, โ€œReferencedTableNameโ€ drop down, Iโ€™ve selected the data filler table 5.) Everything else stays the same. Click โ€œokayโ€ 6.) Save

Upon reload I get the error referenced above. However, I can manually change the virtual column that the reference created from โ€œtextโ€ to โ€œlistโ€. Click save, and boom the problem is fixed and the referenced row acts exactly how I want it to (a dependent drop down). However whenever I do anything in the app the virtual column type changes itself back to โ€œtextโ€ and then produces that same error.

@Joshua_Giles REF_ROWS("โ€œDLSWHSEโ€ Daily Time Sheet", โ€œService Request #'s:โ€ has too many quotes. Remove the quotes from your worksheet (and then table) name.

Specifically, change:

โ€œDLSWHSEโ€ Daily Time Sheet

to:

DLSWHSE Daily Time Sheet

@Steven_Coile So I thought that, that might be the issue, and went to remove them from my tab name. However, once I did this, all of my existing formula and formatting for the other columns are deleted. Is there any way to not have to reformat everything? (Basically starting from scratch and the app was essentially finished.)

Also, @Steven_Coile that totally fixed it. :โ€™( but now Iโ€™m looking at the rest of my day rebuilding what I already built :โ€™โ€™(

@Joshua_Giles The best way Iโ€™ve found to rename a worksheet without losing AppSheet configuration is this:

  1. In the AppSheet workbench, go to Data / Tables, to the configuration of the table you want to rename.

  2. Change the name of the table in the workbench as desired. Do not (yet) change the name of the worksheet.

  3. SAVE the change. Note that this will result in errors if your configuration otherwise refers to the old table name (likely).

  4. After the save is complete, correct any errors by updating your configuration to use the new table name and get your app working again. Still do not yet change the name of the worksheet.

At this point, you may stop. Changing the name of the worksheet to match the table name used by AppSheet is not strictly required, but you will likely want to change the worksheet name to avoid confusion in the future. To do so:

  1. Rename the worksheet as desired. Doing so is likely to break your app until you complete the steps below.

  2. Again in the AppSheet workbench, return to Data / Tables, to the configuration of the table youโ€™re renaming.

  3. For Worksheet Name/Qualifier, choose the new name of the worksheet.

  4. SAVE the change. When the save is complete, the app should again be working, and using the newly-renamed worksheet.

Note that in the course of this process, the table configuration is likely to be reordered among the list of table configurations in the AppSheet workbench. This reordering is not significant.

In essence, the process above amounts to: (a) renaming an AppSheet table; and (b) connecting an existing AppSheet table to a different worksheet (that happens to be the old worksheet, but with a different name).

To add to what @Steve explained.

For step 4 (โ€˜correct any errors by updating your configurationโ€™) you may encounter that there are many expressions throughout your app (visible-if, require-if, computations, slices, views, etc)

You may find really helpful the automatic documentation generated by AppSheet, which you can download as pdf and perform a text search (Ctrl+F). In this way you can find where the old table name is used

In this thread you can find more info about Documentation.

Top Labels in this Space