- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2023 01:52 AM
Hi Experts,
I am trying to call the 'ABC' data table widget in "XYZ"widget when clicking on a tab in 'XYZ' widget
Widget "ABC" preview attached : data table widget (Expected looks and feel)
but when calling 'ABC' in 'XYZ' it doesn't show me the data
Current look feel: screenshot attached
Widget XYZ details below
HTML :
<sp-widget widget="c.data.example"></sp-widget>
Server script :
NOTE: followed steps from below URL,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2023 08:37 AM - edited 03-08-2023 09:00 AM
Hi @raja_5 1] Can you try to pass existing data-table widget in below line.
data.example = $sp.getWidget('widget-data-table', data);
2] Also add data.enable_filter = true; line above the 'data.filter=options.filter;' line.
Could you please share your widget snippet, In my case it is look likes this
are the records are displays on widget the only issue is that Breadcrumbs right?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2023 07:37 AM - edited 03-08-2023 07:48 AM
Hi @raja_5 , Thank you for the sharing the script.-->I observed your script, Have you merge both the widgets Data Table[widget-data-table] and
Filter Breadcrumbs [widget-filter-breadcrumbs] widgets script in one widget?
--> Also from where you are passing the table name ?
--> Are you calling above widget from any other widget?
-->Here in my case I have created one separate widget to pass the data.table , and data.filter
and call the 'data-table' widget.
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2023 08:19 AM
Hi @Sonu Parab
1, I had to merge Data Table[widget-data-table] and
Filter Breadcrumbs [widget-filter-breadcrumbs] as it was not working as expected when calling from widget
2,---------Below function is in main widget where the table is given-----
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2023 08:37 AM - edited 03-08-2023 09:00 AM
Hi @raja_5 1] Can you try to pass existing data-table widget in below line.
data.example = $sp.getWidget('widget-data-table', data);
2] Also add data.enable_filter = true; line above the 'data.filter=options.filter;' line.
Could you please share your widget snippet, In my case it is look likes this
are the records are displays on widget the only issue is that Breadcrumbs right?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2023 08:59 AM - edited 03-08-2023 09:01 AM
Hi @Sonu Parab
Can see the list of records now and able to apply the filer also . but, breadcrumbs is the issue now
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2023 09:02 AM - edited 03-08-2023 09:03 AM
Hi @raja_5 , Do the changes mention above thread in point 1 and 2 .
and let us know.