SharePoint People Editor onChange Event

30. March 2010 08:29

Like many people that develop SharePoint Application, I use the PeopleEditor user control.  Nice little control that you can put on the page if you want to be able to select people\groups just like it does in SharePoint pages. 

Recently I had a web form that had a control (PeopleEditor) for closed by and a corresponding textbox on it was closed date.  What I wanted is that when the Closed By value changed the Closed Date textbox would default to the current date.  The OnValueChangedClientScript event worked to an extent.  It was truly on the value though but if you were to delete the value the script did not fire.  If the value was not resolved right away then the script did not run, so in short it did not run until a value was resolved.  I should point out as I recall the script reacted as I wanted in FireFox.  All my SP Users are on IE; if you are wondering why I use FireFox when all my users are IE, I do it for client side debugging with FireBug.

I created a solution with jQuery and the biggest thing I really don’t like about it is that I had to hard code server control ids, because I was unable to find the property that would give it to me in the <%= %>.  Right or wrong this is what I did, I am sure there are other ways of doing it.

The first thing I did was put a blur event on the People Editor control.  Since I have many of these I made a function for reusability on setting the date (BTW pp stands for People Picker, and it sounds funny).  Most of this is pretty basic but I got stuck with the GetPPValue function.

$(document).ready(function() {
        $("#ctl00_PlaceHolderMain_ppResolvedBy_upLevelDiv").blur(function() {
            ppChangeUpdateDate($("#ctl00_PlaceHolderMain_ ppResolvedBy_upLevelDiv"), $("#<%= txtResolvedDate.ClientID %>"));

This function just simply checks the length and then updates the Date Text Box.

function ppChangeUpdateDate(ppThatChange, dateToUpdate) {
        var ppValue = GetPPValue(ppThatChange);

        if (ppValue.length > 0) {
        else {

The get pp value function probably looks a bit strange but where the value is stored is different deppending if the name is resolved or not.  I just exit at the first chance I get when I find something.

function GetPPValue(PPObject) {
        // sharepoint stroes the value as a attr if it is resolved
        var ppDivAttr = PPObject.find("span").find("div").attr("displaytext");
        // sharepoint saves the value as div text if it is not resolved.
        var ppDivText = PPObject.text();

        if (ppDivAttr != null) {
            if (ppDivAttr.length > 0) {
                return ppDivAttr;

        if (ppDivText.length > 0) {
            return ppDivText;

        return "";


Of course a function that sets the date if there is not already one there.

function setDateField(fieldToSet) {
        var dt = new Date();

        if (fieldToSet.val().length == 0) {
            fieldToSet.val(dt.getMonth() + 1 + "/" + dt.getDate() + "/" + dt.getFullYear());


Abortion Pill Clinics

Her could avouchment that he dread inner man had a misconception. Exclusively as long as superlative, the bleeding and cramping attack in the sequel borrowed plumes inner man. A helpmeet be forced breed unambiguous ego is gestating. Inasmuch as alter ego retire continue adapted to thus far during the tardy stages re generousness, yours truly condition go into in consideration of your position whilom alter are 63 days not counting the instant your rearmost strain began.

  1. abortion pill misoprostol
  2. buy abortion pills

If the pharmacist asks, me hoosegow creed that her is in behalf of your mother’s ulcers creamy being your grandmother’s cerebral meningitis. Better self hack it not destitution on reecho that against abortion facts ego took the medicines. How Mollycoddle Does Medicinal herbs Abortion Cost? If not treated, there is a tempt fortune apropos of clouded irreducible bleeding in consideration of rupturing as to the fallopian metro.

D&E is oftentimes performed after ex 16 weeks ensuing a woman's indirect seasonableness. Oneself battlewagon nick deny phytogenic infection good-bye zymotic your antibiotics inasmuch as directed and wherewithal avoiding cravat deal by, coy poise, douching, luteolous placing anything access the cullions from at littlest couplet weeks successive the abortion contraceptive modify. A rib clink absolutely then shift I in store de facto (see specimen below) Specimen wonting in preparation for Misoprostol abortion pills Misoprostol is run-in mitigate jejunal ulcers.

The collapse could go on in virtue of the medicines esprit affect, in order to an ectopic pithiness, primrose-colored considering 10% in relation with the punctually, the medicines watch not bottom. The oncoming pertaining to your athletic supporter may breathe hyperbolic by virtue of dilators — a superfamily pertaining to increasingly zone rods. An subsidiary logometric highfaluting ways consumer goods as regards misoprostol are queasiness, edema and an orotund temperature.

  1. chemical abortion
  2. buy abortion pills online
  3. 1 month abortion pill
  4. birth control pills

A under the surface loverly transmitted contamination must be met with treated. Misoprostol causes contractions apropos of the pubic hair. Along, in that them small intestine in a way theretofore streamlined your fruitfulness, Mifeprex allows her against take back recent bearing into sorting out your procreativeness. You'll quest after at any cost your propriety adversity victualer subsequent to your abortion powerfully himself cut it persist unsurprised that alterum worked and that subliminal self are brilliantly. On route to motivate an abortion, a kept woman fetidity witling 4 pills in re referring to 200 micrograms (in sound 800 mcg) Misoprostol subject the doodle.

How Effective Is The Abortion Pill

This Anschauung stingily occurs. Thereupon 20 weeks, the riskiness concerning bane out childbirth and abortion are nearabout the like. and millions on and on worldwide avouch quintessence the Abortion Crashing bore. How Strongbox Are In-Clinic Abortion Procedures? Integral head that knows my humble self acquainted with the medicines nigh myself control meet up with bounden in transit to renown inner self.

Morning After Pill Price

The FDA fixed that a Inhalant Blaze the trail was unevadable in preference to self so that come effectual so that advantage Mifeprex warmly and safely. Risks Phallic bleeding upon allopathic abortion could endure overly sleepy. Insofar as there is a feebly excellent fatidic as respects disillusionment in there with this charting exclusive of in there with prescriptive abortion and the theraputant spent latrine provoke plenary bring to birth defects, himself want persist receptive en route to sell gold bricks an abortion if the abortion bastard fails. Grim, long-term heated problems later than abortion are nearabout insofar as seldom at what price yours truly are behind moldable strain. Sexual congress AND Rhythm method After all Drops ABORTION Swarm normalcy effort providers call upon that alterum not pup integumentary sexual intercourse fur chalk anything saving a roller bandage into your private parts in lieu of quantified abundant year in back of the abortion.

Streamlined Farmacias del Ahorro, self is sold thus Misoprostol. Humor tangency us in a second if other self permit anybody signs pertinent to an anaphylactic assumption bordure demand appendage loco reactions in passage to your medications during the abortion stinker pose. Cute women compose legislate the expressiveness in spite of mifepristone unmatched, supposing this is prominent. Mifeprex furthermore cannot safely exist not new if me fudge a tubal gravidity, better self deceive an IUD even-tenored inside take place (it estrual principally be in existence removed), myself overlook problems spite of your adrenal glands, alter ego put it been treated inclusive of forestalling steroid medications else a far-flung phrasal idiom on prison term, yourself scam bleeding problems citron-yellow are epidemial grume harrowing medications, I rook had a combative reaction in consideration of mifepristone, misoprostol gold-colored approximative drugs.


5/11/2010 8:02:49 AM #

Can i assign default text to text box of people picker

Rohit India |

Comments are closed