I want to get the usernames for the portal userid's that I am displaying in my simple table in WAB application. Any ideas?
Thank you!
Solved! Go to Solution.
This is how I set a text box (ownername) to the user's name (using the class 'jimu/portalUtils')
this._portal = portalUtils.getPortal(this.appConfig.portalUrl);
this.ownerName.set('value', this._portal.user.username);
This is how I set a text box (ownername) to the user's name (using the class 'jimu/portalUtils')
this._portal = portalUtils.getPortal(this.appConfig.portalUrl);
this.ownerName.set('value', this._portal.user.username);
where should I put these lines of code to see the username?