realm-list Questions
4
Solved
When I use realm.where(Model.class) it returns RealmResults and list item's fields are empty. How to convert queryset to readable ArrayList or iterate over RealmResults to get actual data from obje...
Overpower asked 16/5, 2016 at 9:46
2
Solved
Conversation class previously had a string field named "message". Now this "message" field is removed and i have added a "RealmList allMessages" inside Conversation class instead of old "message" f...
Rowlett asked 16/7, 2018 at 17:8
2
Solved
How do I prevent adding duplicates to a list in RealmSwift?
I have my User as a realm object, but the real data source is a server (simply caching the user locally with Realm). When I get the curr...
Glutinous asked 21/7, 2016 at 20:37
4
Solved
I have done R&D for limit in query with no success. There is one way with which to paginate data in Realm with sub list but no success with that. It shows duplicate value in it.
Here is what I...
Stillman asked 10/8, 2016 at 12:26
1
Solved
im working with realm in android and im getting this error message:
error: Field "items" of type "java.util.List" is not supported.
it's at this line:
private List<Item> items;
here is t...
Georgettageorgette asked 21/6, 2018 at 2:57
2
Solved
As we dont have any list data type in realm, how can we use ArrayList<String> in a realm object?
I had same question for the arrayLists of the custom models we make i.e. ArrayList<CustomMo...
Quaternary asked 15/5, 2015 at 12:34
1
Solved
Scenario:
I have a model(DBBasket) to persist locally, the number of added products and products itself.
When the user clicks on the + button under each product thumbnail
I'm increasing totalQuan...
Prismatic asked 28/2, 2018 at 12:39
2
Solved
I'm working with Realm to create my android app's ORM with Realm. The problem is that when I try to create an object like this:
public class Airport extends RealmObject {
private int Id;
private...
Hornblende asked 23/6, 2016 at 11:6
3
Solved
I'm using Realm for Local storage in Android. I'm getting following response form server.
[{
"ListId": 10,
"Names": ["Name1", "Name2", "Name3", "Name4"]
}]
Here is my Model
public class Mode...
Ocam asked 16/2, 2016 at 12:38
3
Solved
I have two classes. First looks like that:
class Person: Object {
dynamic var owner: String?
var dogs: List<Dogs>()
}
and second class which looks like that:
class Dogs: Object {
dynam...
Greenfinch asked 20/7, 2016 at 20:1
2
Solved
I have a video player in my app. There is a list of videos in a collection view. If you tap on one of the cells, a new view controller appears to play the selected video. Also, you can cycle throug...
Roderic asked 28/3, 2017 at 23:47
1
Solved
I have a collection view where you can select multiple cells to delete. This means that if multiple cells are deleted, then multiple objects should also be deleted in Realm - 1 object per cell.
I ...
Renn asked 20/3, 2017 at 19:31
2
Solved
I have around 20 rows in RealmResults and need to sort the list with recent dates
RealmConfiguration realmConfig = new RealmConfiguration.Builder(getActivity()).build();
Realm realm = Realm.getIns...
Wherewithal asked 13/4, 2016 at 7:33
2
Solved
Im using Realm v0.80.1 and I am trying to write migration code for a new property I added. The property is a RealmList. Im not sure how to properly add the new column or set a a value.
What I hav...
Popularize asked 28/5, 2015 at 19:56
1
Solved
I need to do a simple query in Realm, retrieve a list of MyModel object and later use it somewhere else in my app. It happens that once I query Realm, each object has null values, but the toS...
Photochromy asked 25/8, 2016 at 12:8
1
I am working with Realm ORM for my application. My Application has three Model classes that extends RealmObject. In one of the class I have defined a List of object which is creating problem.
my f...
Moersch asked 30/6, 2016 at 6:4
2
Solved
Due to Realm inability to work with promotive types, which include Strings, I'm trying to implement a JsonDeserializer just like in this question.
The issue is that I'm baffled on to why I'm getti...
Ahimsa asked 9/6, 2016 at 13:25
2
Solved
I have two Realm data models classes like this:
class TaskList: Object {
dynamic var name = ""
dynamic var createdAt = NSDate()
let tasks = List<Task>()
}
And:
class Task: Object {
...
Brentonbrentt asked 24/10, 2015 at 16:0
1
Solved
I have a superclass called Thing (I know it's not specific) that inherits from Object:
class Thing: Object {
dynamic var title: String = ""
var parents: [Thing] {
return linkingObjects(Thing.s...
Bismuthinite asked 14/9, 2015 at 5:0
1
© 2022 - 2025 — McMap. All rights reserved.