Add UI button on portal list

sravanip
Tera Contributor

HI

In portal under profile page we are showing list of hardware owned by the logged In user.

 

In widget using "ng-repeat="item in data.list track by item.sys_id" we display list of hardwares owned by the user. User may have multiple hardwares.

 

We display warranty data in the list. IF the warranty is expired then we have to include an UI button next to the warranty date. 

 

On clicking the button... user should be navigating to existing catalog request form. Button should be present to all the hardware where warranty is expired. 

Looking for suggestion how to check the condition and display the button.

Thank You

10 REPLIES 10

Sanjay191
Tera Sage

Hello @sravanip 

Did you try to use the  ng-if  after the warranty has expired  and also you can use the css for that, like  if the warranty has  expired then you should show the button otherwise hide the button in your widget


If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Thank You

Hi Sanjay

How can I retrieve the date field entered from the portal. On clicking the Refresh button user should navigate to catalog request form and retrieved date value has to be entered there. 

 

 

Here how to get the warranty date and check if it passed current date.

Hello @sravanip  these buttons are in two different  pages  or in same page ?