tag:blogger.com,1999:blog-3055420731115390201.comments2016-04-05T12:50:54.370+05:30Good? Bad? Who knows?Janaka Jeewanthahttp://www.blogger.com/profile/04584233349957138719noreply@blogger.comBlogger26125tag:blogger.com,1999:blog-3055420731115390201.post-87990394134593584642016-04-05T12:50:54.370+05:302016-04-05T12:50:54.370+05:30hi again,
thx, i think i put it in a library, lik...hi again,<br /><br />thx, i think i put it in a library, like other scripts that are working, but how do i know the correct pplPicker.SetParentTagID (Like yours 'ctl00_UserField_containerCell'?<br /><br />Thx again and have i nice day<br /><br />stefan<br />Anonymoushttps://www.blogger.com/profile/10506873262357259891noreply@blogger.comtag:blogger.com,1999:blog-3055420731115390201.post-82470015214744013712016-04-05T09:50:42.112+05:302016-04-05T09:50:42.112+05:30You can keep the js file inside the assets library...You can keep the js file inside the assets library and use the server relative url.Janaka Jeewanthahttps://www.blogger.com/profile/04584233349957138719noreply@blogger.comtag:blogger.com,1999:blog-3055420731115390201.post-47623426074460223092016-04-04T17:38:00.273+05:302016-04-04T17:38:00.273+05:30Hi,
where do i have to put the js file?
or where ...Hi,<br /><br />where do i have to put the js file?<br />or where can i put the path to the file in the newform?<br /><br />Thx<br />StefanAnonymoushttps://www.blogger.com/profile/10506873262357259891noreply@blogger.comtag:blogger.com,1999:blog-3055420731115390201.post-9154401188059065562015-10-28T13:30:59.649+05:302015-10-28T13:30:59.649+05:30Thanks so much! Your instructions are very clear a...Thanks so much! Your instructions are very clear and helpful. I've been wondering how to do this for months and thrilled to find out how finally!<br /><a href="http://staygreenacademy.com/sharepoint-developer-training-online/" rel="nofollow">sharepoint developer training </a>Anonymoushttps://www.blogger.com/profile/02218655805734328849noreply@blogger.comtag:blogger.com,1999:blog-3055420731115390201.post-23402587532011721012015-03-04T14:50:11.596+05:302015-03-04T14:50:11.596+05:30I am using Visual Web Part and try to populate peo...I am using Visual Web Part and try to populate people picker filed on the web part from admin master list "AdminGroup" (People & Group Filed) using jquery .<br /><br />Can you guide me what should i do to accomplish this.Anonymoushttps://www.blogger.com/profile/17513658554426810323noreply@blogger.comtag:blogger.com,1999:blog-3055420731115390201.post-7124984233722771512014-06-27T16:31:21.008+05:302014-06-27T16:31:21.008+05:30Great post!
but is there any way to save a value i...Great post!<br />but is there any way to save a value in People picker field inside a list using javascript/ECMAscript/JSOM (whatever you call it)<br />I would really appreciate a response on that. <br />Thanks Vaqar Hyderhttps://www.blogger.com/profile/00745979253551102513noreply@blogger.comtag:blogger.com,1999:blog-3055420731115390201.post-79867705160946228022014-05-02T00:42:58.891+05:302014-05-02T00:42:58.891+05:30Is there any way to get this to work for a form de...Is there any way to get this to work for a form designed in InfoPath? I'm having trouble determining the parentTagId of my people picker.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3055420731115390201.post-82743859995152720842013-06-26T01:57:34.054+05:302013-06-26T01:57:34.054+05:30Great Post, just an important note. If you need to...Great Post, just an important note. If you need to run this code for a localized / non-english sharepoint site, e.g. German, the parameter 'People Picker' needs to be changed to its localized equivalent, e.g. 'Personenauswahl'.<br /><br />Don't we love SharePoints multilingual capabilities? :-)Anonymoushttps://www.blogger.com/profile/14514585003638926105noreply@blogger.comtag:blogger.com,1999:blog-3055420731115390201.post-45512322736208042162013-06-05T13:23:51.696+05:302013-06-05T13:23:51.696+05:30I cant make this work.
ive placed my JS and named ...I cant make this work.<br />ive placed my JS and named it as people.js and place it in layouts<br /><br />heres my code in newform.aspx<br /><br />sharepoint:scriptlink localizable="false" name="people.js" ondemand="true" runat="server"<br />script type="text/javascript"><br />ExecuteOrDelayUntilScriptLoaded(SetWebUserData, "people.js");<br /><br />function alertThis(value)<br />{<br />alert(value);<br />}<br />function SetWebUserData() {<br /> alert('test');<br /> var pplPicker = new PeoplePicker();<br /> // Set the parent tag id of the people the picker.<br /> pplPicker.SetParentTagId('ctl00_m_g_031a4528_7bdf_4b8d_ad7b_4598011265ad_ctl00_ctl05_ctl01_ctl00_ctl00_ctl04_ctl00_ctl00_UserField_containerCell');<br /> pplPicker.SetLoggedInUser();<br /> alert('END');<br />}<br /><br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3055420731115390201.post-83300868428390133682013-01-08T22:19:37.943+05:302013-01-08T22:19:37.943+05:30This article was a great aid! thanks a lot.This article was a great aid! thanks a lot.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3055420731115390201.post-35543106635721856022012-07-24T02:07:26.580+05:302012-07-24T02:07:26.580+05:30This is very helpful. don't need to use codepl...This is very helpful. don't need to use codeplex spServices.works excellent.<br /><br />Thank you<br />GearyAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3055420731115390201.post-69158456090852928502012-04-23T17:10:22.188+05:302012-04-23T17:10:22.188+05:30i got it working by adding the script file to my s...i got it working by adding the script file to my siteassets and refenceing it from there<br /><br /><br /><br />Great script thanks!Alderley plchttps://www.blogger.com/profile/04858436336778043782noreply@blogger.comtag:blogger.com,1999:blog-3055420731115390201.post-78059680200901832722012-04-20T19:14:55.687+05:302012-04-20T19:14:55.687+05:30it's a great article, saved lots of my time.
R...it's a great article, saved lots of my time.<br />Regards,akhilesh vermahttps://www.blogger.com/profile/04952992904169760225noreply@blogger.comtag:blogger.com,1999:blog-3055420731115390201.post-1470235719680513522012-04-20T15:05:02.006+05:302012-04-20T15:05:02.006+05:30Im am struggling to get this working.
I have crae...Im am struggling to get this working.<br /><br />I have craeted a javascript file with the funtion in it and saved this into C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS<br /><br />I named my file "DefaultPeoplePicker.js" because there was alreas a file called SP.js in the folder.<br /><br /><br />Next i added a reference to load the "DefaultPeoplePicker.js" file in the "PlaceHolderMain" tag in the NewForm.aspx file.<br /><br />Directly underneath that i added the rest of the javscript with the SetWebUserData function<br /><br />I changed the cell reference to the following:<br /><br />pplPicker.SetParentTagId('ctl00_m_g_bbdf2997_5904_4d4c_873f_3ec18d07d7ec_ctl00_ctl05_ctl07_ctl00_ctl00_ctl04_ctl00_ctl00_UserField_containerCell');<br /><br />Nothing happens when i load the formAlderley plchttps://www.blogger.com/profile/04858436336778043782noreply@blogger.comtag:blogger.com,1999:blog-3055420731115390201.post-41916200884334787552011-11-21T06:12:42.933+05:302011-11-21T06:12:42.933+05:30Thanks for the article, it saved me lots of time.....Thanks for the article, it saved me lots of time.. :)Nidhinoreply@blogger.comtag:blogger.com,1999:blog-3055420731115390201.post-80440291857953305192011-11-03T09:38:07.912+05:302011-11-03T09:38:07.912+05:30You can put the js file inside the 14\TEMPLATE\LAY...You can put the js file inside the 14\TEMPLATE\LAYOUTS folder.Janaka Jeewanthahttps://www.blogger.com/profile/04584233349957138719noreply@blogger.comtag:blogger.com,1999:blog-3055420731115390201.post-9998989492686716502011-11-03T01:27:09.370+05:302011-11-03T01:27:09.370+05:30Excelent piece of code. If I save it to a js file,...Excelent piece of code. If I save it to a js file, where should I put the file so that I can reference it from a Content Editor Web Part?<br /><br />ThanksHalfhttps://www.blogger.com/profile/18156920435495331175noreply@blogger.comtag:blogger.com,1999:blog-3055420731115390201.post-82817733826357380662011-03-10T01:51:53.903+05:302011-03-10T01:51:53.903+05:30Fantastic. Thanks for the post.Fantastic. Thanks for the post.Vigneshnoreply@blogger.comtag:blogger.com,1999:blog-3055420731115390201.post-85510471861695920882011-02-25T20:29:43.562+05:302011-02-25T20:29:43.562+05:30If you are using NewForm.aspx, you can set the id ...If you are using NewForm.aspx, you can set the id of 'td' element (which is parent element of people picker). NewForm.aspx has a fixed 'table' structure. If you are using a customized new form, then you can set your own parent element id in aspx markup.Janaka Jeewanthahttps://www.blogger.com/profile/04584233349957138719noreply@blogger.comtag:blogger.com,1999:blog-3055420731115390201.post-21053812034640834532011-02-25T19:46:32.760+05:302011-02-25T19:46:32.760+05:30Excellent Post, but how do you determine the value...Excellent Post, but how do you determine the value ParentTagId on the NewForm.aspx page?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3055420731115390201.post-43928484229438691592010-09-04T10:46:25.371+05:302010-09-04T10:46:25.371+05:30Nicely done Janaka. Very much understandable :)Nicely done Janaka. Very much understandable :)Hisnynoreply@blogger.comtag:blogger.com,1999:blog-3055420731115390201.post-23660134143409857962010-09-03T22:09:30.911+05:302010-09-03T22:09:30.911+05:30that too will pass.. ;)that too will pass.. ;)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3055420731115390201.post-33264510270352949312010-09-03T11:29:58.329+05:302010-09-03T11:29:58.329+05:30Nicely explained machan...!!!!
But tell me are yo...Nicely explained machan...!!!!<br /><br />But tell me are you still trying to hit it up with that NSB girl who's traveling in the same bus/route with you....???? LOLAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3055420731115390201.post-73360957003297970972010-09-03T09:46:47.461+05:302010-09-03T09:46:47.461+05:30Nicely presented!Nicely presented!Himeshahttp://himesha.blogspot.com/noreply@blogger.comtag:blogger.com,1999:blog-3055420731115390201.post-33419696020948502432010-08-24T16:31:29.888+05:302010-08-24T16:31:29.888+05:30yeah, better if we can do that too :) But in here ...yeah, better if we can do that too :) But in here for strings it won't throw exceptions...Janaka Jeewanthahttps://www.blogger.com/profile/04584233349957138719noreply@blogger.com