More info in service portal approval

JDickson
Kilo Expert

Hi,

Is it possible to add more information in the below view of approvals.Often there can be 10-15 approvals pending and clients want the option to approve them here with a quick overview of what they are approving. If additional time has been requested we want to show the request and reason etc.

find_real_file.png

 

Thanks

John

1 ACCEPTED SOLUTION

Looks like those fields are on task table, still you can get them from approval table, as you have an relation.

add this in your widget , server code widget

t.u_hours_required= task.u_hours_required.toString();

t.u_reason = task.u_reason.toString();

and in HTML add 

<div ng-if="approval.task.u_hours_required"><label>${Hours Required}</label> {{::approval.task.u_hours_required}}</div>

<div ng-if="approval.task.u_reason "><label>${Reason}</label> {{::approval.task.u_reason }}</div>

 

View solution in original post

6 REPLIES 6

VigneshMC
Mega Sage

You have to clone approvals widget and make changes according to your requirement.

Add the field you want to add in server script after 62 and HTML code after 26.

Thanks

Hi vignesh,

 

Our widget has already been cloned and slightly edited. I see where the server and HTML is edited for what is currently shown.

find_real_file.png

 

A lot of approvals will be for additional time. These are run by a ui action button but run from the task table. 

find_real_file.png

Im not sure how to add these fields in the widget scripts.

Thanks

Do you want to add hours required and reason field to the widget ?

Are those fields available in approval table ?

Thanks

Hi Vignesh,

Yes they appear to be in the approval table.

find_real_file.png

When i go into the approval table itself i dont see those fields but as above on an approval record they show in the approval table which is whats confusing.

Regards,

John