Custom Interactive Filter for String field for custom table in custom application

Harsha Pandey
Tera Expert

Hi Everyone,

Can somebody please help me in answering below question? This is related to custom interactive filter.

 

1. I am working on custom application and I do not see dynamic content block under content management, I mean Content Management module is also not visible, does it mean plugins and license is not available?

 

2.If point 1 is yes, then is there any other way to create interactive filter for a string field that gets populated through flows and integration?

 

3. If suppose point 1 plugins and license works then is the below script correct to implement the filter?

 


<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null"

<script>
var my_dashboardMessageHandler = new DashboardMessageHandler("my_unique_id"); // What is this unique id name

function searchForStrings(str) {
var filter_message = {};
filter_message.id = "my_unique_id"; // what is this unique id here
filter_message.table = "incident"; // Please enter the custom table name


filter_message.filter = "here_thereLIKE"+ str; //Please enter field name here

SNC.canvas.interactiveFilters.setDefaultValue({
id: filter_message.id,
filters: [filter_message]
}, false);

my_dashboardMessageHandler.publishFilter(filter_message.table, filter_message.filter);
}

</script>

Bulk Code<br/> // Name of the content block
<input id ="myCustomSearchString" type = "text" value="" onChange="searchForStrings(this.value);"/> // what is input id and the type text?
</j:jelly>

 

 

4. Can you please also explain the commented lines? What is input id in 2nd last line and type as text. My string field takes only numbers so is it related to this?

 

Thanks,

Harsha

0 REPLIES 0