I am trying to delete messages from the user interface using javascript. I am able to access all other fields within the entity but I cant access the uuid field.
On Wednesday, November 7, 2012 at 2:36 PM, keyur chitnis wrote:
> I am trying to delete messages from the user interface using javascript. I am able to access all other fields within the entity but I cant access the uuid field.
> -- You received this message because you are subscribed to the Google Groups Usergrid group. To post to this group, send email to usergrid@googlegroups.com (mailto:usergrid@googlegroups.com). To unsubscribe from this group, send email to usergrid+unsubscribe@googlegroups.com (mailto:usergrid+unsubscribe@googlegroups.com). For more options, visit this group at https://groups.google.com/d/forum/usergrid?hl=en
I am developing a mobile messenger application using apigee. In order to delete messages on the user interface, I need to extract the message user decides to delete. One way we can extract a msg from apigee is using UUID.
> On Wednesday, November 7, 2012 at 2:36 PM, keyur chitnis wrote:
> I am trying to delete messages from the user interface using javascript. I > am able to access all other fields within the entity but I cant access the > uuid field.
> -- You received this message because you are subscribed to the Google > Groups Usergrid group. To post to this group, send email to > user...@googlegroups.com <javascript:>. To unsubscribe from this group, > send email to usergrid+u...@googlegroups.com <javascript:>. For more > options, visit this group at > https://groups.google.com/d/forum/usergrid?hl=en
There are several ways you could accomplish this with Javascript, and all really depend on your project. What you are trying to do is a DELETE. If you were using curl, the command would look like this:
This first one is our javascript SDK, which you can include in your project. It will allow you to make all types of calls against the SDK. You would want to do something like this:
Usergrid.ApiClient.runAppQuery(new Usergrid.Query(
"DELETE",
"users/testuser/activities/8ec05faa-2821-11e2-988a-02e81ae640dc",
null,
null,
function(results) {
//success!
//do something with the results
},
function() {
//failure
alert('Error, Unable to retrieve users.');
}
););
On Thursday, November 8, 2012 at 11:39 AM, Sunil Kumar BT wrote:
> Hi Rod,
> I am developing a mobile messenger application using apigee.
> In order to delete messages on the user interface, I need to extract the message user decides to delete. > One way we can extract a msg from apigee is using UUID.
> > On Wednesday, November 7, 2012 at 2:36 PM, keyur chitnis wrote:
> > > I am trying to delete messages from the user interface using javascript. I am able to access all other fields within the entity but I cant access the uuid field.
> > > -- You received this message because you are subscribed to the Google Groups Usergrid group. To post to this group, send email to user...@googlegroups.com (javascript:). To unsubscribe from this group, send email to usergrid+u...@googlegroups.com (javascript:). For more options, visit this group at https://groups.google.com/d/forum/usergrid?hl=en
> -- You received this message because you are subscribed to the Google Groups Usergrid group. To post to this group, send email to usergrid@googlegroups.com (mailto:usergrid@googlegroups.com). To unsubscribe from this group, send email to usergrid+unsubscribe@googlegroups.com (mailto:usergrid+unsubscribe@googlegroups.com). For more options, visit this group at https://groups.google.com/d/forum/usergrid?hl=en