Questions tagged as 'dinamico'

1
answer

Strange values when generating array in a dynamic object in PHP

Follow this example code: class Object{ private $keys = []; private $values = []; public function criarArray(){ $obj=get_object_vars($this); foreach($obj as $key => $value): $this-&g...
asked by 19.09.2017 / 20:19
1
answer

how to capture an id dynamically and in sequence in postgresql?

It refers to an audit table that I am creating, the purpose is to register the fields of the table in question. But I can not capture the ex id: create or replace function audit_unidade.log_unidade_escola() returns trigger as $body$ begin --...
asked by 07.12.2018 / 14:17
1
answer

Creating a C #

Good afternoon friends, I'm creating a program in C # that should plot the current values of the serial port (arduino) in a picture box. To draw the graph I am creating points (x, y) and linking them forming drawline lines. In this way the graph...
asked by 28.11.2018 / 17:43
0
answers

Angular 6 using ChartJs creating dynamic charts how to reference the canvas?

I need to create a chart for each product, and I do not know how many products have in the array in advance. So, in the template I'm dynamically creating the canvas like this: <div *ngFor="let item of Grafico; let i = index"> <canva...
asked by 08.11.2018 / 15:48
1
answer

ng-change with dynamic object

Good morning, I'm using angle 2 and I'm having trouble using the 'ng-change' property after I dynamically generate the object below: <input type=text class="insert" id="input' + data.id + '" ng-model="input" ng-change="myFunction()" maxle...
asked by 18.10.2018 / 14:55
0
answers

How to put in hierarchy

I need to create a dynamic menu where it creates the hierarchy according to IdMenuPai but unfortunately I can only list without hierarchy, could anyone help me? function montaMenuFilho($menu) { echo '<ul class="dropdown-menu pull-left"&...
asked by 02.10.2018 / 23:39
1
answer

Dynamically fill ArrayList ANDROID STUDIO

The main screen of my app is composed of some sessions using RecyclerView. For the adapter of my recyclerview I pass an arraylist of the type Sessoes so that the screen stays the way I want. But this arraylist I can only fill statically. I'd lik...
asked by 08.10.2018 / 14:42
0
answers

Dynamic menu with hierarchy

I need to list a menu with a hierarchy where the idmenu is below the idmenupai, with sub-level. At the moment I can only list all the menu items. the following code <?php foreach ($menu as $item) {...
asked by 04.10.2018 / 19:45
1
answer

Invert Dynamic Stack

Can anyone help me with this stack? The purpose is to create a function that invert the values of the stack, I tried to do this use the Invert () function of the code below, but it is not working, when I execute it simply closes the code. If any...
asked by 20.09.2018 / 04:07
1
answer

Dynamic Input, Laravel, JS

Hello, I'm trying to make a dynamic input, it consists of a button that you add two fields at a time, a text and a file, but I need to persist this in the database, I think I need to make the names of the inputs change and in the controller can p...
asked by 09.05.2018 / 01:07