Hi, how do I create an object from variables in Page Data? What I do now is that I create Json from those variables and use the json to object function. But I doubt if that’s the best way. For example, can I create objects from variables in Page Data with this funtion:
![image](https://support.backendless.com/uploads/default/original/2X/f/f0a6202d619a807935a806d16ab4d55e0b4ca9a8.png)
If yes, how do I provide the data in propName?
Or can it be done with this one?
![image](https://support.backendless.com/uploads/default/original/2X/2/28e8bbbaf3087b407030a23ca430c44a8bde7609.png)
If yes, how?
Hi,
Is the object structure not pre-defined?
Regards,
Mark
For example, for a table called flights, I create an object like this:
But it must be easier than that, no?
To make this question maybe more complete, I save to the database as follows:
(this On Click Event is not finished yet)
Hello @Michiel_Prins1
We can propose you the following solutions:
Just create an object with the properties you want.
This solution allows you to build a newObject with all the Page Data props that are described in the list
![image (1)](https://support.backendless.com/uploads/default/original/2X/5/5f1de82885a7e468afd29f967a167fba1c98ac09.png)
Regards,
Inna