Passing a field value in the URL

Can I dynamically edit the url of the datatable depending on the value of the “Value” field of the search form in another file?
For example:

{ view:"text", label:"input data", value:"apple" }

In datatable.js

url: 'resource->/api/archive/apple'

You can’t. Call clearAll() and load(newUrl).