Jinsi ya TAJA Watu kama Tafuta Wigo / Content Kupunguza kutumia SharePoint 2013 Mapumziko 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: kazi() {

        jQuery.support.cors = kweli;

        $.ajax({
            url: hii.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",
            njia: "GET",
            headers: { "Accept": "application/json; odata=verbose" },
            cache: uongo,
            success: kazi (kusababisha) {

Katika kesi yangu, 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, lakini mimi daima utasikia kuangalia anyway 🙂 ).

</mwisho>

undefinedKujiunga na blog yangu.

Kufuata yangu juu ya Twitter kwa http://www.twitter.com/pagalvin

Wito mfano SharePoint mapumziko

Here’s a set of sample REST calls that work for me and may help you out as well. Kama ya 02/2014, kuna mifano miwili 🙂

  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')/vitu" +
             "?$select=Title,Categories/Title,Blog_x0020_Author/Title" + 
             "&$expand=Blog_x0020_Author,Jamii";

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

Kusoma zaidi kuhusu hilo hapa: http://www.mstechblogs.com/paul/?p=10385

 

</mwisho>

undefinedKujiunga na blog yangu.

Kufuata yangu juu ya Twitter kwa http://www.twitter.com/pagalvin

Haraka na Easy: Kujenga SharePoint Site kutumia mapumziko

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

<kituo cha>
<meza>
    <tr>
        <td>Site Name:</td>
        <td><pembejeo aina="text" jina="SiteName" id="SiteName" /></td>
    </tr>
    <tr>
        <td colspan="2">
            <pembejeo aina="submit" id="CreateSiteButton" thamani="Create the Site" />
        </td>
    </tr>
</meza>
</kituo cha>

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

<script>
var CreateSiteLogicContainer = {

    createSiteData: {
            "parameters": {
                __metadata: { "type": "SP.WebInfoCreationInformation" },
                Url: "Paultest1",
                Title: "Paultest1",
                Description: "rest-created web by Paul!",
                Lugha: 1033,
                WebTemplate: "sts",
                UseUniquePermissions: uongo
            }
    },

    createSite: kazi () {

        jQuery.support.cors = kweli;

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

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

            data: JSON.stringify(CreateSiteLogicContainer.createSiteData),

            success: kazi () { tahadhari("success"); },
            kosa: kazi () { tahadhari("error"); }

        });
    },

    wireUpForm: kazi () {
        $("#CreateSiteButton").bonyeza(kazi () {
            tahadhari("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.  Katika kesi yangu, 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.  Katika kesi yangu, 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.

</mwisho>

undefinedKujiunga na blog yangu.

Kufuata yangu juu ya Twitter kwa http://www.twitter.com/pagalvin

Kuondokana na Annoying Tatizo na Uzito URL katika SharePoint Quick Uzinduzi

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

 

$(hati).tayari( kazi () {

    $("a:contains('Test URL replacement')").bonyeza(kazi () { tahadhari("changed click behavior!"); kurudi uongo;});

});

And Bob’s your uncle.

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

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

</mwisho>

undefinedKujiunga na blog yangu.

Kufuata yangu juu ya Twitter kwa http://www.twitter.com/pagalvin

Haraka na rahisi: SharePoint mapumziko Call Returns tu 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.  Katika kesi yangu (and I believe in most cases), the default REST calls to SharePoint (and possibly as an industry standard?) kurudi 100 rows.  To return more than the default, use the $top parameter on your call, kama katika:

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

</mwisho>

undefinedKujiunga na blog yangu.

Kufuata yangu juu ya Twitter kwa http://www.twitter.com/pagalvin

Haraka na rahisi: Kutatua "Kigezo batili URL” tatizo na UpdateListItems katika 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.  Hii, 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:Bahasha xmlns:soapenv ='http://schemas.xmlsoap.org/soap/envelope/'>
  <soapenv:Mwili>                      
    <UpdateListItems xmlns='http://schemas.microsoft.com/sharepoint/soap/'>                     
      <Deciduous>{C712E2EA-54E1-47AD-9D99-1848C7773E2F}</Deciduous>                     
        <updates>                     
         <Batch OnError="Continue">
          <Method ID="1" Cmd="Update">
            <Field Name="CooperativeLock">locked!</Shamba>
            <Field Name="ID">1</Shamba>
          </Method>
        </Batch>                     
        </updates>                
      </UpdateListItems>             
  </soapenv:Mwili>         
</soapenv:Bahasha>

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

</mwisho>

undefinedKujiunga na blog yangu.

Kufuata yangu juu ya Twitter kwa http://www.twitter.com/pagalvin

 

Caching maskini Man katika 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, miongoni mwa mambo mengine, 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. Hivyo, 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
    • Vinginevyo, 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 :). 

</mwisho>

undefinedKujiunga na blog yangu.

Kufuata yangu juu ya Twitter kwa http://www.twitter.com/pagalvin

Jinsi ya: Configure Unit mtihani na mtihani Coverage na QUnit.js na Blanket.js kwa ajili ya ofisi 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, kwa 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

Kama unaweza kuona, 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>
    <cheo>QuizUtil test with Qunit</cheo>
    <kiungo rel="stylesheet" href="../CSS/qunit-1.13.0.css" />
    <script aina="text/javascript" src="QuizUtil.js" data-cover></script>
    <script aina ="text/javascript" src ="qunit-1.13.0.js"></script>
    <script aina ="text/javascript" src ="blanket.min.js"></script>

    <script>
        module("getIDFromLookup");
        mtihani("QuizUtil getIDFromLookupField", kazi () {
            var goodValue = "1;#Paulo 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");
        mtihani("QuizUtil htmlEscape()", kazi () {
            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");
        mtihani("QuizUtil getDateAsCaml()", kazi () {
            equal(getDateAsCaml(mpya Tarehe("12/31/2013")), "2013-12-31T:00:00:00", "Testing hard coded date: [12/31/2013]");
            equal(getDateAsCaml(mpya Tarehe("01/05/2014")), "2014-01-05T:00:00:00", "Testing hard coded date: [01/05/2014]");
            equal(getDateAsCaml(mpya Tarehe("01/31/2014")), "2014-01-31T:00:00:00", "Testing hard coded date: [01/31/2014]");
            equal(getTodayAsCaml(), getDateAsCaml(mpya Tarehe()), "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");
        mtihani("QuizUtil getParameterByName (from the query string)", kazi () {
            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");
        mtihani("QuizUtil various cookie functions.", kazi () {
            equal(setCookie("test", "1", -1), getCookieValue("test"), "Get a cookie I set should work.");
            equal(setCookie("anycookie", "1", -1), kweli, "Setting a valid cooking should return 'true'.");
            equal(setCookie("crazy cookie name !@#$%\"%\\^&*(()?/><.,", "1", -1), kweli, "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>
<mwili>
    <div id="qunit"></div>
    <div id="qunit-fixture"></div>

</mwili>
</html>

There are several things happening here:

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

Kisha, 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. Kwa mfano, 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 aina="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!

Muhtasari (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!

</mwisho>

undefinedKujiunga na blog yangu.

Kufuata yangu juu ya Twitter kwa http://www.twitter.com/pagalvin

Suit Mwisho utasikia Ever Vaa?

[Haraka kumbuka - hii ni baada ya pretty muda mrefu juu ya nafasi ya kazi kwa ajili ya kundi yangu hapa mjini New York na huna haja ya kuishi katika eneo Tri-hali kama wewe ni nia.]

Mimi alijiunga Slalom Consulting juu ya 18 iliyopita na kwamba inafanya yangu hii ndefu ya kudumu kazi tangu 2007. Sikuwa na mpango kwamba njia. Kabla ya kamba ya kazi hopping kwamba ilianza na leap wangu katika dunia SharePoint, Nilikuwa katika sehemu moja kwa miaka kumi na moja. Nimekuwa hatimaye kupatikana mpya, kudumu mahali pa kazi kwa ajili ya mapambano ya muda mrefu hapa katika Slalom.

Nafasi hii ni kuongezeka na nahitaji msaada wa baadhi ya kudhibiti kwamba. aina ya msaada nahitaji ni kawaida huitwa "SharePoint Solutions Mbunifu" ingawa Nimepata neno mbunifu kuwa juu na / au kimakosa kutumika katika nafasi SharePoint kwa muda kabisa sasa. Nimekuwa wanajitahidi juu ya jinsi ya blog juu ya hii. Sitaki tu kuorodhesha nje rundo la pointi risasi katika kete / style monster. Kuajiri yangu rika bora wamekuwa wakifanya kwamba tayari :). Hivyo, Niliamua kuchukua "siku katika maisha ya" njia ya. Kusoma ni juu na fikiria:

1) Kama rufaa na

2) Kama wewe kujua katika mifupa yako kwamba unaweza kufanya hivyo.

Kama ndiyo, wasiliana na mimi (paul.galvin @ slalom.com) na hebu majadiliano.

Hizi ni nini unaweza kutarajia kufanya katika wiki ya kawaida / mwezi kama mbunifu ufumbuzi juu ya timu yangu:

  • Kuendesha miradi, mara nyingi zaidi ya mmoja kwa wakati. Baadhi ya miradi ni kubwa na hivyo utaweza wenyewe kwamba mradi mmoja. "Mbio" mradi ina maana kwamba una usimamizi na uwajibikaji kwa ujumla ubora wa utoaji. Katika karibu kila kesi itabidi PM na timu ya kweli nguvu ya devs, Bas, UX watu, nk, kukusaidia. Lakini wewe utakuwa uso kuu mteja anaona, amana, nk. Hakuna mafichoni katika vivuli katika jukumu hili :). Utasikia bili wakati huu na lengo ni kushika busy wa kutosha kufanya hili 80 asilimia ya muda.
  • Kusaidia na makaratasi - hupanda, RFPs, Decks - mambo ambayo yote mema. Nadhani tuna mchakato wetu PANDA chini pretty tight na imara hivyo ni haki formulaic. Kama wewe ni kutumika kwa hupanda kuandika leo, mchakato wetu ni si kwenda kuwa changamoto kwa wewe. RFPs - hizi ni vigumu kidogo. Wao huwa na kuwa bespoke katika asili na kuanza kwa na RFPs kawaida kuvuta waandishi wengi tofauti. Ni nzuri na mbaya, lakini hasa nzuri. Hii inaweza kupata scrambly wakati tunahitaji juggle haja ya huduma bora kwa wateja wakati pia kujaribu kushinda kazi mpya. Pengine si wenyewe RFP lakini utatakiwa kuchangia sehemu.
  • Mauzo ya wito, lakini si karibu. Katika mwendo wa mwezi, unaweza kutarajia kwenda juu ya wanandoa wa mauzo ya wito kwa timu yetu ya mauzo. Wewe utakuwa na SME katika chumba, kuchukua maelezo na kusaidia kubadili ufumbuzi. Hata hivyo, huwezi kuulizwa au inatarajiwa kushughulikia mzunguko wa mauzo kutoka kuanza kumaliza. Huna haja ya "kuuza,"Wewe tu haja ya kuwa na sauti tulivu ya sababu mtaalam katika chumba. Hii hujenga uaminifu na kujiamini na kwamba sababu wewe ni pale. Bila shaka, kama wewe kama kuuza, kisha kuna chumba kwa ajili ya wewe kukua hapa pia.
  • Msaada na kuajiri. Sisi kufanya kuwa na baadhi ya aina ya mpango rufaa, hivyo kama unajua kweli nguvu folks katika jamii ambayo unadhani kinatakiwa kuwa sehemu ya Slalom, unaweza kufaidika kwamba njia. Tuna ari waajiri (ambao ni bora) kufanya sehemu kubwa ya aina hii ya kazi. msaada halisi ni kuhoji wagombea - ni wao fit nzuri kiutamaduni? Je, wanajua mambo yao? Je, wanaweza kufanya * yangu * maisha rahisi? 🙂 Hii inakuja katika spurts, mara kadhaa kwa mwezi, ingawa katika baadhi ya miezi bila kufanya hivyo wakati wote.
  • Kusaidia kufafanua mbinu bora, kujenga IP zetu na kutufanya zaidi ushindani katika soko. Wewe guy uzoefu / gal. Tumekuwa kuzunguka block - si tu katika SharePoint, lakini una uzoefu katika teknolojia nyingine na aliishi kwa njia nzuri na mbaya (hata kutisha) miradi yote ya juu ya. Kama matokeo, unajua kazi gani na nini hana. Tutaweza nataka wewe kushiriki kwamba uzoefu na sisi juu ya siku ya siku msingi katika hisia tactical (i.e. kuendesha miradi yako vizuri) lakini pia kuweka mikakati ya. "Njia Bora" ni kidogo kupita kiasi kama mrefu na mimi kubisha kuitumia. wazo la msingi ni kwamba wewe ni kuja katika kama mtu uzoefu na uzoefu wa kina na muhimu na tunataka kuunganisha bora ya learnings yako katika jinsi sisi kushiriki na wateja juu ya siku hadi siku.
  • Kuwa na furaha - Sisi ni rundo sana jumuishi. Nataka kuepuka jingine platitude, lakini ni kweli anayeweza katika kesi hii - sisi kazi kwa bidii (aina ya) na sisi kucheza hata vigumu :). Kuna Haruni Sorkin aina ya banter hapa, chumba ni daima kamili ya watu wajanja, sisi kama kinywaji yetu na sisi kuandaa idadi ya haki ya matukio ya furaha - movie usiku, baseball safari (hata kama ni kutisha, kivitendo mabaya timu).

Kama mimi naweza jumla ni yote ndani ya neno moja, Ningependa kutumia neno "uongozi". Kiongozi miradi, kuchukua jukumu la kuongoza katika kujenga nje ya mazoezi (IP, kujenga timu), nk.

Lakini kusubiri! Kuna zaidi! Kwa nini kingine kazi katika Slalom?

  • Ajabu umoja ya dhamira - kila mtu anataka kukua jambo hili nje. “This thing” is the New York office. Kila mtu ni juu ya bodi na hii.
  • Upepo katika tanga yako - dada ofisi, dada mazoea - Slalom ni "huduma kamili" ushauri shirika. Mimi kuongoza hadi mazoezi SharePoint ("Mazoezi Area Kiongozi" katika Hands Slalom). Nina mazoea ya dada katika 11 nyingine Slalom ofisi. Hivyo hata kama mimi nina mfalme mbali kama SharePoint ni wasiwasi hapa katika Slalom New York, Nina rika mazoea katika Chicago, Seattle, Dallas, Atlanta, Boston, nk. ambayo mimi wanaweza kuchora juu ya msaada. Ni kweli bora wa walimwengu wote - kubwa uhuru hapa mjini New York lakini upatikanaji wa tani ya vipaji katika shirika.
  • Upepo katika mauzo yako (2) - Sisi kufanya zaidi SharePoint - zaidi. We do BI, Ali, UX, ushauri wa biashara, Mkono, desturi ya maendeleo na wengine. Sisi ni nzuri katika kuuza msalaba miongoni mwa wenyewe na sisi ni nzuri katika uchoraji - na muhimu zaidi, kutoa juu - picha "huduma kamili" kwa ajili ya wateja wetu. Hii ni hasa rufaa kwa mimi. Nimekuwa katika orgs ndogo nyingi kazi ya gigs SharePoint na kuchanganyikiwa zaidi na zaidi tena kwa sababu tulikuwa mbaazi holed kama "watu SharePoint." Hiyo haina kutokea kwa Slalom na sisi kupata kufanya kazi zaidi ya kuvutia kama matokeo.
  • Mitaa mfano - hakuna usafiri.
  • Muda mrefu ukuaji - Slalom imekuwa kwenda gangbusters. Kura ya ukuaji wa uchumi na utulivu. Ukuaji pia ina maana kwamba tunahitaji kuajiri viongozi wa leo ya kichwa juu ya timu ya mwezi kama sisi kuongeza wateja zaidi na wafanyakazi ili kusaidia wateja wale.

Ningeweza kwenda kwenye, but I’ve probably already gone on too long. Nadhani nimepata alitekwa kiini hapa. Kama wewe ni kufikiri kuhusu kubadilisha ajira na hii inaonekana nzuri na wewe, hebu majadiliano.

Kama wewe ni furaha katika kazi yako ya sasa - hebu majadiliano anyway :). Nimekuwa katika maeneo mengi ya na ilikuwa ni "furaha" kwa wakati. Slalom ni tofauti na ningependa kuwakaribisha nafasi ya kuwashawishi ya kwamba.

</mwisho>

undefinedKujiunga na blog yangu.

Kufuata yangu juu ya Twitter kwa http://www.twitter.com/pagalvin

Haraka na Easy: Kuweka Ukubwa wa Vitu katika a Orodha katika Windows Hifadhi App

Katika Hifadhi App Windows mimi nina kujenga, Nataka kuonyesha user mbalimbali ujumbe habari.  Mimi ilichukua listbox kama chombo cha kuonyesha kuwa ili waweze kitabu kupitia wao na mambo ambayo yote mema. 

ujumbe ni habari tu, hivyo hakuna haja ya kutoa whitespace kwamba wote ziada karibu yao tangu mtumiaji anaweza kamwe kuchagua yao kwa ajili ya kitu chochote.  tabia default ya listbox hutoa kiasi kikubwa cha padding na nilitaka kujikwamua ni.  Vizuri .... huwezi kufanya aina ya kitu juu ya listbox moja kwa moja.  ISIPOKUWA, unaweza kufanya hivyo kwa vitu wewe kuongeza:

        binafsi utupu AddGameStateLogMessage(string theMessage)
        {
            Kisanduku cha maandishi t = mpya Kisanduku cha maandishi();
            t.Text = GameStateCounter     + ": " + theMessage;
            t.TextWrapping = TextWrapping.Wrap;
            t.MinWidth = 400;
            Unene thisPadding = mpya Unene(5, 0, 5, 0);
            t.Padding = thisPadding;
            t.FontSize = 12;

            ListBoxItem kwamba = mpya ListBoxItem();
            li.Content = t;
            li.MaxHeight = 25;
            thisPadding = mpya Unene(5, 0, 5, 0);
            li.Padding = thisPadding;

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

katika hapo juu, Mimi kujenga kisanduku cha maandishi na kuweka font yake, yake padding, nk.

Ijayo, Mimi kujenga ListBoxItem na kuweka maudhui yake ya kisanduku cha maandishi mpangilio.

Hatimaye, Mimi kuingiza ListBoxItem katika listbox.  (Nataka kuonyesha ujumbe wa hivi karibuni juu ya orodha, hivyo Insert(0,li) badala ya kuongeza rahisi() sala.).

Mimi nitakuwa tweaking hii kidogo kabla ya Najisikia furaha sana na tabia listbox lakini muundo inavyoonekana hapo juu imekuwa sana matunda.  Hopefully mtu mwingine anaona ni manufaa.

</mwisho>

undefinedKujiunga na blog yangu.

Kufuata yangu juu ya Twitter kwa http://www.twitter.com/pagalvin