Hoe om mense te spesifiseer as 'n Soek Scope / Inhoud Bron Gebruik SharePoint 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: funksie() {

        jQuery.support.cors = waar;

        $.ajax({
            url: hierdie.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",
            metode: "GET",
            headers: { "Accept": "application/json; odata=verbose" },
            cache: valse,
            success: funksie (lei) {

In my geval, 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, maar ek sal in elk geval altyd kyk 🙂 ).

</einde>

undefinedSkryf in op my blog.

Volg my op Twitter http://www.twitter.com/pagalvin

Voorbeeld SharePoint REST Oproepe

Here’s a set of sample REST calls that work for me and may help you out as well. Soos van 02/2014, daar is twee voorbeelde 🙂

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

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

Lees meer daaroor hier: http://www.mstechblogs.com/paul/?p=10385

 

</einde>

undefinedSkryf in op my blog.

Volg my op Twitter http://www.twitter.com/pagalvin

Vinnige en maklike: Skep 'n SharePoint werf met behulp van rus

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

<sentrum>
<tafel>
    <tr>
        <td>Site Name:</td>
        <td><insette tipe="text" naam="SiteName" ID="SiteName" /></td>
    </tr>
    <tr>
        <td colspan="2">
            <insette tipe="submit" ID="CreateSiteButton" waarde="Create the Site" />
        </td>
    </tr>
</tafel>
</sentrum>

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

<script>
was CreateSiteLogicContainer = {

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

    createSite: funksie () {

        jQuery.support.cors = waar;

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

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

            data: JSON.stringify(CreateSiteLogicContainer.createSiteData),

            success: funksie () { waarsku("success"); },
            fout: funksie () { waarsku("error"); }

        });
    },

    wireUpForm: funksie () {
        $("#CreateSiteButton").kliek(funksie () {
            waarsku("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.  In my geval, 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.  In my geval, 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.

</einde>

undefinedSkryf in op my blog.

Volg my op Twitter http://www.twitter.com/pagalvin

Oorkom irriterende probleem met relatiewe URL's in 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 (byvoorbeeld, ‘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. Om dit op te los, get some JavaScript and jQuery onto the page using your favorite technique and with a line of code like this:

 

$(dokument).gereed( funksie () {

    $("1:contains('Test URL replacement')").kliek(funksie () { waarsku("changed click behavior!"); terugkeer valse;});

});

And Bob’s your uncle.

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

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

</einde>

undefinedSkryf in op my blog.

Volg my op Twitter http://www.twitter.com/pagalvin

Vinnige en maklike: SharePoint REST Call Slegs Opbrengste 100 Rekords

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.  In my geval (and I believe in most cases), the default REST calls to SharePoint (and possibly as an industry standard?) terugkeer 100 rows.  To return more than the default, use the $top parameter on your call, soos in:

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

</einde>

undefinedSkryf in op my blog.

Volg my op Twitter http://www.twitter.com/pagalvin

Vinnige en maklike: Los "Ongeldige URL Parameter” probleem met UpdateListItems in 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.  Dit, 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 <Metode> element.  And you’re not updated ID and probably never want to in the first place.

This SOAP envelope works:

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

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

</einde>

undefinedSkryf in op my blog.

Volg my op Twitter http://www.twitter.com/pagalvin

 

Arm man se Caching in 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, onder andere, 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. So, 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
    • Anders, using jQuery, dynamically populate a bunch if <li>’s in a <Straat>
  • 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.  Jy kan 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 :). 

</einde>

undefinedSkryf in op my blog.

Volg my op Twitter http://www.twitter.com/pagalvin

Hoe om te: Instel Eenheid Toets en Toets dekking met QUnit.js en Blanket.js vir 'n kantoor 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, aan 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

Soos jy kan sien, 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>
    <titel>QuizUtil test with Qunit</titel>
    <skakel rel="stylesheet" href="../CSS/qunit-1.13.0.css" />
    <script tipe="text/javascript" src="QuizUtil.js" data-cover></script>
    <script type ="Teks / javascript" src ="qunit-1.13.0.js"></script>
    <script type ="Teks / javascript" src ="blanket.min.js"></script>

    <script>
        module("getIDFromLookup");
        toets("QuizUtil getIDFromLookupField", funksie () {
            was 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");
        toets("QuizUtil htmlEscape()", funksie () {
            equal(htmlEscape("<"), "&Dit;", "Escaping a less than operator ("<")");
            equal(htmlEscape("<div class=\"someclass\">Some text</Div>"), "&Dit;div class=&quot;someclass&quot;&gt;Some text&Dit;/Div&gt;", "More complex test string.");
        });

        module("getDateAsCaml");
        toets("QuizUtil getDateAsCaml()", funksie () {
            equal(getDateAsCaml(nuwe Datum("12/31/2013")), "2013-12-31T:00:00:00", "Testing hard coded date: [12/31/2013]");
            equal(getDateAsCaml(nuwe Datum("01/05/2014")), "2014-01-05T:00:00:00", "Testing hard coded date: [01/05/2014]");
            equal(getDateAsCaml(nuwe Datum("01/31/2014")), "2014-01-31T:00:00:00", "Testing hard coded date: [01/31/2014]");
            equal(getTodayAsCaml(), getDateAsCaml(nuwe Datum()), "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");
        toets("QuizUtil getParameterByName (from the query string)", funksie () {
            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");
        toets("QuizUtil various cookie functions.", funksie () {
            equal(setCookie("Toets", "1", -1), getCookieValue("Toets"), "Get a cookie I set should work.");
            equal(setCookie("anycookie", "1", -1), waar, "Setting a valid cooking should return 'true'.");
            equal(setCookie("crazy cookie name !@#$%\"%\\^&*(()?/><.,", "1", -1), waar, "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>
<liggaam>
    <Div ID="qunit"></Div>
    <Div ID="qunit-fixture"></Div>

</liggaam>
</html>

There are several things happening here:

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

Toe, 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. Byvoorbeeld, 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 tipe="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!

Opsomming (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> dag
  • Run your Qunit tests.

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

Happy testing!

</einde>

undefinedSkryf in op my blog.

Volg my op Twitter http://www.twitter.com/pagalvin

Die Laaste pak Jy sal ooit Dra?

[Vinnige nota - dit is 'n redelik lang post op 'n job opening vir my groep hier in New York en jy hoef te lewe in die Tri-State area as jy belangstel.]

Ek het by Slalom Consulting oor 18 maande gelede en dit maak dit my langste blywende werk sedert 2007. Ek het nie beplan om dit op dié manier. Voor 'n string van die werk spring wat begin met my sprong in die SharePoint wêreld, Ek was by 'n plek vir elf jaar. Ek het uiteindelik 'n nuwe, blywende plek om te werk vir die langtermyn hier by Slalom.

Hierdie plek is om te groei en ek het hulp nodig wat te beheer. Die soort hulp wat ek nodig het, is gewoonlik 'n "SharePoint Solutions argitek" maar ek het gevind dat die argitek woord te wees oor en / of verkeerdelik gebruik in die SharePoint ruimte vir 'n geruime tyd nou. Ek het gesukkel oor hoe om te blog oor hierdie. Ek wil nie net die lys uit 'n klomp van die koeël punte in Dice / Monster styl. My uitstekende werwing eweknieë is wat reeds besig :). So, Ek het besluit om 'n "dag in die lewe" te neem benadering. Lees dit oor en oorweeg:

1) As dit 'n beroep en

2) Of jy weet in jou bene dat jy dit kan doen.

Indien ja, kontak my (paul.galvin @ slalom.com) en laat ons praat.

Dit is wat jy kan verwag om te doen in 'n tipiese week / maand as 'n oplossing argitek op my span:

  • Begin projekte, dikwels meer as een op 'n tyd. Sommige projekte is groot en so jy besit wat 'n projek. "Running" 'n projek beteken dat jy toesig en verantwoordelikheid vir die algehele gehalte van die lewering. In byna elke geval jy het 'n PM en 'n baie sterk span van devs, BA's, UX mense, ens., om jou te ondersteun. Maar jy sal die vernaamste gesig die kliënt sien wees, trusts, ens.. Daar is geen wegkruip in die skadu's in hierdie rol :). Jy sal hierdie tyd wetsontwerp en die doel is om jou besig te hou genoeg om dit te doen 80 persent van die tyd.
  • Help met die papierwerk - saai, RFPs, dekke - almal wat goeie dinge. Ek dink ons ​​het ons SOW proses vertraag mooi stywe en vaste so dit is redelik formulaic. As jy gebruik om te skryf saai vandag, ons proses is nie van plan om 'n uitdaging wees vir jou. RFPs - dit is 'n bietjie harder. Hulle is geneig om te wees maat in die natuur te begin en RFPs tipies trek in verskeie verskillende skrywers. Dit is beide goed en sleg, maar hoofsaaklik 'n goeie. Dit kan scrambly kry wanneer ons nodig het om die behoefte vir 'n uitstekende kliëntediens te balanseer, terwyl dit ook probeer om nuwe werk te wen. Jy sal waarskynlik nie die eienaar van 'n RFP, maar jy sal gevra word om artikels te dra.
  • Verkope bel, maar nie 'n digter. In die loop van 'n maand, jy kan verwag om te gaan op 'n paar van die verkope bel met ons verkope span. Jy sal in die SME in die kamer, neem notas en help om die oplossing. Egter, jy sal nie gevra word of verwag dat die verkope siklus te hanteer van begin tot einde. Jy hoef nie te "verkoop,"Jy moet net die rustige stem van deskundige rede in die kamer. Dit bou vertroue en dit is hoekom jy daar. Natuurlik, as jy wil verkoop, dan is daar ruimte vir jou om hier te groei.
  • Help met die werwing van. Ons doen 'n soort van verwysing program, so as jy weet baie sterk mense in die gemeenskap wat jy dink deel moet wees van Slalom wees, jy kan voordeel trek dat die manier. Ons het toegewyde werwers (wat is 'n uitstekende) die leeue-aandeel van hierdie soort werk te doen. Die werklike hulp is onderhoude kandidate - hulle het 'n goeie passing is kultureel? Weet hulle hul dinge? Kan hulle * my * die lewe makliker? 🙂 Dit kom in fluitjies, 'n paar keer per maand, hoewel dit in sommige maande wat jy sou dit nie op alle.
  • Help definieer die beste praktyke, bou ons IP en maak ons ​​meer mededingend in die mark. Jy is 'n ervare man / gal. Jy het al om die blok - nie net in SharePoint, maar jy het ervaring in ander tegnologie en het deur goeie en slegte (Selfs die verskriklike) projekte oor. As 'n gevolg, jy weet wat werk en wat nie werk nie. Ons sal wil hê dat jy daardie ervaring met ons te deel op 'n dag-tot-dag-basis in 'n taktiese sin (d.w.z. hardloop jou projekte baie goed) maar ook strategies. "Beste praktyke" is 'n bietjie veelvuldig as 'n term en ek huiwer om dit te gebruik. Die basiese idee is dat jy kom in as 'n ervare persoon met 'n diep en toepaslike ondervinding en ons wil die beste van jou geleer het om te integreer in hoe ons betrokke te raak met kliënte op 'n dag tot dag basis.
  • Om pret te hê - Ons is 'n baie geïntegreer klomp. Ek wil nog 'n banaliteit te vermy, maar dit is regtig bekwaam in hierdie geval - ons werk hard (soort) en ons speel nog harder :). Daar is 'n Aaron Sorkin soort geskerts hier, die kamer is altyd vol slim mense, ons graag ons drink en organiseer ons 'n redelike aantal van die pret gebeure - fliekaand, baseball reise (selfs al is hulle verskriklike, prakties kwaad spanne).

As ek kon som dit alles in een woord, Ek wil die woord "leierskap." Gebruik Lood projekte, neem 'n leidende rol in die bou van die praktyk (IP, die opbou van die span), ens..

Maar wag! Daar is meer! Hoekom anders werk Slalom?

  • Merkwaardige eenheid van voorneme - almal wil hierdie ding om te groei uit. “This thing” is the New York office. Almal aan boord is met hierdie.
  • Wind in jou seile - suster kantore, suster praktyke - Slalom is 'n "full service" raadgewende organisasie. Ek lei tot die SharePoint praktyk ('n "Practice omgewing lei om" in Slalom lingo). Ek het suster praktyke op 11 ander Slalom kantore. So selfs al het ek is koning so ver as SharePoint is hier betrokke by Slalom New York, Ek het peer praktyke in Chicago, Seattle, Dallas, Atlanta, Boston, ens.. waaruit ek kan vestig op ondersteuning. Dit is regtig die beste van beide wêrelde - aansienlike outonomie hier in New York, maar toegang tot ton van die talent in die organisasie.
  • Wind in jou verkope (2) - Ons doen meer as SharePoint - baie meer. We do BI, CRM, UX, Business Consulting, Mobile, persoonlike ontwikkeling en ander. Ons is goed op cross verkoop onder onsself en ons is goed in die skildery - en meer belangrik, lewer op - 'n "full service" prentjie vir ons kliënte. Dit is veral 'n beroep op my. Ek het al by baie kleiner orgs werk op SharePoint gigs en gefrustreerd oor en oor weer, want ons was duif opsluit as die Dit gebeur nie met Slalom "SharePoint mense." En ons kry meer interessant werk te doen as 'n gevolg.
  • Plaaslike model - geen reis.
  • Langtermyn groei - Slalom is aan die gang gangbusters. Baie van die groei en stabiliteit. Groei beteken ook dat ons het leiers nodig om te huur vandag aan die hoof aan nuwe spanne soos ons voeg meer kliënte en personeel daardie kliënte te ondersteun.

Ek kon gaan, but I’ve probably already gone on too long. Ek dink ek het die essensie gevang het hier. As jy dink oor die verandering van werk en dit lyk goed vir jou, Kom ons praat.

As jy gelukkig is by jou huidige werk - laat ons praat in elk geval :). Ek het al in 'n baie plekke en was baie "happy" in die tyd. Slalom is anders en ek wil 'n kans om jou te oortuig om van daardie verwelkom.

</einde>

undefinedSkryf in op my blog.

Volg my op Twitter http://www.twitter.com/pagalvin

Vinnige en maklike: Stel die grootte van 'n Items in 'n lys Box in 'n Windows Store App

In 'n Windows Store App ek skep, Ek wil die gebruiker verskeie inligting boodskappe te wys.  Ek pluk 'n ListBox as die instrument om dit te wys, sodat hulle kan blaai deur hulle en almal wat goeie dinge. 

Die boodskappe is die inligting net, so there’s no need to provide all that extra whitespace around them since the user can never select them for anything.  The default behavior of the ListBox provides a substantial amount of padding and I wanted to get rid of it.  Well …. you can’t do that sort of thing on the ListBox directly.  HOWEVER, you can do it to the items you add:

        private nietig AddGameStateLogMessage(string theMessage)
        {
            TextBox t = nuwe TextBox();
            t.Text = GameStateCounter   + ": " + theMessage;
            t.TextWrapping = TextWrapping.Wrap;
            t.MinWidth = 400;
            Dik thisPadding = nuwe Dikte(5, 0, 5, 0);
            t.Padding = thisPadding;
            t.FontSize = 12;

            ListBoxItem dat = nuwe ListBoxItem();
            li.Content = t;
            li.MaxHeight = 25;
            thisPadding = nuwe Dikte(5, 0, 5, 0);
            li.Padding = thisPadding;

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

in the above, I’m creating a TextBox and setting its font, its padding, ens..

Volgende, I create a ListBoxItem and set its content to the formatted TextBox.

Ten slotte, I insert the ListBoxItem into the ListBox.  (I want to show most recent messages at the top of the list, hence the Insert(0,li) instead of a simple Add() invocation.).

I will be tweaking this a bit before I’m really happy with the ListBox behavior but the pattern shown above has been very fruitful.  Hopefully someone else finds it helpful.

</einde>

undefinedSkryf in op my blog.

Volg my op Twitter http://www.twitter.com/pagalvin