Service Portal button does not open record

Brian15
Tera Guru

Hello All -

I've cloned the Link Button widget and placed it on our service portal page so that after a user submits a request he can open the request item in the worker view.  The button looks great but does nothing.  What do I put for the server script & html?  I want a button that says 'Open in Worker View', and opens the current record.

 widget has no data object.png

1 ACCEPTED SOLUTION

Allu Gopal1
Giga Guru

Hi @Brian15 ,

 

Where have you placed this "Link Button EC" widget. Is it under form in portal. Please describe more clear how and when you are showing this button.

 

Because, it feels like you are just giving like static variables and not entering any data into the function.

 

Thanks and Regards,

Allu Gopal.

View solution in original post

3 REPLIES 3

Allu Gopal1
Giga Guru

Hi @Brian15 ,

 

Where have you placed this "Link Button EC" widget. Is it under form in portal. Please describe more clear how and when you are showing this button.

 

Because, it feels like you are just giving like static variables and not entering any data into the function.

 

Thanks and Regards,

Allu Gopal.

Hi Allu -  here is where I placed the button. Also shown is that scope.data is emptybutton placement.pngdata is empty.png

Brian15
Tera Guru

Allu - your comment led me to change the server script to 

 

 

data.sysId = $sp.getParameter('sys_id');
data.table = $sp.getParameter('table');
data.url = '/nav_to.do?url=' + data.table + '.do?sys_id=' + data.sysId;

 

which resolved the issue and the button now works.  Thanks for the direction!

 

Regards,

Brian