Insert google sheets formula to display image when saving changes to appsheet

Good afternoon,
Please your support. I want a photo captured in the application to be displayed in the google sheets cell. In google sheet I enter the formula of the image and it shows me, but what I would like is the formula to be generated when saving changes in the application.
In the option of auto compute I tried to enter the same formulating concatenating but it does not work, I can not make the quotes appear on google sheets.

0 19 4,141
  • UX
19 REPLIES 19

This post from a while back has some relevant links:

It links to a sample app

and to a page documenting how to do this

Scroll down to โ€œShowing Images in Google Sheetsโ€.

Now, as to your problem, Iโ€™m not completely sure that I understand your problem but let me suggest that you try the following.

  1. Copy the sample I introduced above.

  2. After copying the sample, use it to add a new image. Youโ€™ll find that the new image doesnโ€™t display in your sheet. The problem is that the correct name of your app isnโ€™t being added to new data in your sheet.

  3. Get the correct name of your app by looking at your URL. Hereโ€™s an image of mine:

2X_5_5f673df38fbc7d0cae79a6dd526f986897c3202e.png

  1. In your spreadsheet, delete all of the lines that came with the sample app, leave the line that you added and correct the name in that URL:

2X_8_8e25dd4c54ede02d420967118087cf3130ddae9e.png

  1. Finally, regenerate the table (inside of AppSheet).

Now, when you add new pictures or edit old ones, they should appear in your spreadsheet.

Hi I try to replicate the formula by changing my app id, table name and image column but it still issue bad request.

My App ID

My Formula

Result
3X_3_0_30fc6464a1a6e84eb151f86c46608b2a49d1a0cc.png

Can anyone check it which part I did wrong.

Thank you

Could you please share the complete URL?

My Formula
SUBSTITUTE(CONCATENATE(โ€œhttps://www.appsheet.com/template/gettablefileurl?appName=",โ€œWorldwideNewworkorder-799210โ€,"&tableNa...โ€, โ€œNew Work Orderโ€,"&fileName=",AA3), " ", โ€œ%20โ€)

My Url

https://www.appsheet.com/template/gettablefileurl?appName=WorldwideNewworkorder-799210&tableName=New%20Work%20Order&fileName=Work%20Order_Images/7QL35s62TrKp9-QDV7rcMA.Action%20Image%201.085738.png

Worth visiting our post of

Sorry if I did something wrong. I simply replicate the formula and change the App ID, Table Name and Image column

My Formula

=CONCATENATE(โ€˜https://www.appsheet.com/template/gettablefileurl?appName= 3โ€™, ENCODEURL(CONTEXT(WorldwideNewworkorder-799210)), โ€˜&tableName=โ€™, ENCODEURL(CONTEXT(New Work Order)), โ€˜&fileName=โ€™, ENCODEURL(ae3))

My Result

What is my mistake and is there any sample app that use this formula so I can study it.

This is appsheet formula, can t be used in spreadsheet

Also there is syntax error.

I have put into the appsheet formula and the expression is correct and link has been generated when i save the app however it still show bad request

My Formula:

CONCATENATE(โ€˜https://www.appsheet.com/template/gettablefileurl?appName=โ€™, ENCODEURL(CONTEXT(โ€œWorldwideNewworkorder-799210โ€)), โ€˜&tableName=โ€™, ENCODEURL(CONTEXT(โ€œNew Work Orderโ€)), โ€˜&fileName=โ€™, ENCODEURL([Action Image 1]))

My Link:

https://www.appsheet.com/template/gettablefileurl?appName=&tableName=&fileName=Work%20Order_Images%2F7QL35s62TrKp9-QDV7rcMA.Action%20Image%201.085738.png

Result

3X_3_0_30fc6464a1a6e84eb151f86c46608b2a49d1a0cc.png

Make sure your security/options are set like this.

I have turned it off, but the result is still the same

your are wrongly using our tricks.

Just change the column names only. Dont change the rest.

Finally it works.

Thank you so much for assisting me and your time. Appreciate it.

Hi,

I have proceed using the app formula, first is starts out well. Now the link still shows bad request

My Formula
CONCATENATE(โ€˜https://www.appsheet.com/template/gettablefileurl?appName=โ€™, ENCODEURL(CONTEXT(AppName)), โ€˜&tableName=โ€™, ENCODEURL(CONTEXT(Table)), โ€˜&fileName=โ€™, ENCODEURL([Action Image 3]))

My url image link generated

https://www.appsheet.com/template/gettablefileurl?appName=WorldwideNewworkorder-799210&tableName=Work%20Order&fileName=

When I compare with the previous successful link. The file name is not included.

Successful Link at row 3

File name not captured at row 6

Why it does not captured my image column?

Your image column is just blank.

My image column is not blank:

from my app:

My formula

Your expression to construct image URL should be returning the value before the image is saved to the data source as relative path.

That is only what I can suspect.

Yes as you suspected. I have to re-open and re-save again then the image link formula will works.

Quite odd for my case that the app formula does not automatically capture the moment that image has been inserted.

The image column value is not set until a sync occurs, because the file has not yet been uploaded to cloud storage and given the name by which it will be known to the app.

See also:

Hi.

May i know where to put the formula in the appsheet? For my case,i want my signature appear in the google sheets

Top Labels in this Space