ParameterValueLastModifiedTime

Hi Dundas Community
I’m try to use one button to get the last modified value for a range date filter, but it doesn’t work and i don’t know why
Here is my script code:

var view = this.parentView;
var adapters = view.getAdapters();
for(var index = 0; index < adapters.length; index++)
{
var adapter = adapters[index];
var dataLoadPromise = adapter.loadData();
}
viewParameter.EmitDefaultValue = false();
viewParameter.GetParameterValueLastModifiedTime();

GetParameterValueLastModifiedTime() isn’t a function that exists in our API.

https://www.dundas.com/support/api-docs/js/#API%20Reference/dundas/data/SingleMemberValue/cindex.html

The only similar property to what you are looking for is lastModifiedTime, but that only gives you a date object representing the date and time of day this parameter was modified. There is no way to retrieve the last explicit filter value prior to you modifying it natively - that isn’t cached anywhere or stored anywhere in the JS API. You would have to manually cache this before the value is actually changed through some other script.

1 Like