- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2023 03:35 AM
I have a requirement to show the company name of the logged in user along with the username herein service portal:
I worte this lines of script in client controller and in HTML, but it's showing sys_id of the company record.
HTML:
<span class="visible-lg-inline">{{::user.company}}</span>
Client controller :
company: $scope.user.company,
I want show the company name along with the user name
any help would be appreciated
Thanks,
shiva
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2023 07:51 AM
Try adding .getDisplayValue() at he end of $scope.user.company and see if that's enough to show it.
On server side you could also just save it somewhere like
var company = gs.getUser().getCompanyRecord();
data.companyName = company.name;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2023 07:51 AM
Try adding .getDisplayValue() at he end of $scope.user.company and see if that's enough to show it.
On server side you could also just save it somewhere like
var company = gs.getUser().getCompanyRecord();
data.companyName = company.name;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2023 02:10 AM
Hello @Weird
thanks for your suggestions it's worked almost.
but we added one thing here like this
var company = gs.getUser().getCompanyRecord();
data.companyName = company.name.toString();
