Questions tagged as 'vistas'

1
answer

Problems with a view, with create () and store () methods

I have a Controller to add an "Annotation" to a student, which receives "student_id", "id_asignatura" and "id_profesor", but I have problems in the view, since it only shows me the "id" in the fields and even though I change parameters it does n...
asked by 08.03.2017 / 15:17
1
answer

Add more fields in a select with pluck laravel

Hi, I want to show more data in a select with the pluck method, does anyone know how to do it? It turns out that I have a Course table, which has a name and type as attributes. I want to give a course to a student, but with the pluck that I h...
asked by 11.04.2017 / 22:09
2
answers

Relations in laravel

Good, I have a view where I receive a "subject id", "student id" and I want to show the qualifications that ESE student has in ESA ASIGNATURA. I have the following function public function verCalificacion($id, $idasi) { $alumno = Alumn...
asked by 11.03.2017 / 05:21
0
answers

Show one field depending on the value of another. Django Forms

Very good to everyone. I have a problem when displaying elements in a form in Django. I have 2 models, one called Recurso and another called Sesion , which are related in such a way that a resource can have several sessions availabl...
asked by 18.06.2018 / 13:15
1
answer

laravel pluck square brackets and double quotes

I have the following function that shows a student's course public function show($id) { $alumno = Alumno::find($id); $curso = Matricula::where('id_alumno',$id)->get()->pluck('curso_alumno'); dd($curso); return view('alumn...
asked by 15.06.2017 / 01:26
1
answer

Problem in a laravel view

How can I show the number of students per course in an index view? These are the relationships in my models Student: public function curso() { return $this->belongsTo(Curso::class,'id_curso','id'); } Course: public functio...
asked by 31.03.2017 / 00:54
1
answer

Condition If in sight, laravel

Good, I have a list of students in a view in which I can place observations. My query is how to create an "if" to show me the "add observation" only if you do not have any in the database and in case you already have an observation do not show t...
asked by 08.03.2017 / 22:54
1
answer

Views for cubes

Hello everyone, does anyone know if it will be possible to create views from a cube? That is, I have a cube with many metrics and dimensions, but I have many users who want to see the cube but do not want to see all the metrics or all the dimens...
asked by 28.09.2016 / 01:47
1
answer

How to add columns to a view in mysql?

I want to make a view contain about 9 columns, so far it's just simple with a single column What happens is that I have qualification_podcast and qualification_articles and I have them in different views, but I would like to join them i...
asked by 25.08.2016 / 03:06
1
answer

Qt Tree View with Checboxes

I modified the example of the Qt website: EditableTreeModel Example so that in the tree view I get CheckBoxes next to each Item. But ... How can I make them dependent on each other? That is, if the parent's ChechBox is selected automatica...
asked by 21.11.2018 / 15:03