After saving the object we would like to call it back and present it on our page. To do so we will use the
objectId
of the record which is in our example "uD3KzzDd2b". Keep in mind that all objectId
are unique values, so if you are following the steps please copy your objectId
from your table.
In order to retrieve our object we are going to use the Simbla.query
that we will explain more about in our next guide.
We wish to present our final result on our page using our HTML element. Here is our HTML code:
Our Javascript code retrieving the record:
$("#cmodel").html(car.get("car_model"));$("#cyear").html(car.get("car_year"));$("#ccode").html(car.get("car_code"));
alert("Error - The object was not retrieved successfully" + error.message);
To retrieve values from Simbla.object
, use the get
method:
The three reserved values are provided as properties and cannot be retrieved using the 'get' method nor modified with the 'set' method: