Questions tagged [custom-object]

202 questions
1
vote
1 answer

PencilBlue - Custom Object Id's

I'm working with PencilBlue, and I'm having trouble with the custom objects Id's. The "name" field is used as an Id, but I would like it to be just a regular field and have an "id" field as identifier. How could I achieve this?
danielrvt
  • 10,177
  • 20
  • 80
  • 121
1
vote
2 answers

Custom object class in Swift

In my app I need to have a lot of labels with similar properties. Let's say they all have to be green. I don't want to have to say lbl.color = UIColor.greenColor()every time. How can I make a custom object class/struct allowing me to say something…
Mats
  • 359
  • 2
  • 6
  • 13
1
vote
1 answer

Quickblox - How to show the data using custom object with parameters IOS

I am working on an app and I am working on a contact list that I want to get filtered. Therefore I am using custom objects of quickblox, here is my code: - (NSArray *)idsFromContactListItems { NSMustableArray *idsToFetch = [NSMustableArray…
1
vote
2 answers

In Java HashSet, how it calculate hashCode for custom object?

If we do not override the hashCode(), how it calculate hashCode for custom object by default? i.e. class TrieNode { Character letter; TrieNode parent; Map children; boolean isEndOfWord; TrieNode(Character…
Zhaonan
  • 939
  • 1
  • 11
  • 20
1
vote
1 answer

How to build a 'SuperDictionary' custom object / Excel-VBA

As a heavy user of dictionaries in vba, I found useful to create a 'super-dictionary' class, that deals with lots of minor issue I don't wanna deal with the main code. Below is a draft of this 'super-dictionary' custom-object. Is this a good idea?…
user2491612
1
vote
1 answer

QuickBlox customObject Update multiple records Permissions

I'm trying to update multiple records Permissions. When I update just one record's Permissions, everything works well, but when updating multiple records, nothing happens. List qbCustomObjectList = new…
Cohelad
  • 121
  • 9
1
vote
1 answer

How to retrieve related records on Quickblox custom objects?

I know how to create relation: QBCustomObject customObject = new QBCustomObject("Comment"); // your Class name customObject.put(fieldHealth, 99); customObject.put("text", "The first film in the series…
Cohelad
  • 121
  • 9
1
vote
1 answer

Quickblox custom object push to array string that contain : ' , ' or ' " '

this is my code: String comment = newComment.getText().toString(); ... fields.put("push[array][]", comment); now, it's work well , but if the string "comment" contain for example: ' , ' (comma) - ("dsa,dsa"). on the server it's become two…
Cohelad
  • 121
  • 9
1
vote
1 answer

Quickblox requestBuilder [or]

requestBuilder.or("userPhone",myPhone,phoneList); } } QBCustomObjects.getObjects("image", requestBuilder, new QBCallbackImpl() { "phoneList" is arrayList of Strings. now on my device this code work well but on samsung devices i…
Cohelad
  • 121
  • 9
1
vote
3 answers

How to convert the DataGridView content into a List<> of custom objects?

I'm working on a Windows Forms application, written with C#. I found someone's suggestion on how to create a List<> from DataGridView control, but I need little more help on how to extract cell values. Here is the code given; let's say two…
user2026794
  • 123
  • 2
  • 13
1
vote
1 answer

upload file(image) into quickblox custom object

How do I upload file (image) that I have his Uri, into custom object? I've tried this: public void onClick(View v) { HashMap fields = new HashMap(); File newImage = new…
Cohelad
  • 121
  • 9
1
vote
1 answer

How to use Expanadable listview with custom class object in framgent?

I have one fragment in which i have placed the one Expandable list view. I have one modal class which have the list of products. In Expandable list view,on header i want to set the section name which i have placed successfully, and as a child i want…
AndroidLearner
  • 4,500
  • 4
  • 31
  • 62
1
vote
0 answers

Access model object in property editor in Spring MVC

I have a Map of two custom objects as property in my Model object that I display in JSP by directly binding it in path and items attribute of
1
vote
0 answers

Powershell: Sorting and display the most recent duplicate in a custom object (by username)

I'm looking for some suggestions/tips on how to sort and display the most recent record in a custom object (by a username). Basically, I am in a situation where I have an ActiveSync report with multiple usernames showing up on the report but I only…
1
vote
2 answers

JavaScript calls to methods from within constructors

I was reading the re-introduction to JavaScript on MDN website and came across this in the Custom Objects section: function personFullName() { return this.first + ' ' + this.last; } function personFullNameReversed() { return this.last + ', '…
SineLaboreNihil
  • 953
  • 4
  • 11
  • 18