Changing Properties of Components

I am trying to change a datatables url and columns. the url seems to get changed as I see the new data but not the columns. Do I have to replace the view completely.

$$(“myview”).define({
columns: myview_new_columns,
url:“http://localhost/newdata=” + item.title
});

$$(“myview”).refresh();

Thanks.

Resolved":
$$(“myview”).refreshColumns();