Custom map in filtered form

Romain
New Member

Hi there,
I am building an app concerning building inspections.

I have a table concerning buildings with include also a drawing.(1 row per floor)
Then I have a table concerning the sales convocation in order to plan inspection of a part of a building with customer. This table look for the drawing and the seller can draw some comments in order to see which part of the floor will be sold.
Finally I have a table with the remarks done by the customer. This table is filled with a โ€œLinkToFormโ€ action from the convocation table. In this third table i would like to localize the remarks on the drawing which come from the convocation table.

I have tried several ways to encode in URL format the drawing from the table convocation but unfortunately I donโ€™t find the solution. I have tried the formula ENCODEURL([drawing]) with a type URL or text, โ€ฆ and then searching for this formula for the Background image.

All data are on google drive.
Here below, the drawing in order to understand

Currently this is the result I have instead of the map in background
2X_f_f13b3ab7eec7c8c62160427d565d91fd3c843209.jpeg
Is anyone know how it can be done?

0 10 479
  • UX
10 REPLIES 10

I assume the %2F in your image file text indicating something.
Why do you need to encode ?

@tsuji_koichi actually I understood that the background image for the XY position have to be an URL adress isnโ€™t it?
That why I tried the formula ENCODEURL()

Concerning the %2F, in fact the name of the drawing in the table โ€œConvocationโ€ is for example : Convocation_Images/e46332b6.Objet.175613.jpg.
When is use the formula encodeurl() the name become : Convocation_Images%2Fe46332b6.Objet.175613.jpg
The form โ€œRemarksโ€ load the name but not the drawingโ€ฆ

I have also tried the following formula for the background image : [Convocation].[Drawing]
I donโ€™t have error message but the drawing is not load on the form โ€œRemarksโ€.

If you have an idea concerning this brain teaser

I think [Convocation].[Drawing] should work as back ground image without encodeurl method.

This is from my App where I placed the similar tricks. I let users to upload images then utilize the same as background image for xy type column.

First, try to create new virtual column which construct text with formula like this.
Make sure to set this VC data type as text.

SUBSTITUTE(concatenate(โ€œhttps://www.appsheet.com/template/gettablefileurl?appName={YourAppID}&tableName={YourTableNameWithPl...โ€,[ImageColumn]), " ", โ€œ%20โ€)

Then use this VC name as base image URL for your xy type column.

Let s name this new VC as [URL], then it should be good enough to cal

[Convocation].[URL]

in your xy type base formula.

Let me know if this works with you as well.

On your current setting, probably the problem is your are not generating full path (URL) to reach to your image file, that should be root cause of error.

@tsuji_koichi Hi
I have tried your formula and there is no error message but when the form is opened, one more time the Image is not loaded.
Here below what I obtain
VC formula


Result

Result in the form
2X_f_f7a3a6f59f36d577c876bdad4ebb074148b3fbca.png
If I ckick on the field โ€œLocalisationโ€, the image is not loadโ€ฆ
I have also tried with curly brackets but the result is the same

I have created a link in the GoogleSheet spreadsheet using this formula : https://drive.google.com/uc?export=view&id={fileID}
I use this column for the localisation background and it is working now.

It works because data are on Google Cloud but if there is another project with data stored on another cloud provider, it will not workโ€ฆ

Thanks for your help @tsuji_koichi

Your expression was missing the part โ€œ&fileName=โ€

SUBSTITUTE(concatenate(โ€œhttps://www.appsheet.com/template/gettablefileurl?appName={YourAppID}&tableName={YourTableNameWithPlanImage}&fileName=โ€,[ImageColumn]), " ", โ€œ%20โ€)

Thanks for correction, yes indeed.

Hi guys,
Iโ€™m trying to do a similar thing
I have a table [Levels] where I can load in a Floorplan in as a โ€˜fileโ€™ type in a PNG format in a column called [Floorplan].
This works well as I can view the Floorplan when I click on the file icon in the Level detail.

But what Iโ€™m trying to do is;
I have another table [Assets] where I select the [Level] and I want it to load the relevant Floorplan for the custom map for a XY column.

@Wayne_Rose
you can have a look to the app called โ€œZoom in Formโ€ done by @Fabian.
https://www.appsheet.com/samples/Made-by-Fabian?appGuidString=e1c4e4e1-df43-4257-8538-cfbc7df031fe
He has files .png and then he has a column type XY using the png file with this formula : SUBSTITUTE(CONCATENATE(โ€œhttps://www.appsheet.com/template/gettablefileurl?appName=ZoominForm-549987&tableName=Zoom in Form&fileName=Images/โ€,[Filename]), " ", โ€œ%20โ€).
It seems to be similar as your problem if you replace [FileName] by your column

Top Labels in this Space