script type = "text/javascript" >
var ObjetivosGUID = "",
ProcesosGUID = "";
$(document).ready(function() {
GetGUIDS();
SetObjetivos();
$('input[id^="Anyo_"]').change(function(a) {
SetObjetivos()
})
$('input[id^="IdFather_"]').closest('tr').hide();
});
function GetGUIDS() {
devolverListas(["Objetivos", "Procesos"], !1, function(a) {
ObjetivosGUID = a[0];
ProcesosGUID = a[1]
})
}
function SetObjetivos() {
var Anyo= $('input[id^="Anyo_"]').val();
//var fieldToFilter= $('select[id^="Objetivo_"]').attr('title');
var Objetivo=$('select[id^="ParentObjectives_"]');
Objetivo.empty();
Objetivo.append("")
$().SPServices({
operation: "GetListItems",
listName: "77D32AB3-FF20-44BB-B124-F2C5CEF33790",
webURL:"https://nohungerforum.sharepoint.com/sites/proquo",
CAMLQuery:""+Anyo+"",
completefunc: function(xData, Status){
$(xData.responseXML).SPFilterNode("z:row").each(function(){
var Nombre=$(this).attr('ows_Title')
var repetido=false;
$('select[id^="ParentObjectives_"]>option').each(function(){
if($(this).text()==Nombre)
repetido=true;
})
if(!repetido)
Objetivo.append("");
});
},
});
}
function SetProcesos() {}; < /script>