Questions tagged as 'object'

0
answers

How can I add 2 object type lists? C #

I have a question about the sum of values in 2 lists, as follows list1: (taking into account that the values are "name", "type", "quantity") {a, b, 23} {c, d, 2} {e, f, 5} {g, h, 10} list2: (taking into account that the values are "name",...
asked by 21.10.2018 / 18:35
2
answers

Group Array by matches

My question goes first because I am developing a project where I need to list the medications associated with a medical formula, but after saving the data when I visualize them, I repeat the heading of the formula multiple times, for which I nee...
asked by 23.10.2018 / 07:39
1
answer

error AttributeError: 'str' object has no attribute 'value' when i use methods in other class Python

I'm doing a project in flask in which I already have about 50 classes with different functionalities, and when I try to return the value of a method in another class I get the error like the following:    AttributeError: 'str' object has no a...
asked by 17.10.2018 / 20:25
0
answers

Show properties of an object in javascript

I am working on an application that has an object called SessionContext, this object has session variables that are sometimes persistent, inside the application (I did not do it myself) there are many get and Set for example: var ctx = new Ses...
asked by 15.08.2018 / 04:47
1
answer

How to save an array inside another array and then save to Firebase

Help! I have this snippet of code to store the following: var company = { description: "", logoPath: "", logoUrl: "" }; var companiesArray = { length: 0, addElem: function addElem(elem) {...
asked by 20.07.2018 / 12:40
2
answers

traversing an object with Angular 5

I have the following, I receive data in JSON format from a base in firebase using the following code: constructor(db: AngularFirestore, private modalService: BsModalService) { db.collection('usuarios').valueChanges() .subscr...
asked by 26.06.2018 / 23:57
1
answer

The default constructor does not work for me (Relational Object Database)

I would like to know if you see the error, is that I do not understand why I can not insert records with the constructor by default, only by the constructor that I have defined create or replace type MiembroEscolar force as object ( co...
asked by 01.04.2018 / 13:23
0
answers

Return to React complex structure with objects and arrays Nested Map

Hello friends, some capo that can help me, I tell you; I receive this data with this structure of an API, how could I render the errors? map, foreach ??? It is an object that contains an array with errors, that array receives objects that at...
asked by 09.03.2018 / 14:58
1
answer

You doubt to save a String in HashMap

I have a little problem..I'm using a HashMap > to save values. But in certain cases I have to store a String instead of a List. Is there a way to do some cast or something like that without having to create another Map? Part of the code...
asked by 25.02.2018 / 14:01
1
answer

'_io.BufferedReader' object has no attribute 'size'

In my web application about Django I have this code: docPDF = open('publicaciones/Dictamen-'+nombreRevista+'.pdf','rb') dictamen.fileEsp.save(name=final_name,content= docPDF) However, the last line gives me an error:    '_ io.BufferedRea...
asked by 13.02.2018 / 15:34