CallBacks with parameters

When I declare a call back function, can I give it parameters?

For example if I have

		filterNamesDS.removeData(SelectFilter.getField("screenName").getSelectedRecord(), "callBackDeleteFunction(dsRequest, data, dsResponse)", {data:{screenFilterID:SelectFilter.getValue("screenName"), currentPage:getCurrentPage()}});

I have a callBack function defined in there and would really like to pass in some more data besides the three items already there. Is there a way for me to pass objects into that function? The function is defined as basically a string so I’m not sure what the syntax would be.

Thanks

You can add additional properties to the dsRequest, which is in fact what the code below would do: you could access currentPage as dsRequest.currentPage from the callback. Note however that by passing “data” you are overwriting dsRequest.data - use some other property name if you don’t intend to do this.

That worked well.
Thanks a ton