Page 1 of 1
mapping problem
Posted: Thu Oct 29, 2015 2:35 pm
by Istvan
Hi,
I would like mapping to list. This is working, but i need use two fileds in one target component (checkboxitem) value. I try this, but dosnt work.
var id = value.id;
var str = value.er;
var n = $.inArray(id, str);
if (n -1) {
return true;
} else {
return false;
}
Please help me.
Thanks
mapping problem
Posted: Fri Oct 30, 2015 7:31 am
by Serhii Kulibaba
Hello,
Could you send us values of the id and str variables?
mapping problem
Posted: Fri Oct 30, 2015 8:02 am
by Istvan
["5620ce27e4b034ce89efb683","561f90d2e4b0335a64ab4289"]
ID-s
mapping problem
Posted: Fri Oct 30, 2015 12:35 pm
by Serhii Kulibaba
What value does variable "str" have?
mapping problem
Posted: Fri Oct 30, 2015 12:58 pm
by Istvan
I would like search id (from mapping) in the str ... If exist then checkbox value true ...
mapping problem
Posted: Sun Nov 01, 2015 3:08 pm
by Istvan
er value : ["5620ce27e4b034ce89efb683","561f90d2e4b0335a64ab4289"]
this is an id "list"
mapping problem
Posted: Sun Nov 01, 2015 4:39 pm
by Istvan
The solution:
https://getsatisfaction.com/apperyio/...
mapping $i
2 JS
var iddd = value.id;
var strr = JSON.parse(value.er);
var n = jQuery.inArray(iddd, strr);
if (n -1) {
return n;
} else {
return n;
}
mapping problem
Posted: Mon Nov 02, 2015 9:27 pm
by Serhii Kulibaba
Sorry, do you need further assistance?
mapping problem
Posted: Tue Nov 03, 2015 7:56 am
by Istvan
I solved
thanks