Paano Upang Tukuyin ang mga tao bilang isang Saklaw ng Paghahanap / Pinagmulan ng Paggamit ng SharePoint Nilalaman 2013 REST API

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: tungkulin() {

        jQuery.support.cors = totoo;

        $.ajax({
            url: ito.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",
            pamamaraan: "GET",
            headers: { "Accept": "application/json; odata=verbose" },
            cache: hindi totoo,
            success: tungkulin (magbunga) {

Sa aking kaso, 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 🙂 ).

</dulo>

undefinedMag-subscribe sa aking blog.

Sundin ako sa Twitter sa http://www.twitter.com/pagalvin

Halimbawa SharePoint REST Tawag

Here’s a set of sample REST calls that work for me and may help you out as well. Tulad ng 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')/mga item" +
             "?$select=Title,Categories/Title,Blog_x0020_Author/Title" + 
             "&$expand=Blog_x0020_Author,Kategorya";

We’re telling SharePoint “Give me the title for all the Categories (Categories/Title). Get the actual values for Pamagat sa pamamagitan ng $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!).

Magbasa nang higit pa tungkol sa ito dito: http://www.mstechblogs.com/paul/?p=10385

 

</dulo>

undefinedMag-subscribe sa aking blog.

Sundin ako sa Twitter sa http://www.twitter.com/pagalvin

Mabilis at madali: Lumikha ng isang SharePoint Site Paggamit ng REST

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.
-->

<sentro>
<talahanayan>
    <tr>
        <td>Site Name:</td>
        <td><input uri="text" pangalan="SiteName" ID="SiteName" /></td>
    </tr>
    <tr>
        <td colspan="2">
            <input uri="submit" ID="CreateSiteButton" halaga="Create the Site" />
        </td>
    </tr>
</talahanayan>
</sentro>

<script SRC="../Plugins/jquery-1.11.0.min.js"></script>

<script>
var CreateSiteLogicContainer = {

    createSiteData: {
            "parameters": {
                __metadata: { "type": "SP.WebInfoCreationInformation" },
                Url: "Paultest1",
                Pamagat: "Paultest1",
                Paglalarawan: "rest-created web by Paul!",
                Language: 1033,
                WebTemplate: "sts",
                UseUniquePermissions: hindi totoo
            }
    },

    createSite: tungkulin () {

        jQuery.support.cors = totoo;

        CreateSiteLogicContainer.createSiteData.parameters.Url = $("#SiteName").Val();
        
        $.ajax({
            url: "https://bigapplesharepoint.sharepoint.com/NBAIADev/_api/web/webinfos/add",
            pamamaraan: "POST",

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

            data: JSON.stringify(CreateSiteLogicContainer.createSiteData),

            success: tungkulin () { alerto("success"); },
            mali: tungkulin () { alerto("error"); }

        });
    },

    wireUpForm: tungkulin () {
        $("#CreateSiteButton").i-click ang(tungkulin () {
            alerto("About to try and create the site.");
            CreateSiteLogicContainer.createSite();
        });
    }


}

CreateSiteLogicContainer.wireUpForm();

</script>

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

image

My key thoughts and learnings from this include:

  • This approach uses jQuery.  Sa aking kaso, 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.  Sa aking kaso, 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").Val().  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.

</dulo>

undefinedMag-subscribe sa aking blog.

Sundin ako sa Twitter sa http://www.twitter.com/pagalvin

Pagtagumpayan nakakainis Problema sa Kamag-anak Url sa SharePoint Quick Launch

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 (halimbawa, ‘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. Upang malutas ito, get some JavaScript and jQuery onto the page using your favorite technique and with a line of code like this:

 

$(dokumento).nakahanda( tungkulin () {

    $("isang:contains('Test URL replacement')").i-click ang(tungkulin () { alerto("changed click behavior!"); bumalik hindi totoo;});

});

And Bob’s your uncle.

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

The .click(tungkulin() 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.

</dulo>

undefinedMag-subscribe sa aking blog.

Sundin ako sa Twitter sa http://www.twitter.com/pagalvin

Mabilis at simpleng: SharePoint REST Call Ibinabalik Lamang 100 Records

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.  Sa aking kaso (and I believe in most cases), the default REST calls to SharePoint (and possibly as an industry standard?) bumalik 100 rows.  To return more than the default, use the $top parameter on your call, tulad ng sa:

GET /Insights Dev/_api/web/lists/GetByTitle(‘MockBlog’)/mga item?$select=ID,Pamagat,Categories/Title,Blog_x0020_Author/Title,DatePublished,BlogSummary&$expand=Blog_x0020_Author,Kategorya&$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.

</dulo>

undefinedMag-subscribe sa aking blog.

Sundin ako sa Twitter sa http://www.twitter.com/pagalvin

Mabilis at simpleng: Solve "Di-wastong Parameter ng URL” problema sa UpdateListItems sa lists.asmx

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.  Ito, 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:

<soapenv:Sobre xmlns:soapenv ='http://schemas.xmlsoap.org/soap/envelope/'>
  <soapenv:Katawan>                      
    <UpdateListItems xmlns='http://schemas.microsoft.com/sharepoint/soap/'>                     
      <listname>{C712E2EA-54E1-47AD-9D99-1848C7773E2F}</listname>                     
        <updates>                     
         <Batch OnError="Continue">
          <Method ID="1" Cmd="Update">
            <Field Name="CooperativeLock">locked!</Field>
            <Field Name="ID">1</Field>
          </Method>
        </Batch>                     
        </updates>                
      </UpdateListItems>             
  </soapenv:Katawan>         
</soapenv:Sobre>

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

</dulo>

undefinedMag-subscribe sa aking blog.

Sundin ako sa Twitter sa http://www.twitter.com/pagalvin

 

Caching Mahina Man sa JavaScript

[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, bukod sa iba pang mga bagay, 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. Kaya, 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
    • Kung hindi, using jQuery, dynamically populate a bunch if <li>’s in a <st>
  • 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.  You can 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 :). 

</dulo>

undefinedMag-subscribe sa aking blog.

Sundin ako sa Twitter sa http://www.twitter.com/pagalvin

Paano: I-configure ang Test Unit at Pagsubok Coverage may QUnit.js at Blanket.js Para sa isang Office 365 SharePoint App

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, upang 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

Tulad ng iyong nakikita, 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 xmlns="http://www.w3.org/1999/xhtml">
<head>
    <pamagat>QuizUtil test with Qunit</pamagat>
    <link rel="stylesheet" href="../CSS/qunit-1.13.0.css" />
    <script uri="text/javascript" SRC="QuizUtil.js" data-cover></script>
    <script type ="text/javascript" SRC ="qunit-1.13.0.js"></script>
    <script type ="text/javascript" SRC ="blanket.min.js"></script>

    <script>
        module("getIDFromLookup");
        pagsubok("QuizUtil getIDFromLookupField", tungkulin () {
            var goodValue = "1;#Paul Galvin";

            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");
        pagsubok("QuizUtil htmlEscape()", tungkulin () {
            equal(htmlEscape("<"), "&lt;", "Escaping a less than operator ('<')");
            equal(htmlEscape("<div class=\"someclass\">Some text</div>"), "&lt;div class=&quot;someclass&quot;&gt;Some text&lt;/div&gt;", "More complex test string.");
        });

        module("getDateAsCaml");
        pagsubok("QuizUtil getDateAsCaml()", tungkulin () {
            equal(getDateAsCaml(bago Petsa("12/31/2013")), "2013-12-31T:00:00:00", "Testing hard coded date: [12/31/2013]");
            equal(getDateAsCaml(bago Petsa("01/05/2014")), "2014-01-05T:00:00:00", "Testing hard coded date: [01/05/2014]");
            equal(getDateAsCaml(bago Petsa("01/31/2014")), "2014-01-31T:00:00:00", "Testing hard coded date: [01/31/2014]");
            equal(getTodayAsCaml(), getDateAsCaml(bago Petsa()), "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");
        pagsubok("QuizUtil getParameterByName (from the query string)", tungkulin () {
            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");
        pagsubok("QuizUtil various cookie functions.", tungkulin () {
            equal(setCookie("test", "1", -1), getCookieValue("test"), "Get a cookie I set should work.");
            equal(setCookie("anycookie", "1", -1), totoo, "Setting a valid cooking should return 'true'.");
            equal(setCookie("crazy cookie name !@#$%\"%\\^&*(()?/><.,", "1", -1), totoo, "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.");
        });

    </script>
</head>
<katawan>
    <div ID="qunit"></div>
    <div ID="qunit-fixture"></div>

</katawan>
</html>

There are several things happening here:

  1. Referencing my code (QuizUtil.js)
  2. Referencing Qunity.js
  3. Defining some modules (getIDFromLookup, Cookies, at iba pa)
  4. Placing a <div> whose ID is “qunit”.

Pagkatapos, 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. Halimbawa, 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 <script> reference like this:
    <script uri="text/javascript" SRC="QuizUtil.js" data-cover></script>

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!

Buod (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 <script> tag
  • Run your Qunit tests.

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

Happy testing!

</dulo>

undefinedMag-subscribe sa aking blog.

Sundin ako sa Twitter sa http://www.twitter.com/pagalvin

Ang Huling suit Makikita mo Kailanman Magsuot?

[Mabilis na tandaan - ito ay isang medyo mahaba ang post sa isang bukas na trabaho para sa aking mga grupo dito sa New York at mo na kailangan upang mabuhay sa Tri-estado na lugar kung interesado ka.]

Ako ay sumali sa Slalom Pagkonsulta sa ibabaw 18 buwan na nakalipas at na ginagawang ito ang aking pinakamahabang walang pagkupas trabaho dahil 2007. Hindi ko balak ito na paraan. Bago ang isang string ng mga trabaho hopping na makapagsimula sa aking mga hakbang sa SharePoint mundo, Ako ay sa isang lugar para sa labing-isang taon. Sa wakas nahanap ko ang isang bagong, walang maliw na lugar upang gumana para sa mahabang bumatak dito sa Slalom.

Ang lugar na ito ay lumalaki at kailangan ko ng tulong sa ilang upang makontrol na. Ang mga uri ng tulong na kailangan ko ay karaniwang tinatawag na "SharePoint Solutions Arkitekto" bagaman na nahanap ko ang arkitekto salita maging sa ibabaw at / o mali ang ginamit sa puwang para sa SharePoint lubos isang habang ngayon. Ako struggling sa kung paano i-blog ang tungkol sa mga ito. Hindi ko nais na lamang ilista ang isang bungkos ng mga puntos na bala sa Dice / Halimaw estilo. Aking mga mahusay na recruiting mga kapantay na paggawa na mayroon :). Kaya, Napagpasyahan kong gumawa ng isang "araw sa buhay" diskarte. Basahin ito sa paglipas at isaalang-alang:

1) Kung ito apila at

2) Kahit na alam mo sa iyong buto na maaari mong gawin ito.

Kung oo, makipag-ugnay sa akin (paul.galvin @ slalom.com) at sabihin makipag-usap.

Ang mga ito ay kung ano ang maaari mong asahan na gawin sa karaniwang linggo / buwan bilang isang architect solusyon sa aking koponan:

  • Patakbuhin ang mga proyekto, madalas na higit sa isa sa isang panahon. Ang ilang mga proyekto ay malaki at kaya gusto mo pag-aari na ang isa proyekto. "Tumatakbo" isang proyekto ay nangangahulugan na ikaw ay may pangangasiwa at pananagutan para sa pangkalahatang kalidad ng paghahatid. Sa halos bawat kaso magkakaroon ka ng PM at isang talagang malakas na koponan ng mga devs, Bas, UX mga tao, at iba pa, upang suportahan ka. Ngunit magagawa mo sa pangunahing client mukha ang nakikita, pinagkakatiwalaan, at iba pa. Walang nagtatago sa mga anino sa papel na ito :). Makikita mo Naniningil oras na ito at ang layunin ay upang lagi kayong abala sapat na upang gawin ito 80 porsiyento ng oras.
  • Tulong sa gawaing isinusulat - SOWs, RFP, deck - ang lahat na magagandang bagay-bagay. Sa tingin ko na mayroon kami sa aming maghasik proseso down na medyo masikip at solid kaya medyo formulaic. Kung ikaw ay ginagamit upang SOWs pagsulat ngayon, ang aming proseso ay hindi pagpunta sa maging isang hamon para sa iyo. RFP - ang mga ito ay isang bit mas mahirap. Sila ay may posibilidad na maging pasadya sa likas na katangian upang magsimula sa RFP at karaniwang mga pull sa maraming iba't ibang mga may-akda. Ito ay parehong mabuti at masama, ngunit higit sa lahat mabuting. Ito ay maaaring makakuha ng scrambly kapag kailangan namin upang salamangkahin ang pangangailangan para sa mahusay na serbisyo sa customer habang sinusubukan din upang manalo ng mga bagong trabaho. Malamang na hindi ka nagmamay-ari ng isang RFP ngunit tatanungin ka upang mag-ambag seksyon.
  • Benta ng mga tawag, ngunit hindi isang mas malapit. Sa kurso ng isang buwan, maaari mong asahan upang pumunta sa isang pares ng mga benta mga tawag sa aming koponan sa pagbebenta. Ikaw ang SME sa kuwarto, tumagal ng mga tala at matulungan ang hugis solusyon. Gayunman, hindi mo hihingiin o inaasahan upang mahawakan ang mga benta cycle mula simula hanggang matapos. Hindi mo na kailangang "ibenta,"Ikaw lamang ang kailangan upang maging mahinahon ang boses ng mga ekspertong dahilan sa kuwarto. Ito Bumubuo ang tiwala at kumpiyansa at iyon ang dahilan kung bakit ikaw ay may. Talaga, kung gusto mo ng pagbebenta, pagkatapos ay mayroong kuwarto para sa iyo na lumalaki dito masyadong.
  • Tulong sa recruiting. Mayroon kaming ilang mga uri ng referral programa, kaya kung alam mo talagang malakas na kakailanganin ng mga tao sa komunidad na sa tingin mo ay dapat na bahagi ng Slalom, maaari kang makinabang na paraan. Naglaan kami recruiters (sino napakahusay) gawin ibahagi ang leon ng mga ganitong uri ng trabaho. Ang tunay na tulong ay interviewing kandidato - ay sila ng isang magandang pagkakaangkop kultura? Huwag nila alam ang kanilang mga bagay-bagay? Maaari silang gumawa * aking * mas madali ang buhay? 🙂 ito ay sa spurts, ng dalawang beses sa isang buwan, bagaman sa ilang buwan hindi mo gusto gawin ito sa lahat.
  • Tulong tukuyin ang mga pinakamahusay na kasanayan, bumuo ng up ang aming mga IP at gumawa ng sa amin mas mapagkumpitensya sa merkado. Ikaw ay isang bihasang tao / gal. Ka nakapunta sa paligid ng bloke - hindi lamang sa SharePoint, ngunit mayroon kang karanasan sa iba pang mga teknolohiya at nanirahan sa pamamagitan ng mabuti at masama (kahit na kahila-hilakbot) proyekto sa lahat ng dako. Bilang isang resulta, alam mo kung ano ang gumagana at ano ang hindi. Susubukan naming nais mong ibahagi na karanasan sa amin sa araw-araw na batayan sa isang pantaktika kamalayan (i.e. patakbuhin ang iyong mga proyekto na rin talaga) ngunit din madiskarteng. "Pinakamahusay na kasanayan" ay isang bit baldado bilang isang termino at mag-atubiling kong gamitin ang mga ito. Ang pangunahing ideya ay na kayo ay darating in bilang isang bihasang tao na may malalim at may-katuturang mga karanasan at gusto naming pagsamahin ang pinakamahusay na ng iyong mga learnings sa kung paano nakikipag-ugnayan kami sa mga customer sa isang araw-araw na batayan.
  • Magkatuwaan - Kami ay isang napaka-isinama buwig. Gusto ko upang maiwasan ang isa pang karaniwang kasabihan, subalit ito ay talagang apt sa kasong ito - gumana kami matapang (uri ng) at i-play namin kahit mahirap :). Mayroong isang uri Aaron Sorkin ng tukso dito, room ay palaging puno ng matalino mga tao, gusto namin ang aming mga inumin at kami ayusin ang isang patas na bilang ng mga kaganapan masaya - pelikula gabi, baseball trip (kahit na sila ay nakapanghihilakbot, sa kapaki-pakinabang na paraan masasamang mga koponan).

Kung ang maaari kong sabihin sa ilang ang lahat ng ito sa isang salita, Gusto kong gamitin ang salitang "pamumuno." Lead proyekto, kumuha ng isang lead na papel sa pagbuo out ang practice (IP, pagbuo up ang koponan), at iba pa.

Ngunit maghintay! Marami pa! Bakit iba gumana sa Slalom?

  • Kapansin-pansin na pagkakaisa ng layunin - lahat ng tao ay nais na palaguin ang bagay na ito out. “This thing” is the New York office. Lahat ng tao ay nakasakay na ito.
  • Hangin sa iyong mga sails - kapatid na babae opisina, kapatid na babae kasanayan - Slalom ay isang "buong serbisyo" sa pagkonsulta organisasyon. Humantong up ko ang SharePoint kasanayan (isang "Practice Area Lead" sa Slalom hindi karaniwang pangungusap). Mayroon akong kapatid na babae kasanayan sa 11 iba pang mga opisina ng Slalom. Kaya kahit na ako hari kasing layo ng SharePoint ay nag-aalala dito sa Slalom New York, Mayroon akong peer kasanayan sa Chicago, Seattle, Dallas, Atlanta, Boston, at iba pa. mula sa kung saan ang maaari kong gumuhit sa suporta. Ito ay talagang ang pinakamahusay na ng parehong mundo - makabuluhang pagsasarili dito sa New York ngunit access sa tonelada ng mga talento sa buong samahan.
  • Hangin sa iyong mga benta (2) - Ginagawa namin ang higit sa SharePoint - magkano ang higit pa. We do BI, CRM, UX, negosyo pagkonsulta, Mobile, custom na development at iba pa. Kami ay mahusay sa krus ibentang sa gitna ng ating mga sarili at kami ay mahusay sa pagpipinta - at mas mahalaga, naghahatid sa oras - isang "buong serbisyo" na larawan para sa aming mga kliyente. Ito ay lalo na sumasamo sa akin. Ko pa sa maraming mga mas maliit Org nagtatrabaho sa SharePoint gig at bigo nang paulit-ulit sapagkat hindi namin nagawang kalapati holed bilang "mga tao SharePoint." Hindi iyan mangyayari sa Slalom at makuha namin upang gawin mas kawili-wiling trabaho bilang isang resulta.
  • Lokal na modelo - walang paglalakbay.
  • Long term na paglago - Slalom ay pagpunta gangbusters. Napakaraming paglago at katatagan. Paglaki na rin ay nangangahulugan na kailangan namin upang umarkila lider ngayon upang magtungo ang mga bagong koponan bilang namin magdagdag ng higit pang mga kliyente at mga kawani upang suportahan ang mga kliyente.

Kaya kong pumunta sa, but I’ve probably already gone on too long. Sa tingin ko ko na nakunan ng kakanyahan dito. Kung nag-iisip ka ng tungkol sa pagbabago ng mga trabaho at ito asta mabuti sa iyo, sabihin makipag-usap.

Kung masaya ka sa iyong kasalukuyang trabaho - natin pag-usapan pa rin :). Ko pa ng maraming mga lugar at noon ay napaka "masaya" sa oras. Slalom ay naiiba at Gusto ko maligayang pagdating ng pagkakataon na kumbinsihin ka ng na.

</dulo>

undefinedMag-subscribe sa aking blog.

Sundin ako sa Twitter sa http://www.twitter.com/pagalvin

Mabilis at madali: Itakda ang Laki ng isang item sa isang Box List sa isang Windows App Store

Sa isang Windows App Store Lumilikha ako, Nais kong ipakita ang iba't-ibang mga user-kaalamang mga mensahe.  Kinuha ko ang isang ListBox bilang ng tool upang ipakita ito sa gayon ay maaari silang mag-scroll sa pamamagitan ng mga ito at ang lahat na magagandang bagay-bagay. 

Ang mga mensahe ay pang-impormasyon lamang, kaya hindi na kailangan upang magbigay ng lahat na ang dagdag na whitespace nakapaligid sa kanila dahil ang gumagamit ay hindi kailanman maaaring piliin ang mga ito para sa anumang bagay.  Ang default na pag-uugali ng ListBox ay nagbibigay ng isang makabuluhang halaga ng padding at Nais kong upang makakuha ng mapupuksa ito.  Well .... hindi mo maaaring gawin na uri ng mga bagay sa ListBox direkta.  GAANO MAN, maaari mong gawin ito sa mga item idagdag mo:

        pribado walang bisa AddGameStateLogMessage(pisi theMessage)
        {
            Textbox t = bago Textbox();
            t.Text = GameStateCounter     + ": " + theMessage;
            t.TextWrapping = TextWrapping.Wrap;
            t.MinWidth = 400;
            Kapal thisPadding = bago Kapal(5, 0, 5, 0);
            t.Padding = thisPadding;
            t.FontSize = 12;

            ListBoxItem na = bago ListBoxItem();
            li.Content = t;
            li.MaxHeight = 25;
            thisPadding = bago Kapal(5, 0, 5, 0);
            li.Padding = thisPadding;

            GameStateLog.Items.Insert(0,li);
        }

sa itaas, Lumilikha ako ng isang textbox at ng pagtatakda ng font, padding nito, at iba pa.

Susunod, Ako lilikha ng isang ListBoxItem at itakda ang nilalaman nito sa textbox na-format.

Sa wakas, Ako isingit ang ListBoxItem sa ListBox.  (Nais kong ipakita ang pinaka-kamakailang mensahe sa tuktok ng listahan, kaya ang Ipasok(0,li) sa halip ng isang simpleng Add() pananalangin.).

Ako ay magiging pag-aayos na ito ng kaunti bago ako talagang masaya sa ListBox pag-uugali pero ang pattern na ipinapakita sa itaas ay naging napaka-mabunga.  Sana ibang tao hahanap ito kapaki-pakinabang.

</dulo>

undefinedMag-subscribe sa aking blog.

Sundin ako sa Twitter sa http://www.twitter.com/pagalvin