How to add DYNAMIC breadcrumbs on a table data widget ?

Karinush
Tera Contributor

Hello is there any way to use the widget of data table and put breadcrumbs in it ? 

like in the backend ? 

i want the user to be able to filter by the fields and values that he want 

Karinush_0-1705930015664.png

thanks!

1 ACCEPTED SOLUTION

Joe B2
Giga Guru

Yes, this is possible when setting the table up from the server script using the show_breadcrumbs and enable_filter parameters. An example:

data.incident_list = $sp.getWidget("can-widget-data-table", {
            table: 'incident',
            window_size: listSize,
            keywords: '', // This parameter is used to query the 123TEXTQUERY321 field
            filter: securityIncFilter,
            //fields:'number', // This is not nessecary as fields displayed are dictated by the view
            //hide_header: true,		
            view: 'default',
            o: 'name',
            d: 'asc',
            p: 1,
            show_breadcrumbs: true,
            enable_filter: true
        });

View solution in original post

5 REPLIES 5

Excellent. Glad it worked for you and thank you for accepting the solution.