6

Short answer - it works as expected If you select * a soup, you will get all the "internal" columns we create to support smartstore operations (more on this below). Columns that hold data from "indexed paths" use the type specified in the indexed spec (string, integer, floating etc). Since we don't support a type object, when you index non-leaf nodes, you ...


3

pageSize is actually an optional attribute so if you do not specify it, you should be getting everything at once. Also, you can use hasMore() and getMore() to check and retrieve subsequent records by keeping the existing page size value. The default pageSize value is 10


3

Better late than never I suppose, but yes, you have to create indexes for all of the fields you want to query by. So you'd need to create an index on some_field__c in order to filter on it in a SmartSQL query, and yes it's a bit annoying. That said, you can at least change the index specs you have on a soup and re-index the data. From the docs: The ...


2

You can query the soup using the following approach for a range. I use it all the time and it works well buildRangeQuerySpec = function(path, beginKey, endKey, order, pageSize) This QuerySpec allows you to specify a range of values with the beginKey and endKey parameters. For instance, if you wanted to query all Names between “Adams” and “Zaphod”, you ...


1

Based on the syntax table in the Mobile SDK docs, try changing your smartSql to: result = query("SELECT {Lead:_soup} FROM {Lead}"); Note that this should return the entire JSON Lead object, and not an object with only specific fields. I don't believe you can return arbitrary JSON objects containing only certain field from the originally stored object(s).


1

The application should be careful not to hold on to instances of smartstore or mobile sync manager after a logout. The fact it works on restart means it is probably what is going on. One way to achieve that is to avoid capturing the sync manager or smartstore in a instance variable and instead use a helper method like the following: func getSmartStore() -&...


1

Ok this Query Works to select using Where Condition 'JSONArray result1 = smartStore.query(QuerySpec.buildSmartQuerySpec ("select {Note:subject},{Note:note} from {Note} WHERE {Note:Type}='Uncategorized'", 2000), 0);'


1

Some functionality to handle this has been added in Mobile SDK v5.2. The docs on the website don't reflect this new functionality yet, but the PDF in the GitHub repository does. Ctrl+F for "ParentChildrenSyncDown" and "ParentChildrenSyncUp".


1

It is looking like you have made a store declaration wrongly. Everything is perfect. globally you need to declare a store variable var store = SFSmartStore() in your viewDidLoad() store = SFSmartStore.sharedStoreWithName(kDefaultSmartStoreName) as! SFSmartStore Hope it will work :)


1

Kevin Poorman replied to your question at 10:31 PM on 7/17/2014. Your question: “Can I use SmartSync framework with Sencha Touch? I am new to Sencha Touch framework. Please help!” Reply: “SmartSync is, at it's core, a javascript library. When you create a hybrid app using forceios, you'll see it spit out smartsync.js While Sencha touch likely doesn't ...


Only top voted, non community-wiki answers of a minimum length are eligible