Questions tagged as 'consulta'

1
answer

Add, concatenate object to a queryset in django

Today I want to share this solution to add elements to a django queryset def Caracterizacion_estudianteUpdate(request, estudiante_id, caracterizacion_id): caracterizacion = Caracterizacion.objects.get(id=caracterizacion_id) estudiante...
asked by 14.11.2018 / 06:55
3
answers

JavaScript: How can I add the numerical elements inside a json?

Good morning everyone, my query is the following ... If I have a JSON object in javascript, for example: json = [{"Nombre":"Sutano","Edad":19},{"Nombre":"Fulano","Edad":20},{"Nombre":"Mengano","Edad":21}]; And I want to add only the numeric...
asked by 09.11.2018 / 23:03
2
answers

Mongoose query with conditional

I would like to make a query of all the files that have as id_folder 'CJJ3' or 'NQPM', however in the query I can only put a parameter, is there any way to do this? The code I have is the following File.find({id_folder: 'CJJ3'}, '_id, name')....
asked by 08.06.2018 / 07:20
1
answer

How to display data from a query by specifying the records in java [closed]

What I want is that when you select the client of the table you will be shown all the purchases made by that client in a table and that when you search for a date, for example, only the records of that client appear and not of all     
asked by 26.04.2018 / 21:26
0
answers

Kibana: I want to extract a string from a URL

I'm working with kibana, I made a bar graph, but on the x-axis the records are url's What I did for this was add the following script: { "script": "( _value.indexOf('/') > 0 ? _value.substring(_value.lastIndexOf('/')) : _va...
asked by 20.12.2018 / 05:55
1
answer

Queries with entity framework

I need to make a simple query in a login. The query would be to see how many employees are registered, if there are no registered employees show a message and then register it. thanks public partial class WPF1_Login : MetroWindow { S...
asked by 05.12.2018 / 21:10
0
answers

Inquiry With a Select Multiple PHP

In summary, I need the query to be made according to the number of options selected in the Select field. I do not know if I can explain myself clearly. Until now the code that I have is the following, however it only shows the result of a sel...
asked by 07.12.2018 / 20:18
1
answer

Convert RawQuerySet to QuerySet on DJango

I have the following Code: from django.shortcuts import render from estudiante.models import Estudiante from caracterizacion.models import Tipo, Caracterizacion from .filters import EstudianteFilter # Create your views here. def principal(re...
asked by 21.11.2018 / 07:44
0
answers

Open colorbox again when choosing option

I have the following code, whose objective is that when selecting a select option, open a colorbox with information. The problem that I present is that when you close the colorbox and select the same option again, the colorbox no longer opens, u...
asked by 06.11.2018 / 20:55
0
answers

Project credentials with another color

I would like to know why I get the Dir Gradle of another color? I can not find my Main_Activity.class file. How can I solve? Could someone help me? Thanks     
asked by 04.11.2018 / 05:01