What version of TeamSite are you using and OS?
Hi, I have retrieved the user ID in javascript using IWDatacapture.getName();I am unable to fetch its display name. Can anyone please help on this.Thanks in Advance......
TeamSite, to the best of my knowledge, does not store or cache user's full names - it uses OS calls to access that information and you would have to do so too.You could probably do it with a simple callServer() script that uses Win32API::Net's UserGetInfo() method - or similar.
I have created the perl file which returns the display name of user when its user ID is passed. I have done it using command line tool. But, how to take the return value by using IWDatacapture.callserver(),which is returned by perl script.
The common way to do this sort of things is to code so called FormAPI "call-back" function. Then, within your callserver Script yougenerate JS code that executes callback upon rendition. Take a look at [post=165508]this post[/post] attachment sample. Search Forum, there are gooddiscussions of this technique.
Thanks for your help. I have one more question regarding the inline javascript.Like: <select required="t"> <inline command="Datasource:executeComponent:Userpickers"/> </select>Instead of this, can we call this inline function inside javascript and set values over there for dropdown box
I was searching for something else and came along this. I know it's old, but figured I would add additional information for future users.There is actually FormAPI support for loading datasources dynamically into option arrays using IWDatasource and IWMap objects.~Jeff
If anyone is interested in a CSSDK method of retrieving the Display Name (if you're not using PERL) the CSUser interface has a getDisplayName() method which returns the User's display name.