Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6654661
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:24:58+00:00 2026-05-26T01:24:58+00:00

I have a SharePoint List that I wish to view it on a custom

  • 0

I have a SharePoint List that I wish to view it on a custom aspx file.

The SharePoint List is named – “AM_Code”

Inside the List, there are multiple columns but I just want those rows with the column ‘Title’ that is not null.

The data will then be displayed on the screen.

The code as follows:

<%@ Page Language="C#" %>
<html dir="ltr">

<head runat="server">
<META name="WebPartPageExpansion" content="full">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Testing JQuery with Sharepoint List</title>
</head>

<body>

<form id="form1" runat="server">
</form>

<script type="text/javascript" language="javascript" src="jquery-1.6.2.min.js"></script>
<script type="text/javascript" language="javascript" src="jquery.SPServices-0.6.2.min.js"></script>
<script language="javascript" type="text/javascript">
$(document).ready(function() {
  $().SPServices({
operation: "GetListItems",
async: false,
listName: "AM_Code",
CAMLViewFields: "<Query><Where><IsNotNull><FieldRef Name="Title" /></IsNotNull></Where><OrderBy><FieldRef Name="Title" Ascending="True" /></OrderBy></Query>",
completefunc: function (xData, Status) {
  $(xData.responseXML).find("[nodeName='z:row']").each(function() {
    var liHtml = "<li>" + $(this).attr("ows_Title") + "</li>";
    $("#tasksUL").append(liHtml);
  });
}
  });
});
</script>
<ul id="tasksUL"/>
</body>
</html>

However nothing was being displayed. Please advise if I have miss anything.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T01:24:59+00:00Added an answer on May 26, 2026 at 1:24 am

    Actually I found my own answer.

    The CAMLViewFields contain the following in order to work:

    "<Query><Where><IsNotNull><FieldRef Name='Title' /></IsNotNull></Where><OrderBy><FieldRef Name='Title' Ascending="True" /></OrderBy></Query>",
    

    Hope it help anyone who is also looking for such solution.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a sharepoint custom list and we have 2 columns in there URL
I have a list of fields/columns that comprises of Sharepoint specific fields/columns, my own
I want to create a SharePoint list/ view comprimised of multiple columns from different
I have a SharePoint list, which has attachments!! I am using a custom grid-view
I have a SharePoint list that is populated via an InfoPath form. There are
I have a SharePoint 2007 custom list that I have saved as a list
I have a SharePoint external list that points to a 100,000 record SQL table.
I have a SharePoint list with Content Approval enabled. The business requirement is that
I have a small application that uses a SharePoint list as the data source.
We have a SharePoint solution that uses a standard task list. We would like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.