UI Action to redirect to Subject Person HR Profile.

shadoworg
Giga Expert

Hello All,

 

I have a HR Case in which a HR task is present, I want a UI Action on the respective to redirect it to the subject person of its parent HR case.

 

Please Help me with it.

 

2 ACCEPTED SOLUTIONS

Samaksh Wani
Giga Sage
Giga Sage

Hello @shadoworg 

 

Go to Application Navigator >System Definition > UI Action.

 

Create New UI Action on the HR Task table.

 

You need to write script

action.setRedirectURL();

 

Plz Mark my Solution as Accept and Give me thumbs up, if you find it helpful.

 

Regards,

Samaksh

View solution in original post

Hello @shadoworg 

 

add this script :-

 

 

var sysId = current.parent.subject_person;
var url = 'sn_hr_core_profile.do?sysid=' +sysId;
action.setRedirectURL(url);

 

 

Plz Mark my Solution as Accept and Give me thumbs up, if you find it helpful.

 

Regards,

Samaksh

View solution in original post

3 REPLIES 3

Samaksh Wani
Giga Sage
Giga Sage

Hello @shadoworg 

 

Go to Application Navigator >System Definition > UI Action.

 

Create New UI Action on the HR Task table.

 

You need to write script

action.setRedirectURL();

 

Plz Mark my Solution as Accept and Give me thumbs up, if you find it helpful.

 

Regards,

Samaksh

Hello @Samaksh Wani 

 

Can you help with full script. what needs to be added as i should be dynamic as per every HR Case's respective subject person.

 

 

Hello @shadoworg 

 

add this script :-

 

 

var sysId = current.parent.subject_person;
var url = 'sn_hr_core_profile.do?sysid=' +sysId;
action.setRedirectURL(url);

 

 

Plz Mark my Solution as Accept and Give me thumbs up, if you find it helpful.

 

Regards,

Samaksh