Hide the "Data table from instance defination" widget when there is no record

absd
Mega Contributor

I have created a widget in service portal using the OOB widget "Data table from instance defination".  Please find the filter which i have used for the same. find_real_file.png

However, when there is no matching records  i Get this

 find_real_file.pngSo, now i want that this widget to be hiden when there is no matching records as per the result.

can the everhelpful community help me out with this.

 

Thanks in advance

1 ACCEPTED SOLUTION

RaghavSh
Kilo Patron

Add the below code in your custom widget to maker  this work

 

Server side:

find_real_file.png

 

HTML:

add ng-if

find_real_file.png


Raghav
MVP 2023

View solution in original post

2 REPLIES 2

RaghavSh
Kilo Patron

Add the below code in your custom widget to maker  this work

 

Server side:

find_real_file.png

 

HTML:

add ng-if

find_real_file.png


Raghav
MVP 2023

absd
Mega Contributor

Thanks Raghav that worked like a charm...