How to hide widgets if no data in table

Kevin McGartlan
Tera Contributor

Hello, 

I have a requirement to hide the Project Status Risk, Project Status Issues, and Project Status Changes widgets from the OOB Project Status Report page if the respective tables are empty (EX: for a project with no risks, hide the Project Status Risk widget from the status report). I have not been able to figure out how to get those widgets to hide from coding in the server/client scripts. I wanted to query the "Risk" table for any risks that match the project on the status report, but no luck there. 

Does anyone have any ideas how to accomplish this requirement? 

21 REPLIES 21

blanca12
Mega Contributor

Use ngif, in your html

Plex Lucky Patcher  Kodi 

AKSHAY18
Kilo Explorer

Hi I do have the same requirement so can you please send me a screenshots of it please.