Hi ,
I am new to backendless . I have successfully created table by defining class “newclass” and using Backendless.Persistence.save .
Problem :
I need to create new table of type “newClass” but with different name everytime (not updating existing) but don’t know how to provide new name to table fromk same class.
Scenario : multiple Dealer receives order from multiple subdealers . I have one template class for orders that will be received from subdealers and want to create new table for every new order (using template class) .
Please suggest solution .
Thanks .
Hi Ashutosh,
If I understood you correctly, you want to re-use the same client-side class, but store instances of that class in a table with different name every time?
if this is the case, you should do this before you save an object of that class (in Android):
Backendless.Data.mapTableToClass( “table name”, YourClass.class );
However, I’d question your design approach here. Creating new tables for each new order does not seem right. Why won’t you store all the orders in one table? You could have a related order called “Dealer” and establish a relationship between Dealer and Order tables…
Mark
Thanks Mark ! This resolves my problem 
This design is preferred due to other requirements of application .
Ashutosh