Questions tagged as 'array'

2
answers

NG-REPEAT within NG-REPEAT - ANGULARJS

I have a multidimensional array. To demonstrate it in my view I use a ng-repeat in an ul within another ng-repeat in a li, this way: <ul ng-repeat="section in sections"> <li> {{section.name}} </li> <ul>...
asked by 03.11.2017 / 20:17
1
answer

Integer array conversion in String

I am a beginner in Java and would like to learn how to convert an array of integers to a String.     
asked by 24.06.2014 / 05:50
0
answers

VueJS: how to pass data from one array to another array?

I have the following problem: I have two separate lists and I need to pass the selected data (checkbox) to the other list, removing the selected item and putting it in the other list (along with its header). I tried to push but I can not copy...
asked by 31.10.2017 / 13:54
1
answer

conditional search in PHP using codeigniter

I have this table in my database Ineedtoselectallproductsbelongingtoabrand,butiftheproductcodeisthesameyoushouldnotrepeattheproduct,youmustusethesameproduct.Example,whenselectingToyotaIintendtohavethefollowingresult: Mycontrollerselectsallpr...
asked by 19.10.2017 / 14:19
0
answers

AngularJS - Json in LocalStorage does not update Array

I have a form in a View that should update the "color" property of an Array. This array contains 5 objects, each one serving to set the color of an element of another View (so the option to use localStorage, since I can not use any access to the...
asked by 09.10.2017 / 14:06
0
answers

How to make an infowindow with different content for each marker in a loop

I'm trying to make each marker in this loop have an infowindow with different content, the arrays are the same size and are being taken from the database, the problem is that instead of creating new infowindow it just replaces the contents of th...
asked by 07.10.2017 / 22:21
0
answers

How to pass a function in an array in powershell?

I need to create a script, some of the fields are preventable and I would like to pass a function to edit it, but when I step inside the array it pops an ERR .     
asked by 26.09.2017 / 03:22
1
answer

Checking for code matching in a vector within a struct in C

Next, I've created a struct struct eventos { int codigo; char data[11]; char atracao[50]; int ingresso; float valoring; }; And so, I created a vector that way struct eventos ficha[5]; My goal is to check inside a f...
asked by 24.09.2017 / 21:33
1
answer

Insert data from an array into the database by CodeIgniter

I am trying to make a INSERT using CodeIgniter and would like to know if there is a more practical form than the one used below: MODEL public function set_cliente() { $dados = array( 'codigo_cliente' => $this-&...
asked by 27.09.2017 / 20:58
1
answer

Array has values, but its length is zero [closed]

I need to iterate over this array , however, although it is not empty, length of it returns 0 as you can see, does anyone know the reason? Thescenarioisasfollows:I'mgettingJSONdatafromanAPIanditeratingovertheobjectstoputthevalue...
asked by 30.09.2017 / 10:46