GetDocumentId

0 votes

Hi Team

                I need to know about how we can find document Id.and how to get document using key value pairs.and As per Your updations there are inbuilt methods like insertJsonDocumnet,Delete All Documents,deletdocumnet byID,but some methods could not get accessed while using with storage service like there is method addorupdatekey but i am unable to accessed these kinds of methods.Is there any update on this platform..Please help me out.i got stuck in storage services.

 

Any Help Would be appreciated.

 

Thanks:-

Sourabh

asked Apr 17, 2014 in App42 Cloud API-BaaS by sarora (56 points)
recategorized Oct 24, 2014 by sushil

1 Answer

+1 vote

You can find the related docs here.

1. find document Id

2. get document using key value pairs

In which SDK( with version ) you can't access these methods.

 

answered Apr 17, 2014 by sshukla480 (407 points)
Hi
    Ok,Thanks for your Valuable Feedback...

I have one another query that is how to fetch documentId from JsonDoc that we get from server after creating a user.
Below is the Json :-

{
    "app42": {
        "response": {
            "success": true,
            "storage": {
                "dbName": "sendnotificationtouserdemo",
                "collectionName": "foo",
                "jsonDoc": [
                    {
                        "_id": {
                            "$oid": "534fd65ce4b060aded5ecdf5"
                        },
                        "coins": 25,
                        "userName": "asd",
                        "_$createdAt": "2014-04-17T13:25:47.995Z",
                        "friendsList": "[abc, xyz]",
                        "_$updatedAt": "2014-04-17T13:25:47.995Z"
                    },
                    {
                        "_id": {
                            "$oid": "5350a8b2e4b09fa36d62a9a7"
                        },
                        "coins": 25,
                        "userName": "yui",
                        "_$createdAt": "2014-04-18T04:23:14.775Z",
                        "friendsList": "[abc, xyz]",
                        "_$updatedAt": "2014-04-18T04:23:14.775Z"
                    }
                ]
            }
        }
    }
}

Can you please tell me how to fetch "$oid".I get an Json Exception while fetching documentID from Json.
and i am using ADT version of 22.2.1.But unable to fetch method like addorupdatekey.

Any Help Would be appreciated.Waiting for your positive feedback..


Thanks:-
Sourabh
Please download our latest SDK to access addorupdatekey method.
https://github.com/shephertz/App42_ANDROID_SDK/tree/master/2.5
Thanks for your positive response.
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...