when saving the values the table shows increment of row but all values saved as blank
here is the code for the Orders class and its calling
package com.example.admin.wrapsody.Server_Objects;
public class Orders {
private String address, coupon, comments, email, extras,
order, ordertime, phone, restrauntloc, status, subtotal;
public void setAddress(String address) {
this.address = address;
}
public void setCoupon(String coupon) {
this.coupon = coupon;
}
public void setComments(String comments) {
this.comments = comments;
}
public void setEmail(String email) {
this.email = email;
}
public void setExtras(String extras) {
this.extras = extras;
}
public void setOrder(String order) {
this.order = order;
}
public void setOrdertime(String ordertime) {
this.ordertime = ordertime;
}
public void setPhone(String phone) {
this.phone = phone;
}
public void setRestrauntloc(String restrauntloc) {
this.restrauntloc = restrauntloc;
}
public void setStatus(String status) {
this.status = status;
}
public void setSubtotal(String subtotal) { this.subtotal = subtotal; }
}
here is the code for saving
Orders orders = new Orders();
orders.setAddress(address);
orders.setComments(comments);
orders.setCoupon(coupon);
orders.setEmail(email);
orders.setOrder(order_string);
orders.setExtras(extras_string);
orders.setOrdertime(formattedDate);
orders.setPhone(mobile);
orders.setSubtotal(Integer.toString(subtotal));
orders.setRestrauntloc(location);
orders.setStatus(“ordered”);
Backendless.Persistence.save(orders, new AsyncCallback<Orders>() {
public void handleResponse( Orders response )
{
Toast.makeText(Review_order.this, “Ordered” , Toast.LENGTH_SHORT).show();
}
public void handleFault( BackendlessFault fault )
{
Toast.makeText(Review_order.this, "Orders error - "+fault , Toast.LENGTH_SHORT).show();
}
});