Question: I have a Query String (URL) filter on my SharePoint 2013 page that is currently passing a string parameter which I then use to filter a list. This list is displayed in a view on my web part page. I want to add a "Title" object above my list view to show the value of the filter parameter that I'm passing to filter the list.

Does anyone know how I can do this? I looked through the web part options that were available to add, and couldn't find one to simply display the result of the query string filter.

Answer: 
The Author column is of `LookUp` Type. Here is the complete list.

```
var ctx = new SP.ClientContext.get_current();
var list = ctx.get_web().get_lists().getByTitle("Vacation Replacement");
var query = new SP.CamlQuery();
var specifier = "<Where><Eq><FieldRef Name='Author' LookupId='True'/><Value Type='Lookup'><UserID/></Value></Eq></Where>";
query.set_viewXml("<View><Query>"+specifier+"</Query></View>");
var collListItems = list.getItems(query);
ctx.load(collListItems);
ctx.executeQueryAsync(
    function(){
        var enumerator = collListItems.getEnumerator();
        while(enumerator.moveNext()){
            var item = enumerator.get_current();
            alert("ID : " + item.get_id());
        }
    },
    function(sender,args){
        alert("Request Failed."+args.get_message() + "\n" + args.get_stackTrace());
    }
);

```
To get current user Id

```
clientContext = new SP.ClientContext.get_current();
 var user=clientContext.get_web().get_currentUser();
 clientContext.load(user);
clientContext.executeQueryAsync(function(){
 var userId=user.get_id();

 var query="<Where><Eq>"+
    "<FieldRef Name="Author" LookupId="TRUE" />"+
     "<Value Type="Integer">" +userId + "</Value></Eq></Where>";

},failCallbackMethod);

```

This [link](http://www.ashokraja.me/tips/How-to-use-User-Name-User-Id-Logged-in-User-Id-in-SharePoint-CAML-Query) might help you