ווי צו ספּעציפיצירן מענטשן ווי אַ זוכן פאַרנעם / אינהאַלט מקור ניצן שאַרעפּאָינט 2013 מנוחה אַפּי

I had reason to work with the SharePoint 2013 Search API via REST for the first time. I wanted to search for people, not documents. The key learning here is that you specify content sources via its GUID (or at least in this case). The following jQuery snippet shows how:

    loadExpertsAsync: פונקציע() {

        jQuery.support.cors = ריכטיק;

        $.ajax({
            URL: דעם.CreateFullApiUrl() +
                "?querytext='portals'&sourceid='b09a7990-05ea-4af9-81ef-edfab16c4e31'" +
                "&selectproperties='LinkedInProfileUrl,GoogleCirclesProfileUrl,BALargeProfilePictureUrls,BAGridPictures,WorkEmail,Skills,AboutMe,Interests,JobTitle,PastProjects,PictureURL,PreferredName,TwitterHandle,LinkedInProfileUrl,PreferredName,GoogleCirclesProfileUrl'" +
                "&rowlimit=99",
            מעטאָד: "GET",
            headers: { "Accept": "application/json; odata=verbose" },
            cache: פאַלש,
            success: פונקציע (טאַכלעס) {

אין מיין פאַל, I’m running the API against SharePoint online. To get the GUID, I followed these steps:

  1. Access the SharePoint admin center
  2. Select “search” from the left hand navigation
  3. Select “Manage Result Sources”
  4. Select “Local People Results”
  5. Look at the URL.

My URL looked something like:

https://xyzzy-admin.sharepoint.com/_layouts/15/searchadmin/EditResultSource.aspx?level=tenant&sourceid=b09a7990%2D05ea%2D4af9%2D81ef%2Dedfab16c4e31&view=1

The sourceid parameter is what worked for me.

(I understand that the sourceid may actually be a sort of permanent thing with SP, but I’ll always check anyway 🙂 ).

</עק>

undefinedאַבאָנירן צו מיין בלאָג.

גיי מיר אויף טוויטטער בייַ http://www.twitter.com/pagalvin

בייַשפּיל שאַרעפּאָינט מנוחה קאַללס

Here’s a set of sample REST calls that work for me and may help you out as well. ווי פון 02/2014, there are two examples 🙂

  1. Reference a Column With Spaces In Its Name
  2. Reference a Multi-Select Column
  3. Perform a People Search via REST

 

I’ll add to this as time passes.

Here are some useful inks I’ve found as well:

Reference a Column With Spaces In Its Name

I create a custom list with a column named “Blog Author” (space between Blog and Author).

The $select to reference that column is:

image

Simply replace the space with “_x0020_”. We see the _x0020_ in many examples across the internets and REST is no different.

If you don’t do that, you’re liable to get an error message like this:

The expression “Blog Author” is not valid.

Easy enough.

Reference a Multi-Select Lookup Column

Set up:

  1. Create a custom list named Categories.
  2. Add some categories. I added categories thusly:image
  3. Create another custom list called MockBlog and add Categories as a multi-select list column (or site column if that’s how you roll).

Add some items to your Mockblog list and you’re ready.

An Ajax style call using jQuery will look something like this:

serverUrl  = "/_api/web/lists/GetByTitle('MockBlog')/זאכן" +
             "?$select=Title,Categories/Title,Blog_x0020_Author/Title" + 
             "&$expand=Blog_x0020_Author,Categories";

We’re telling SharePoint “Give me the title for all the Categories (Categories/Title). Get the actual values for טיטל דורך $expanding the Categories list.” (My RESTful paraphrasing is probably pretty loose, but this how I’m interpreting it).

If you’re doing this via JavaScript and using Fiddler to look at the output, you get something like this in return:

 

image

(The above is a JSON object)

Perform a People Search via REST

I blogged about this separately. The key is to specify a sourceid parameter whose value is the GUID of the Local People content source. (Content sources used to be called scopes and it’s my-oh-my so hard not to call everything a scope for me!).

לייענען מער וועגן אים דאָ: http://www.mstechblogs.com/paul/?p=10385

 

</עק>

undefinedאַבאָנירן צו מיין בלאָג.

גיי מיר אויף טוויטטער בייַ http://www.twitter.com/pagalvin

שנעל און יזי: שאַפֿן אַ שאַרעפּאָינט מאַפּע ניצן מנוחה

There are a lot of resources around that show how to do this, but I couldn’t find a comprehensive go-to link, so here we are.

You can create a SharePoint site using the REST API.  Here’s a fully baked example:

<!--
    SiteRequestForm.html: Collect information and create a site for the user.
-->

<צענטער>
<טיש>
    <טר>
        <טד>Site Name:</טד>
        <טד><אַרייַנשרייַב טיפּ="text" נאָמען="SiteName" שייַן="SiteName" /></טד>
    </טר>
    <טר>
        <טד colspan="2">
            <אַרייַנשרייַב טיפּ="submit" שייַן="CreateSiteButton" ווערט="Create the Site" />
        </טד>
    </טר>
</טיש>
</צענטער>

<שריפט סרק="../Plugins/jquery-1.11.0.min.js"></שריפט>

<שריפט>
איז געווען CreateSiteLogicContainer = {

    createSiteData: {
            "parameters": {
                __metadata: { "type": "SP.WebInfoCreationInformation" },
                URL: "Paultest1",
                טיטל: "Paultest1",
                באַשרייַבונג: "rest-created web by Paul!",
                שפּראַך: 1033,
                WebTemplate: "sts",
                UseUniquePermissions: פאַלש
            }
    },

    createSite: פונקציע () {

        jQuery.support.cors = ריכטיק;

        CreateSiteLogicContainer.createSiteData.parameters.Url = $("#SiteName").וואַל();
        
        $.ajax({
            URL: "https://bigapplesharepoint.sharepoint.com/NBAIADev/_api/web/webinfos/add",
            מעטאָד: "POST",

            headers: {
                "Accept": "application/json; odata=verbose",
                "content-type": "application/json;odata=verbose",
                "X-RequestDigest": $("#__REQUESTDIGEST").וואַל()
            },

            דאַטע: JSON.stringify(CreateSiteLogicContainer.createSiteData),

            success: פונקציע () { פלינק("success"); },
            גרייַז: פונקציע () { פלינק("error"); }

        });
    },

    wireUpForm: פונקציע () {
        $("#CreateSiteButton").גיט(פונקציע () {
            פלינק("About to try and create the site.");
            CreateSiteLogicContainer.createSite();
        });
    }


}

CreateSiteLogicContainer.wireUpForm();

</שריפט>

When successful, you get a JSON packet in response like this:

image

My key thoughts and learnings from this include:

  • This approach uses jQuery.  אין מיין פאַל, my jQuery library is located in “../plugins.”  You’ll want to change that to point to your favorite JQ location.
  • You can copy and paste that whole snippet into a Content Editor Web Part on a page and it should work just fine.  You’ll want to change the end point of the API call and make sure you reference JQ correctly.
  • The URL is relative to your API’s endpoint.  אין מיין פאַל, it’s creating sub-sites underneath https://bigapplesharepoint.com
  • You don’t need to provide a content-length. Some blog posts and MSDN document implies that you do, but happened for me automatically, which I assume is being handled by the $.ajax call itself.
  • This line is required in order to avoid a “forbidden” response: "X-RequestDigest": $("#__REQUESTDIGEST").וואַל().  There are other ways to do it, but this is pretty nice.  I have lost the link to blog that provided this shortcut.  H/T to you, mysterious blogger!

Good luck and hope this helps someone out.

</עק>

undefinedאַבאָנירן צו מיין בלאָג.

גיי מיר אויף טוויטטער בייַ http://www.twitter.com/pagalvin

באַקומען אַנויינג פּראָבלעם מיט קאָרעוו URL ס אין שאַרעפּאָינט שנעל קאַטער

I wanted to add a link to the quick launch navigation the other day and SharePoint told me:

image

Pure text version of that is:

Ensure that the URL is valid and begins with either a valid character (a number sign (#) or forward slash (/)) or a valid supported protocol (לעמאָשל, ‘http://', ‘https://', ‘file://', ‘ftp://', ‘mailto:', ‘news:').

“Blech and pox!” I said.

A workaround to this is to use JavaScript to find a known link in the quick launch and override its behavior.

To test this, add a new link to your test site thusly:

image

I used jQuery. צו סאָלווע עס, get some JavaScript and jQuery onto the page using your favorite technique and with a line of code like this:

 

$(דאָקומענט).גרייט( פונקציע () {

    $("אַ:contains('Test URL replacement')").גיט(פונקציע () { פלינק("changed click behavior!"); צוריקקומען פאַלש;});

});

And Bob’s your uncle.

The jQuery selector finds every <אַ> tag that has “Test URL replacement” in its name. You may want to find-tune that depending on your link and such.

The .click(פונקציע() overrides whatever SharePoint would have done when the user clicked. Make sure you “return false” or else it will do your stuff and then try to the href thing too, which is almost certainly not your goal.

This was done and test in a SharePoint online environment but should work well in 2010 and earlier too.

</עק>

undefinedאַבאָנירן צו מיין בלאָג.

גיי מיר אויף טוויטטער בייַ http://www.twitter.com/pagalvin

שנעל און סימפּלע: שאַרעפּאָינט מנוחה רוף בלויז רעטורנס 100 רעקאָרדס

I’ve been working on a public facing web site for my SharePoint practice here in New York and it uses a lot of JavaScript and REST calls to show content.

During mainline development, I create a small dataset with just 10 or so rows in a custom list and my REST calls all pulled from there.  Once I bumped up the list to have a few hundred rows of data to test for anticipated growth, I found that I was getting exactly 100 rows returned back on my REST calls.

This is a very simple thing to address.  אין מיין פאַל (and I believe in most cases), the default REST calls to SharePoint (and possibly as an industry standard?) צוריקקומען 100 rows.  To return more than the default, use the $top parameter on your call, ווי אין:

GET /Insights Dev/_api/web/lists/GetByTitle(‘MockBlog’)/זאכן?$select=ID,טיטל,Categories/Title,Blog_x0020_Author/Title,DatePublished,BlogSummary&$expand=Blog_x0020_Author,Categories&$filter=&$top=9999

I picked 9999 in this case since I know that growth-wise, there won’t be more than 200 or so rows added to this list in a year.  If it becomes ungainly, we can implement some paging down the road.

</עק>

undefinedאַבאָנירן צו מיין בלאָג.

גיי מיר אויף טוויטטער בייַ http://www.twitter.com/pagalvin

שנעל און סימפּלע: סאָלווע "פאַרקריפּלט URL פּאַראַמעטער” פּראָבלעם מיט ופּדאַטעליסטיטעמס אין ליסצ.אַסמקס

When working with UpdateListItems via lists.asmx, it’s easy to generate the error:

Invalid URL Parameter.

The URL provided contains an invalid Command or Value. Please check the URL again.

You can get this error when you forget to include ID in the the list of fields to update.  דעם, like a lot of these SP web services, is a bit counterintuitive since you need to include the ID in the ID attribute of the <Method> element.  And you’re not updated ID and probably never want to in the first place.

This SOAP envelope works:

<סאָאַפּענוו:קאָנווערט קסמלנס:סאָאַפּענוו ='http://schemas.xmlsoap.org/soap/envelope/'>
  <סאָאַפּענוו:גוף>                      
    <UpdateListItems xmlns='http://schemas.microsoft.com/sharepoint/soap/'>                     
      <דעסידואָוס>{C712E2EA-54E1-47AD-9D99-1848C7773E2F}</דעסידואָוס>                     
        <updates>                     
         <Batch OnError="Continue">
          <Method ID="1" Cmd="Update">
            <Field Name="CooperativeLock">locked!</פעלד>
            <Field Name="ID">1</פעלד>
          </Method>
        </Batch>                     
        </updates>                
      </UpdateListItems>             
  </סאָאַפּענוו:גוף>         
</סאָאַפּענוו:קאָנווערט>

If you strip out the ID field reference then you’ll get the annoying “Invalid URL parameter” message.

</עק>

undefinedאַבאָנירן צו מיין בלאָג.

גיי מיר אויף טוויטטער בייַ http://www.twitter.com/pagalvin

 

נעבעך מענטש ס קאַטשינג אין דזשאַוואַסקריפּט

[TL;DR version: use cookies to store the results of async calls; render the results of past async calls immediately and then validate them after page-load.]

I’ve been working on SharePoint intranet site for a client that features, צווישן אנדערע זאכן, a stylized secondary navigation whose menu options are managed via a regular old custom list.  The idea is that the client gets to control “their” site’s menu without affecting or being affected by the global navigation put out by IT.

(there is something incredibly subversive about adding a CEWP that points to an HTML file that loads some CSS and JS to fundamentally alter almost everything about a site’s behavior… but that’s for another post)

The code for this pretty simple:

The sore spot here is that every time anyone hits one of the site’s pages, that user’s web browser is reaching out to get items from the list.  Once dev is complete and testing has proven things to be stable and complete, this call is unnecessary more than 99% of the time since the menu rarely changes.  It also has a weird UI affect which is common in this brave new world of hyper-ajaxy web sites – the page renders and only then does the menu render.  It’s jittery and distracting in my view.  And jittery. אַזוי, caching. 

I modified the logic thusly:

  • Look for a cookie in the browser that contains the menu as I last read it
    • If found, render it immediately.  Don’t wait for the page to finish loading.  (You need to make sure your HTML is strategically placed here, but it’s not hard to do).
  • Wait for the page to finish loading and make an async call to load up menu items from a list using REST or lists.asmx or whatever
  • Compare what I got against the cookie
    • If it matches, STOP
    • אַנדערש, using jQuery, dynamically populate a bunch if <לי>’s in a <גאַס>
  • Use CSS to do all the formatting
  • Profit!

Some of you are going to say, “hey! there’s no real caching going on here since you’re reading the menu anyway every single time."  And you’re right – I’m not giving the server any kind of break.  But because the call is async and happens after the page’s initial HTML payload fully renders, it “feels” more responsive to the user.  The menu renders pretty much as the page draws.  If the menu happens to the change, the user is subjected to a jittery re-draw of the menu, but only that one time.

There are some ways to make this caching more effective and help out the server at the same time:

  • Put in a rule that the “cookie cache” is valid for a minimum of 24 hours or some other timeframe. As long as there is no expired cookie, use the cookie’s menu snapshot and never hit the server.

Well … that’s all that come to mind right now :). 

If anyone has any clever ideas here I’d love to know them.

And lastly – this technique can be used for other stuff.  This client’s page has a number of data-driven things on various pages, many of them changing relatively rarely (like once a week or once a month).  If you target specific areas of functionality, you can give a more responsive UI by pulling content from the local cookie store and rendering immediately.  It feels faster to the user even if you’re not saving the server any cycles.  דו קענען save the server cycles by deciding on some conditions and triggers to invalidate this local cookie cache.  That’s all situational and artsy stuff and really the most fun :). 

</עק>

undefinedאַבאָנירן צו מיין בלאָג.

גיי מיר אויף טוויטטער בייַ http://www.twitter.com/pagalvin

ווי צו: קאַנפיגיער יוניט פּרובירן און פּרובירן קאַווערידזש מיט קווניט.דזשס און בלאַנקעט.דזשס פֿאַר אַן אָפיס 365 שאַרעפּאָינט אַפּ

Intro

I’ve been exploring unit testing and test coverage for JavaScript as I work on a new SharePoint app for SharePoint online in the Office 365 suite.  The obvious research paths led me to Qunit.js and right after that, צו Blanket.js.

QUnit let me set up unit tests and group them into modules.  A module is just a simple way to organize related tests. (I’m not sure I’m using it as intended, but it’s working for me so far with the small set of tests I have thus far defined).

Blanket.js integrates with Qunit and it will show me the actual lines of JavaScript that were – and more importantly – were not actually executed in the course of running the tests.  This is “coverage” – lines that executed are covered by the test while others are not.

Between setting up good test cases and viewing coverage, we can reduce the risk that our code has hidden defects.  Good times.

Qunit

Assuming you have your Visual Studio project set up, start by downloading the JavaScript package from http://qunitjs.com.  Add the JavaScript and corresponding CSS to your solution.  Mine looks like this:

image

Figure 1

ווי איר קענען זען, I was using 1.13.0 at the time I wrote this blog post. Don’t forget to download and add the CSS file.

That out of the way, next step is to create some kind of test harness and reference the Qunit bits.  I’m testing a bunch of functions in a script file called “QuizUtil.js” so I created an HTML page called “QuizUtil_test.html” as shown:

image Figure 2

Here’s the code:

<!DOCTYPE HTML>
<HTML קסמלנס="http://www.w3.org/1999/xhtml">
<head>
    <טיטל>QuizUtil test with Qunit</טיטל>
    <רונג rel="stylesheet" הרעף="../CSS/qunit-1.13.0.css" />
    <שריפט טיפּ="text/javascript" סרק="QuizUtil.js" data-cover></שריפט>
    <שריפט טיפּ ="טעקסט / דזשאַוואַסקריפּט" סרק ="qunit-1.13.0.js"></שריפט>
    <שריפט טיפּ ="טעקסט / דזשאַוואַסקריפּט" סרק ="blanket.min.js"></שריפט>

    <שריפט>
        module("getIDFromLookup");
        פּרובירן("QuizUtil getIDFromLookupField", פונקציע () {
            איז געווען goodValue = "1;#פאולוס גאַלווין";

            equal(getIDFromLookupField(goodValue) + 1, 2), "ID of [" + goodValue + "] + 1 should be 2";
            equal(getIDFromLookupField(undefined), undefined, "Undefined input argument should return undefined result.");
            equal(getIDFromLookupField(""), undefined, "Empty input argument should return an undefined value.");
            equal(getIDFromLookupField("gobbledigood3-thq;dkvn ada;skfja sdjfbvubvqrubqer0873407t534piutheqw;vn"), undefined,"Should always return a result convertible to an Integer");
            equal(getIDFromLookupField("2;#some other person"), "2", "Checking [2;#some other person].");
            equal(getIDFromLookupField("9834524;#long value"), "9834524", "Large value test.");
            notEqual(getIDFromLookupField("5;#anyone", 6), 6, "Testing a notEqual (5 is not equal to 6 for this sample: [5;#anyone]");

        });

        module("htmlEscape");
        פּרובירן("QuizUtil htmlEscape()", פונקציע () {
            equal(htmlEscape("<"), "&לט;", "Escaping a less than operator ('<')");
            equal(htmlEscape("<div class=\"someclass\">Some text</דיוו>"), "&לט;div class=&quot;someclass&quot;&גט;Some text&לט;/דיוו&גט;", "More complex test string.");
        });

        module("getDateAsCaml");
        פּרובירן("QuizUtil getDateAsCaml()", פונקציע () {
            equal(getDateAsCaml(נייַ דאַטע("12/31/2013")), "2013-12-31T:00:00:00", "Testing hard coded date: [12/31/2013]");
            equal(getDateAsCaml(נייַ דאַטע("01/05/2014")), "2014-01-05T:00:00:00", "Testing hard coded date: [01/05/2014]");
            equal(getDateAsCaml(נייַ דאַטע("01/31/2014")), "2014-01-31T:00:00:00", "Testing hard coded date: [01/31/2014]");
            equal(getTodayAsCaml(), getDateAsCaml(נייַ דאַטע()), "getTodayAsCaml() should equal getDateAsCaml(new Date())");
            equal(getDateAsCaml("nonsense value"), undefined, "Try to get the date of a nonsense value.");
            equal(getDateAsCaml(undefined), undefined, "Try to get the date of the [undefined] date.");
        });

        module("getParameterByName");
        פּרובירן("QuizUtil getParameterByName (from the query string)", פונקציע () {
            equal(getParameterByName(undefined), undefined, "Try to get undefined parameter should return undefined.");
            equal(getParameterByName("does not exist"), undefined, "Try to get parameter value when we know the parameter does not exist.");

        });

        module("Cookies");
        פּרובירן("QuizUtil various cookie functions.", פונקציע () {
            equal(setCookie("test", "1", -1), getCookieValue("test"), "Get a cookie I set should work.");
            equal(setCookie("anycookie", "1", -1), ריכטיק, "Setting a valid cooking should return 'true'.");
            equal(setCookie("crazy cookie name !@#$%\"%\\^&*(()?/><.,", "1", -1), ריכטיק, "Setting a bad cookie name should return 'false'.");
            equal(setCookie(undefined, "1", -1), undefined, "Passing undefined as the cookie name.");
            equal(getCookieValue("does not exist"), "", "Cookie does not exist test.");
        });

    </שריפט>
</head>
<גוף>
    <דיוו שייַן="qunit"></דיוו>
    <דיוו שייַן="qunit-fixture"></דיוו>

</גוף>
</HTML>

There are several things happening here:

  1. Referencing my code (QuizUtil.js)
  2. Referencing Qunity.js
  3. Defining some modules (getIDFromLookup, Cookies, און אנדערע)
  4. Placing a <דיוו> whose ID is “qunit”.

דעמאָלט, I just pull up this page and you get something like this:

image

Figure 3

If you look across the top, you have a few options, two of which are interesting:

  • Hide passed tests: Pretty obvious.  Can help your eye just see the problem areas and not a lot of clutter.
  • Module: (drop down): This will filter the tests down to just those groups of tests you want.

As for the tests themselves – a few comments:

  • It goes without saying that you need to write your code such that it’s testable in the first place.  Using the tool can help enforce that discipline. לעמאָשל, I had a function called “getTodayAsCaml()".  This isn’t very testable since it takes no input argument and to test it for equality, we’d need to constantly update the test code to reflect the current date.  I refactored it by adding a data input parameter then passing the current date when I want today’s date in CAML format.
  • The Qunit framework documents its own tests and it seems pretty robust.  It can do simple things like testing for equality and also has support for ajax style calls (both “real” or mocked using your favorite mocker).
  • Going through the process also forces you to think through edge cases – what happens with “undefined” or null is passed into a function.  It makes it dead simple to test these scenarios out.  Good stuff.

Coverage with Blanket.js

Blanket.js complements Qunit by tracking the actual lines of code that execute during the course of running your tests.  It integrates right into Qunit so even though it’s a whole separate app, it plays nicely – it really looks like it’s one seamless app.

This is blanket.js in action:

image Figure 4

image

Figure 5

(You actually have to click on the “Enable coverage” checkbox at the top [see Figure 3] to enable this.)

The highlighted lines in Figure 5 have not been executed by any of my tests, so I need to devise a test that does cause them to execute if I want full coverage.

Get blanket.js working by following these steps:

  1. Download it from http://blanketjs.org/.
  2. Add it to your project
  3. Update your test harness page (QuizUtil_test.html in my case) as follows:
    1. Reference the code
    2. Decorate your <שריפט> reference like this:
    <שריפט טיפּ="text/javascript" סרק="QuizUtil.js" data-cover></שריפט>

Blanket.js picks up the “data-cover” attribute and does its magic.  It hooks into Qunit, updates the UI to add the “Enable coverage” option and voila!

קיצער (TL; DR)

Use Qunit to write your test cases.

  • Download it
  • Add it to your project
  • Write a test harness page
  • Create your tests
    • Refactor some of your code to be testable
    • Be creative!  Think of crazy, impossible scenarios and test them anyway.

Use blanket.js to ensure coverage

  • Make sure Qunit is working
  • Download blanket.js and add it to your project
  • Add it to your test harness page:
    • Add a reference to blanket.js
    • Add a “data-cover” attribute to your <שריפט> פאַרבינדן
  • Run your Qunit tests.

I never did any of this before and had some rudimentary stuff working in a handful of hours. 

Happy testing!

</עק>

undefinedאַבאָנירן צו מיין בלאָג.

גיי מיר אויף טוויטטער בייַ http://www.twitter.com/pagalvin

די לעצטע סוט איר וועט אלץ ווער?

[שנעל טאָן - דאָס איז אַ שיין לאַנג פּאָסטן אויף אַ אַרבעט עפן פֿאַר מיין גרופּע דאָ אין ניו יארק און איר טאָן דאַרפֿן צו לעבן אין די טריי-שטאַט געגנט אויב איר ניטאָ אינטערעסירט.]

איך זיך איינגעשריבן סלאַלאָם קאַנסאַלטינג איבער 18 חדשים צוריק און וואָס מאכט דעם מיין לאָנגעסט בלייַביק אַרבעט זינט 2007. איך האט נישט פּלאַן עס אַז וועג. איידער צו אַ שטריקל פון אַרבעט כאַפּינג אַז אנגעהויבן מיט מיין שפּרינגען אין די שאַרעפּאָינט וועלט, איך איז געווען אין איין אָרט פֿאַר עלף יאר. איך ווע לעסאָף געפונען אַ נייַ, ענדיורינג אָרט צו אַרבעטן פֿאַר די לאַנג האַול דאָ אין סלאַלאָם.

דאס פּלאַץ איז גראָוינג און איך דאַרפֿן עטלעכע העלפן צו קאָנטראָלירן אַז. דער מין פון העלפן איך דאַרפֿן איז יוזשאַוואַלי גערופן אַ "שאַרעפּאָינט סאַלושאַנז אַרטשיטעקט" כאָטש איך ווע געפונען דער אַרכיטעקט וואָרט זייַן איבער און / אָדער ינקערעקטלי געניצט אין דעם שאַרעפּאָינט פּלאַץ פֿאַר גאַנץ אַ בשעת איצט. איך ווע שוין סטראַגאַלינג אויף ווי צו בלאָג וועגן דעם. איך טאָן נישט וועלן צו פשוט רשימה אויס אַ בינטל פון קויל פונקטן אין דייס / פאַרזעעניש נוסח. מייַן ויסגעצייכנט רעקרויטינג פּירז האָבן שוין טאן אַז שוין :). אַזוי, איך באַשלאָסן צו נעמען אַ "טאָג אין דער לעבן" צוגאַנג. לייענען עס איבער און באַטראַכטן:

1) אויב עס אַפּפּעאַלס און

2) צי איר וויסן אין דיין ביינער אַז איר קענען טאָן עס.

אויב יאָ, קאָנטאַקט מיר (פּאַול.גאַלווין @ slalom.com) און לאָזן 'ס רעדן.

די ביסט וואָס איר קענען דערוואַרטן צו טאָן אין טיפּיש וואָך / חודש ווי אַ סאַלושאַנז אַרכיטעקט אויף מיין קאָלעקטיוו:

  • לויפן פראיעקטן, אָפֿט מער ווי איין אין אַ צייַט. עטלעכע פראיעקטן זענען גרויס און אַזוי איר 'ד אייגן אַז איינער פּרויעקט. "ראַנינג" אַ פּרויעקט מיטל אַז איר האָט פאַרזע און פֿאַראַנטוואָרטלעכקייט פֿאַר די קוילעלדיק קוואַליטעט פון די עקספּרעס. אין קימאַט יעדער פאַל איר וועט האָבן אַ PM און אַ טאַקע שטאַרק קאָלעקטיוו פון דעווס, באַס, וקס מענטשן, אאז"ו ו, צו שטיצן איר. אבער איר וועט זייַן די הויפּט פּנים דער קליענט זעט, טראַסץ, אאז"ו ו. עס ס קיין כיידינג אין די שאַדאָוז אין דעם ראָלע :). איר וועט רעכענונג דעם צייַט און דער ציל איז צו האַלטן איר פאַרנומען גענוג צו טאָן דעם 80 פּראָצענט פון די צייַט.
  • הילף מיט פּייפּערווערק - טוט זייען, רפפּס, דעקס - אַלע אַז גוט שטאָפּן. איך טראַכטן מיר האָבן אונדזער זייען פּראָצעס אַראָפּ שיין ענג און האַרט אַזוי עס ס פערלי פאָרמיאַליייק. אויב איר ניטאָ געניצט צו שרייבן טוט זייען הייַנט, אונדזער פּראָצעס איז נישט געגאנגען צו זייַן אַ אַרויסרופן פֿאַר איר. רפפּס - די ביסט אַ ביסל האַרדער. זיי טענד צו זייַן בעספּאָקע אין נאַטור צו נעמען מיט און רפפּס טיפּיקלי ציען אין קייפל פאַרשידענע מחברים. עס ס ביידע גוט און שלעכט, אָבער דער הויפּט גוט. דאס קענען באַקומען סקראַמבלי ווען מיר דאַרפֿן צו דזשוגגלע די נויט פֿאַר ויסגעצייכנט קונה דינסט בשעת אויך טריינג צו געווינען נייַ אַרבעט. איר מיסטאָמע וועט נישט אייגן אַ רפפּ אָבער איר וועט זייַן געבעטן צו בייַשטייַערן סעקשאַנז.
  • סאַלעס רופט, אָבער נישט אַ נעענטער. אין די לויף פון אַ חודש, איר קענען דערוואַרטן צו גיין אויף אַ פּאָר פון פארקויפונג רופט מיט אונדזער פארקויפונג קאָלעקטיוו. איר וועט זייַן די סמע אין די צימער, נעמען הערות און הילף פאָרעם די לייזונג. אָבער, איר וועט ניט ווערן געבעטן אָדער געריכט צו שעפּן די פארקויפונג ציקל פון אָנהייב צו ענדיקן. איר טאָן ניט דאַרפֿן צו "פאַרקויפן,"איר נאָר דאַרפֿן צו זייַן די רויק קול פון מומחה סיבה אין די צימער. דאס טוט בויען צוטרוי און בטחון און אַז ס וואָס איר ניטאָ דאָרט. אַוואַדע, אויב איר ווי סעלינג, דעמאָלט דאָרט ס 'פּלאַץ פֿאַר איר צו וואַקסן דאָ אויך.
  • הילף מיט רעקרויטינג. מיר טאָן האָבן עטלעכע מין פון ריפעראַל פּראָגראַם, אַזוי אויב איר וויסן טאַקע שטאַרק פאָלקס אין די קהל אַז איר טראַכטן זאָל זייַן טייל פון סלאַלאָם, איר קענען נוץ אַז וועג. מיר האָבן דעדאַקייטאַד ריקרוטערז (ווער זענען ויסגעצייכנט) צו טאָן די לייב 'ס שער פון דעם מין פון אַרבעט. דער עמעס העלפן איז ינערוויוינג קאַנדאַדייץ - זענען זיי אַ גוט פּאַסיק קאַלטשעראַלי? צי זיי וויסן זייער שטאָפּן? קענען זיי מאַכן * מיין * לעבן גרינגער? 🙂 This comes in spurts, אַ פּאָר מאל אַ חודש, כאָטש אין עטלעכע חדשים איר וואָלט ניט טאָן עס בייַ אַלע.
  • הילף דעפינירן בעסטער פּראַקטאַסאַז, בויען אַרויף אונדזער יפּ און מאַכן אונדז מער קאַמפּעטיטיוו אין די מאַרק. ניטאָ אַ איבערגעלעבט באָכער / גאַל. איר ווע שוין אַרום די בלאָק - ניט נאָר אין שאַרעפּאָינט, אָבער איר האָבן דערפאַרונג אין אנדערע טעקנאַלאַדזשיז און געלעבט דורך גוט און שלעכט (אַפֿילו שרעקלעך) פראיעקטן אַלע איבער. ווי אַ רעזולטאַט, איר וויסן וואָס אַרבעט און וואָס טוט ניט. מיר וועט וועלן איר צו טיילן אַז דערפאַרונג מיט אונדז אויף אַ טאָג צו טאָג יקער אין אַ טאַקטיש זינען (י.ע. לויפן דיין פראיעקטן טאַקע געזונט) אָבער אויך סטראַטידזשיקלי. "בעסטער פּראַקטאַסאַז" איז אַ ביסל אָווועריוזד ווי אַ טערמין און איך קווענקלען צו נוצן עס. די גרונט געדאַנק איז אַז איר ניטאָ קומענדיק אין ווי אַ איבערגעלעבט מענטש מיט טיף און באַטייַטיק דערפאַרונג און מיר ווילן צו ויסשטימען דער בעסטער פון דיין לעאַרנינגס אין ווי מיר דינגען מיט קאַסטאַמערז אויף אַ טאָג צו טאָג יקער.
  • האָבן שפּאַס - מיר זענען אַ זייער ינאַגרייטיד בינטל. איך ווילן צו ויסמייַדן נאָך אן אנדער פּלאַטשיקייַט, אָבער עס ס 'טאַקע פיייק אין דעם פאַל - מיר אַרבעטן שווער (סאָרט פון) און מיר שפּילן אַפֿילו האַרדער :). עס ס אַן אהרן סאָרקין מין פון ונטערשפּאַסן דאָ, דער צימער איז שטענדיק פול פון קלוג מען, מיר ווי אונדזער טרינקען און מיר אָרגאַניזירן אַ שיין נומער פון שפּאַס געשעענישן - פֿילם נאַכט, בייסבאָל טריפּס (אַפֿילו אויב זיי זענען שרעקלעך, פּראַקטאַקלי בייז טימז).

אויב איך קען סאַכאַקל עס אַלע אין איין וואָרט, איך 'ד נוצן דעם וואָרט "פירערשאַפט". פירן פראיעקטן, נעמען אַ פירן ראָלע אין בנין אויס די פיר (יפּ, בנין אַרויף די מאַנשאַפֿט), אאז"ו ו.

אבער וואַרטן! עס ס 'מער! פארוואס אַנדערש אַרבעט אין סלאַלאָם?

  • מערקווירדיק אחדות פון קאַוואָנע - אַלעמען וויל צו וואַקסן דעם זאַך אויס. “This thing” is the New York office. אַלעמען איז אויף ברעט מיט דעם.
  • ווינט אין דיין סיילז - שוועסטער אָפאַסיז, שוועסטער פּראַקטאַסאַז - סלאַלאָם איז אַ "פול דינסט" קאַנסאַלטינג אָרגאַניזאַציע. איך פירן אַרויף די שאַרעפּאָינט פיר (אַ "פּראַקטיס שטח ליד" אין סלאַלאָם לינגאָ). איך האָבן שוועסטער פּראַקטאַסאַז בייַ 11 אנדערע סלאַלאָם אָפאַסיז. אזוי אַפֿילו כאָטש איך בין מלך ווי ווייַט ווי שאַרעפּאָינט איז זארגן דאָ אין סלאַלאָם ניו יארק, איך האָבן ייַנקוקנ פּראַקטאַסאַז אין טשיקאַגאָ, Seattle, Dallas, אַטלאַנטאַ, באָסטאָן, אאז"ו ו. פון וואָס איך קענען ציען אויף שטיצן. עס ס טאַקע דער בעסטער פון ביידע וועלטן - באַטייַטיק זעלבסט - פאַרוואַלטונג דאָ אין ניו יארק אָבער צוטריט צו טאָנס פון טאַלאַנט אַריבער די אָרגאַניזאַציע.
  • ווינט אין דיין פארקויפונג (2) - מיר טאָן מער ווי שאַרעפּאָינט - פיל מער. We do BI, קרם, וקס, געזעלשאַפֿט קאַנסאַלטינג, רירעוודיק, מנהג אַנטוויקלונג און אנדערע. מיר זענען גוט אין קרייַז סעלינג אַמאַנגסט זיך און מיר ניטאָ גוט אין געמעל - און מער ימפּאָרטאַנטלי, דעליווערינג אויף - אַ "פול דינסט" בילד פֿאַר אונדזער קלייאַנץ. דאס איז ספּעציעל אַפּילינג צו מיר. איך ווע שוין בייַ פילע קלענערער אָרגס ארבעטן אויף שאַרעפּאָינט גיגס און פראַסטרייטאַד איבער און איבער ווידער ווייַל מיר זענען געווען טויב כאָולד ווי דער "שאַרעפּאָינט מענטשן." אַז טוט נישט פּאַסירן מיט סלאַלאָם און מיר באַקומען צו טאָן מער טשיקאַווע אַרבעט ווי אַ רעזולטאַט.
  • לאקאלע מאָדעל - קיין אַרומפאָרן.
  • לאנג טערמין וווּקס - סלאַלאָם האט שוין געגאנגען גאַנגבאַסטערז. גורל פון וווּקס און פעסטקייַט. וווּקס אויך מיטל אַז מיר דאַרפֿן צו דינגען פירער הייַנט צו קאָפּ אַרויף נייַ טימז ווי מיר לייגן מער קלייאַנץ און שטעקן צו שטיצן די קלייאַנץ.

איך קען גיין אויף, but I’ve probably already gone on too long. איך טראַכטן איך ווע קאַפּטשערד די עסאַנס דאָ. אויב איר ניטאָ טראכטן וועגן טשאַנגינג דזשאָבס און דאָס קוקט גוט צו איר, לאָזן 'ס רעדן.

אויב איר ניטאָ צופרידן בייַ דיין קראַנט אַרבעט - לאָזן 'ס רעדן סייַ ווי סייַ :). איך ווע געווארן אין אַ פּלאַץ פון ערטער און איז געווען זייער "גליקלעך" אין דער צייַט. סלאַלאָם איז אַנדערש און איך 'ד באַגריסן אַ געלעגנהייַט צו איבערצייגן איר פון וואָס.

</עק>

undefinedאַבאָנירן צו מיין בלאָג.

גיי מיר אויף טוויטטער בייַ http://www.twitter.com/pagalvin

שנעל און יזי: שטעלן די גרייס פון אַ יטעמס אין אַ רשימה באָקס אין אַ פֿענצטער סטאָר אַפּ

אין אַ פֿענצטער סטאָר אַפּ איך בין שאפן, איך ווילן צו ווייַזן דער באַניצער פאַרשידן ינפאָרמיישאַנאַל אַרטיקלען.  איך פּיקט אַ ליסטבאָקס ווי די געצייַג צו ווייַזן עס אַזוי אַז זיי קענען מעגילע דורך זיי און אַלע אַז גוט שטאָפּן. 

די אַרטיקלען זענען ינפאָרמיישאַנאַל בלויז, אַזוי דאָרט ס ניט דאַרפֿן צו צושטעלן אַלע אַז עקסטרע ווהיטעספּאַסע אַרום זיי זינט דער באַניצער קענען קיינמאָל אויסקלייַבן זיי פֿאַר עפּעס.  די פעליקייַט נאַטור פון די ליסטבאָקס גיט אַ היפּש סומע פון ​​וואַטן און איך געוואלט צו באַקומען באַפרייַען פון עס.  געזונט .... איר קענען נישט טאָן אַז סאָרט פון זאַך אויף די ליסטבאָקס גלייַך.  אָבער, איר קענען טאָן עס צו די זאכן איר לייגן:

        פּריוואַט פּאָסל אַדדגאַמעסטאַטעלאָגמעססאַגע(שטריקל טהעמעססאַגע)
        {
            טעקסטבאָקס ה = נייַ טעקסטבאָקס();
            ט.טעקסט = גאַמעסטאַטעקאָונטער     + ": " + טהעמעססאַגע;
            ט.טעקסטווראַפּפּינג = טעקסטווראַפּפּינג.ווראַפּ;
            ט.מינווידטה = 400;
            גרעב טהיספּאַדדינג = נייַ גרעב(5, 0, 5, 0);
            ט.פּאַדדינג = טהיספּאַדדינג;
            ט.פאָנציזע = 12;

            ליסטבאָקסיטעם אַז = נייַ ליסטבאָקסיטעם();
            לי.קאָנטענט = ה;
            לי.מאַקסהעיגהט = 25;
            טהיספּאַדדינג = נייַ גרעב(5, 0, 5, 0);
            לי.פּאַדדינג = טהיספּאַדדינג;

            גאַמעסטאַטעלאָג.יטעמס.ינסערט(0,לי);
        }

אין די אויבן, איך בין שאפן אַ טעקסטבאָקס און באַשטעטיקן זייַן שריפֿט, זייַן וואַטן, אאז"ו ו.

ווייַטער, איך שאַפֿן אַ ליסטבאָקסיטעם און שטעלן זייַן צופרידן צו די פאָרמאַטטעד טעקסטבאָקס.

לעסאָף, איך אַרייַנלייגן די ליסטבאָקסיטעם אין די ליסטבאָקס.  (איך ווילן צו ווייַזן רובֿ פריש אַרטיקלען אין די שפּיץ פון דער ליסטע, דערפאר די ינסערט(0,לי) אַנשטאָט פון אַ פּשוט לייג() ינוואַקיישאַן.).

איך וועל זייַן טוויקינג דעם אַ ביסל איידער איך בין טאַקע צופרידן מיט די ליסטבאָקס נאַטור אָבער דער מוסטער געוויזן אויבן האט שוין זייער פרוכטיק.  אַלעווייַ עמעצער אַנדערש געפינט עס נוציק.

</עק>

undefinedאַבאָנירן צו מיין בלאָג.

גיי מיר אויף טוויטטער בייַ http://www.twitter.com/pagalvin