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());
    }
);

```
Create a custom view of the list and select radio button

Show items only when the following is true:
created by is equal to type [Me]

save the list.
[![enter image description here](https://i.stack.imgur.com/otAZa.png)](https://i.stack.imgur.com/otAZa.png)

```
 function getItemsFromView()
{
var context = new SP.ClientContext.get_current();
    var list = context.get_web().get_lists().getByTitle('ListName');
    var view = list.get_views().getByTitle('CustomViewName');
    context.load(view);

    context.executeQueryAsync(
        function(sender, args) {OnSuccess("<View><Query>" + view.get_viewQuery() + "</Query></View>")},
        function(sender, args) {alert("error: " + args.get_message());}
    );
}

```

It will fetch your records of logged in user only.

Its Done!!