Skip to main content
10 events
when toggle format what by license comment
Feb 5, 2013 at 14:37 comment added Martin Hatch This is where I get stuck .. the indexed Mapped Property Author just returns the display name of the person .. nothing else... Guess I'll have to look if there are any hidden fields I can index or something ..
Feb 5, 2013 at 14:32 comment added Hugh Wood You should be able to pull back the UserID I think with your search results, it will be in the list, depends if it is being indexed I guess.
Feb 5, 2013 at 14:26 comment added Martin Hatch how do I get the User ID from the "Display Name" that the search web part returns?
Feb 5, 2013 at 14:25 comment added Hugh Wood That's where AD becomes fun, but you should have the UserID there anyway for a verification, I think and pull it off that.
Feb 5, 2013 at 14:22 comment added Martin Hatch .. and lets just hope you don't have two "John Smith" or "Jane Doe" in your profile database .. ?
Feb 5, 2013 at 14:15 comment added Hugh Wood 3 ways to do it: People picker, Search API or Query AD. SO from JS it would be using SPServices.js to do a search api query for 'PEOPLE' and 'DISPLAY NAME' I think.
Feb 5, 2013 at 14:00 comment added Martin Hatch The User profile service requires <domain>\<username> .. no way to get that from displayName afaik .. or is there?
Feb 5, 2013 at 13:49 comment added Hugh Wood Well, the other option would be to grab the property post render and reformat it in JS, wouldn't be to to hard to do. You could also transform the username that way also I guess.
Feb 5, 2013 at 13:06 comment added Martin Hatch Ok, good to know about the RenderOnServer property. Annoying though as I don't want to throw away all of the DisplayTemplate / JS goodness and return back to XSLT if I don't have to
Feb 5, 2013 at 12:49 history answered Hugh Wood CC BY-SA 3.0