Support Topics Documentation Slack YouTube Blog

Refrence object in geo metadata

im trying to reference a data object into the metadata
what is the correct way to achieve this?

Hi! Can you provide more specific example of what you want to do?

like this example

Have you checked this ?
This is the same documentation as you mentioned but for new versions.

im using codeless
strange it wasn’t working couple of days ago but now its referencing ok

So its fine if everything works okay now. I hope this problem will not appear again)

hey sofia
since we are on the topic

how can i search the metadata for that referenced object? this is what i have

You cannot “search the metadata”, but you can “search geopoints by metadata”. Is this what you meant?

Yes please
i know how to search if the meta is like this {“foo”:“bar”} but not i its a referenced data object

If your referenced object contains objectId, try to use it in search.

like this?

no result.

removed create list with block and it did work
that is the second time this happen. i try the first time and it doesn’t work then i try later the same configuration and it works

only with geo points blocks.

it didnt work.
what happen was codeless editor removed the block that set the variable value (its just was not there when i checked)

i got this error whith the request
“code”: 0,
“message”: “Request path contains unescaped characters”

The metadata property must contain object which has name of the property and its value. In your case, the name of the property is service and the value is an array (list), which is wrong. The value must be a specific objectId.

if you mean like this:

no result. and i have confirmed that there is a an object in the variable “service”.

Have you checked in Backendless console if there is a geopoint with the metadata?

yes i double checked

This is the solution
set the property name in create object in metadata to “service.objectId”

however this is limited.

  • i cant search with “LIKE”
  • search with string it give me this error

“code”: 0,
“message”: “Request path contains unescaped characters”

Search by metadaya doesn’t support LIKE. I am not sure what you mean by “search with string”

it does support LIKE from the console.

and what i mean by search with string is when i want to search in the referenced object name for example. i get the error stated above. so i cant search if the object name have utf-8 characters.