Hr criteria for widget
Community Alums
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2023 06:07 AM
I need to display a link in the footer of a portal the visiblity of the footer is based on the hr criteria so i have written below code but it is not working. Can anyone help me with this.
on html:
<div ng-if="data.checkingFooter=='true'">
<h>test<h>
<div>
server side:
data.checkingFooter='false';
var sa=gs.getUserDisplayName();
var wb = new GlideRecord('sn_hr_core_profile');
wb.addEncodedQuery('active=true');
wb.query();
while(wb.next()){
var abUser=wb.getValue('user');
if(abUser==sa){
data.checkingFooter='true';
}
}
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2023 02:23 PM
@Alikutty A can you help me with this