Jan 17, 2016 22:15
hope you can help
Jan 17, 2016 22:15
great!
Jan 17, 2016 22:11
the matching one is {
id: "105",
value: "Estimate Required"
}]
Jan 17, 2016 22:10
if you look at the data there is a matching id and value in the $scope.effortTags and also in $scope.tasks.entity.selected_tags.effort but this is not selected
Jan 17, 2016 22:07
because i'm going to be creating a form to update
Jan 17, 2016 22:06
I have a jsfiddle here jsfiddle.net/gutigrewal/mtp0kcdd/6
Jan 17, 2016 22:06
im not sure how i would do it im new to angular
Jan 17, 2016 22:05
now when i fetch some other data which uses this array of selectable items. it may or may not already have a selected value
Jan 17, 2016 22:04
this forms my select
Jan 17, 2016 22:04
$scope.effortTags = [{
category: "5. XS",
id: "94",
value: "01:00:00"
}, {
category: "4. S",
id: "96",
value: "02:00:00"
}, {
category: "3. M",
id: "94",
value: "04:00:00"
}, {
category: "2. L",
id: "94",
value: "07:00:00"
}, {
category: "1. XL",
id: "94",
value: "16:00:00"
}, {
category: "0. XXL",
id: "94",
value: "38:00:00"
}, {
id: "105",
value: "Estimate Required"
}];
Jan 17, 2016 22:04
i have an array of selectable items
Jan 17, 2016 22:03
hello
Jan 17, 2016 22:03
@PareshGami no, I want to load the load with already selected value
Jan 17, 2016 22:03
I am trying to access the option selected within this entity.data.selected_tags.effort in the ng-model in the select. entity.data.selected_tags.effort corresponds data that exists in the $scope.tasks
Jan 17, 2016 22:03
yes i want to get the selected option when the form is run @PareshGami
 
Jun 7, 2015 21:51
correct! thanks for the help!
Jun 7, 2015 21:50
i just need to then reenable the inputs and clear them!
Jun 7, 2015 21:50
thanks that did the trick
Jun 7, 2015 21:45
h91em2
Jun 7, 2015 21:44
236 386 241
Jun 7, 2015 21:44
i have teamviewer
Jun 7, 2015 21:44
in the console it does come back as [object Object]
Jun 7, 2015 21:43
ive only got it locally on my laptop
Jun 7, 2015 21:43
@VasiliyVanchuk comes back undefined
Jun 7, 2015 21:43
@VasiliyVanchuk if I do that it returns Uncaught SyntaxError: Unexpected token j.
Jun 7, 2015 21:43
@VasiliyVanchuk i can see the error can you post a solution?
Jun 7, 2015 21:43
@minitech that comes back undefined
 
Sep 4, 2014 20:53
now i can crack on!
Sep 4, 2014 20:53
thanks accepted the answer!
Sep 4, 2014 20:51
thanks for the help youre a star
Sep 4, 2014 20:50
no thats fine you aced it now though! :)
Sep 4, 2014 20:49
lol
Sep 4, 2014 20:49
yeah thats not good really
Sep 4, 2014 20:49
i know its when I do the array_merge the values are loaded incorrectly
Sep 4, 2014 20:47
tbh i don't know whos right or wrong lol
Sep 4, 2014 20:47
someone posted on my question saying array_merge resets the array keys, Use the + syntax to combine the arrays in order to retain their keys, or use something like array_unshift
Sep 4, 2014 20:46
nope still loads it incorrectly, it seems to be the array_merge
Sep 4, 2014 20:43
yes
Sep 4, 2014 20:36
and then subsequently doesn't have the value id to find the clients projects
Sep 4, 2014 20:35
but then in the front end it shows the id in the select
Sep 4, 2014 20:33
its all correct
Sep 4, 2014 20:33
#1 {main} [] []
[2014-09-04 20:32:37] production.INFO: array (
2 => 'Client 2',
1 => 'Client 1',
) [] []
[2014-09-04 20:32:50] production.INFO: array (
2 => 'Client 2',
1 => 'Client 1',
) [] []
[2014-09-04 20:32:53] production.INFO: array (
2 => 'Client 2',
1 => 'Client 1',
) [] []
Sep 4, 2014 20:30
hi!
Sep 4, 2014 20:25
stackoverflow.com/questions/25674361/… i posted a question about that placeholder error, if youre interested
 
Sep 4, 2014 20:24
hey i posted a question about this as I can't figure it out, if your interested stackoverflow.com/questions/25674361/…
Sep 4, 2014 08:21
I checked to see if it was my jquery but it wasn't causing it to switch positions when the page renders it loads up like that
Sep 4, 2014 08:21
hi sorry i went to sleep and didn't make any progress on it at all.
Sep 3, 2014 22:06
ok thanks :)
Sep 3, 2014 22:05
ok cool thanks for the help so far anyway
Sep 3, 2014 22:04
which is wrong it should be 2