Can a List View Filter Value be stored?

  • 8 August 2018
  • 3 replies
  • 6 views

Userlevel 3
Badge +16

Hi,

 

On a List view with a filter above it (the usual built on one), can the value the user enters be stored or accessed?

The value is used obviously by k2 to filter the list, but is there a way for it to be stored or used elsewhere?

 

Or can the filter value be read by jquery and stored in a data label?

 

thanks


3 replies

Userlevel 6
Badge +16

Hi,


 


Are you looking for a possible way to share the user filters? I believe that those filters are stored in client side and are not accessable or share-able between users. A possible way is to add your own drop down control, the control can be configured with the on changed event to do some filtering. This assumes that the filters are well defined beforehand.


 


For example: when drop-down list is changed, if Drop-down List contain Filter1 then execute the Get List method (configure). Filtering can be configured in the Filter section of the Get List method. 

Userlevel 3
Badge +16

Hi Khan,

 

I know we could use our own boxes to create a filter, but prefer using the built-in one.

Was hoping some script could grab that entered value and store it somewhere.

 

That stored value will then be passed as a variable to a report which will use that value as a paramater in an RS report via a URL

 

Thanks,

Userlevel 3
Badge +16
Right,

We managed to get a jquery script working to copy the filter entry to a datalabel, which works fine on display.

However if we reference that data label or do show message and put that data label in the message, it is EMPTY.

Any idea why it isn't saving it?

Reply