Clone Time Card Header

Hrishabh Yadav
Tera Contributor

After cloning the Widget Time Card Portal Header (id: tcp-header) when selecting the 'My Time Sheet' option in the Cloned widget in Time Sheet Portal its showing below error 

The page you are looking for could not be found. 

1 ACCEPTED SOLUTION

No need to make changes to Server script of cloned widget. Only replace the name of template in HTMP part of widget. 

Do not change the server side lines.

if(!input){
data.notificationWidget = $sp.getWidget('tcp-notifications');
data.impersonation = $sp.getWidget('tcp-impersonation');
}
 
Keep above lines as it is.
 

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

View solution in original post

5 REPLIES 5

Anil Lande
Kilo Patron

Hi,

After cloning widget you need to recreate some of the related list records.

Compare your copied widget with OOB widget.

Check related lists, some records are missing in your cloned widget.

 

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

As you suggested i checked, Angular ng-template related list was missing, i created in my cloned widget but still is not working. Please take a look if my new created Angular ng-template is correct. I have also made changes in Server Script & HTML Template.
Line 4 in HTML, Line 64 in Server Script

Hi,

What all changes you have made? Have you updated the OOB page and replaced cloned widget on Time sheep portal?

Can you please share the steps to test this functionality?

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

I tried to reproduce this issue and it is working fine for me.

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande