lundi 2 mars 2015

It is impossible to Bring in the field the selection list out of the filter




$().SPServices({
operation: "GetListItems",
async: false,
//webURL: "http://rusmow01as09/sites/sharepoint/",
listName: "Telekom Group",
CAMLViewFields: "<ViewFields><FieldRef Name='Title' /><FieldRef Name='Name' /><FieldRef Name='NameEng' /><FieldRef Name='Country' /></ViewFields>",
CAMLQuery: '<Query><Where><Eq><FieldRef Name="Country" /><Value Type="Text">' + $("#test7").val() + '</Value></Eq></Where></Query>',
completefunc: function (xData, Status) {
$(xData.responseXML).SPFilterNode("z:row").each(function() {
var Name = ($(this).attr("ows_Name"));
$("#ManagerIT").val(Name);
});
}
});

<select title="Manager" id='ManagerIT' listFieldName='ManagerIT' class='formInput' ></select>


in a normal field (input) works.








0 commentaires:

Enregistrer un commentaire