I am retrieving a list with caml query and Javascript. Everything works fine besides the fact that I have an image column and not all lists have that column populated: Here is a sample query I am using:
<Where>
<And>
<Eq><FieldRef Name='Name' /> <Value Type=’Text’>'name variable+'</Value></Eq>
<Eq><FieldRef Name='Address' /> <Value Type=’Text’>'+address variable+'</Value></Eq>
</And>
</Where>
Assuming I have a title column and not all title fields (columns) are populated, when I try to retrieve my list - the list items without anything in the title is not returned.
listItemInfo += '\nRoom Name: ' + oListItem.get_item('Title')+ ' ' +'Name: ' + oListItem.get_item('Name') + ' ' + 'Address: ' + oListItem.get_item('Address');
document.getElementById('queryResults').innerHTML=listItemInfo.toString();
How can I return list items regardless of if the Title column is populated or not?
Thanks.