URL column type

Hi community…

Please I have problem with URL, where I tried to make for image record in my App.
I create the expression in image bellow:

I got error when tried to open URL.

thank you

Is there a space after the dash???

2X_8_8eba2de8d1cf21cd6ba9d64b6815d66d5e53679a.png

I’m thinking there shouldn’t be, and if there IS it needs to be URL encoded.

yes, there is space.

remove the space. There shouldn’t be one there.

That part of your app is the App ID from appsheet, and these don’t contain spaces.

1 Like

I removed the space and same error.
When I test expression in App there is no error. But the url in spreadsheet not open.

Hmmm… I’m not sure about this one then. I’d email support@appsheet.com for further assistance at this point, but perhaps someone else in the community has any further ideas.

1 Like

Thank you about your responding.

1 Like

try this: wrap the whole concatenate() formula in an ENCODEURL()

No, no. The only part of the expressions that (in this case) needs to be wrapped in ENCODEURL() is [imag1]:

CONCATENATE(
  "https://www.appsheet.com/template/gettablefileurl?appName=",
  "laborinspection-1012701",
  "&tableName=",
  "sheet1",
  "&fileName=",
  ENCODEURL([imag1])
)

though as a matter of good practice, each of the parameter values should be, too:

CONCATENATE(
  "https://www.appsheet.com/template/gettablefileurl?appName=",
  ENCODEURL("laborinspection-1012701"),
  "&tableName=",
  ENCODEURL("sheet1"),
  "&fileName=",
  ENCODEURL([imag1])
)

None of the rest of it should be included in ENCODEURL(); doing so will break it entirely.

1 Like

Oh, I see the problem. The formula you’re attempting to use goes in your spreadsheet, not in your app. Where did you get the formula?

1 Like

Thank you steve. yes i used this formula in spreadsheet.
Is this formula wrong?

It appears your formula came from the below. I’ve updated the page to use ENCODEURL().

Fouad_H_Saad1:

Is this formula wrong?

It doesn’t belong in your app.

Steve, I tried to show images as URL in spreadsheet,
So I created column in URL type to save URL for images that record from App and this column isn’t show for users just for App admin.