Bilaketa esparrua gisa Pertsonak nola ezartzean / Edukiak Iturria erabiliz 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: funtzioa() {

        jQuery.support.cors = Egia;

        $.ajax({
            url: honetan.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",
            metodoa: "GET",
            headers: { "Accept": "application/json; odata=verbose" },
            cache: faltsuak,
            success: funtzioa (ondorioz,) {

Nire kasuan, 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 🙂 ).

</amaiera>

undefinedNire blog Harpidetu.

Follow me on Twitter http://www.twitter.com/pagalvin

Adibidez SharePoint REST Deialdiak

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

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

Irakurri buruz gehiago hemen: http://www.mstechblogs.com/paul/?p=10385

 

</amaiera>

undefinedNire blog Harpidetu.

Follow me on Twitter http://www.twitter.com/pagalvin

Azkarra eta erraza: Sortu SharePoint Web bat REST erabiliz

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

<zentro>
<taula>
    <tr>
        <td>Site Name:</td>
        <td><sarrera mota="text" izena="SiteName" id="SiteName" /></td>
    </tr>
    <tr>
        <td colspan="2">
            <sarrera mota="submit" id="CreateSiteButton" balioa="Create the Site" />
        </td>
    </tr>
</taula>
</zentro>

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

<script>
izan zen CreateSiteLogicContainer = {

    createSiteData: {
            "parameters": {
                __metadata: { "type": "SP.WebInfoCreationInformation" },
                Url: "Paultest1",
                Izenburua: "Paultest1",
                Deskribapena: "rest-created web by Paul!",
                Hizkuntza: 1033,
                WebTemplate: "sts",
                UseUniquePermissions: faltsuak
            }
    },

    createSite: funtzioa () {

        jQuery.support.cors = Egia;

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

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

            data: JSON.stringify(CreateSiteLogicContainer.createSiteData),

            success: funtzioa () { ohartaraztea("success"); },
            error: funtzioa () { ohartaraztea("error"); }

        });
    },

    wireUpForm: funtzioa () {
        $("#CreateSiteButton").sakatu(funtzioa () {
            ohartaraztea("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.  Nire kasuan, 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.  Nire kasuan, 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.

</amaiera>

undefinedNire blog Harpidetu.

Follow me on Twitter http://www.twitter.com/pagalvin

SharePoint Launch Quick URL erlatibo batera Annoying Arazoa gainditzeko

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

 

$(dokumentu).prest( funtzioa () {

    $("bat:contains('Test URL replacement')").sakatu(funtzioa () { ohartaraztea("changed click behavior!"); itzultzeko faltsuak;});

});

And Bob’s your uncle.

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

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

</amaiera>

undefinedNire blog Harpidetu.

Follow me on Twitter http://www.twitter.com/pagalvin

Azkarra eta sinplea: SharePoint REST Deia itzultzen Only 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.  Nire kasuan (and I believe in most cases), the default REST calls to SharePoint (and possibly as an industry standard?) itzultzeko 100 rows.  To return more than the default, use the $top parameter on your call, bezala:

GET /Insights Dev/_api/web/lists/GetByTitle(‘MockBlog’)/elementuak?$select=ID,Izenburua,Categories/Title,Blog_x0020_Author/Title,DatePublished,BlogSummary&$expand=Blog_x0020_Author,Categories&$filter=&$top=9999

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

</amaiera>

undefinedNire blog Harpidetu.

Follow me on Twitter http://www.twitter.com/pagalvin

Azkarra eta sinplea: Konpontzeko "URL Parametroa baliogabea” lists.asmx in UpdateListItems arazoren

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.  Hau, 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:Gutun-azal xmlns:soapenv ='http://schemas.xmlsoap.org/soap/envelope/'>
  <soapenv:Body>                      
    <UpdateListItems xmlns='http://schemas.microsoft.com/sharepoint/soap/'>                     
      <Hosto erorkorreko>{C712E2EA-54E1-47AD-9D99-1848C7773E2F}</Hosto erorkorreko>                     
        <updates>                     
         <Batch OnError="Continue">
          <Method ID="1" Cmd="Update">
            <Field Name="CooperativeLock">locked!</Eremu>
            <Field Name="ID">1</Eremu>
          </Method>
        </Batch>                     
        </updates>                
      </UpdateListItems>             
  </soapenv:Body>         
</soapenv:Gutun-azal>

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

</amaiera>

undefinedNire blog Harpidetu.

Follow me on Twitter http://www.twitter.com/pagalvin

 

Pobrea Man JavaScript Caching

[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, beste gauza batzuen artean, 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. Beraz,, 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
    • Besterik, 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.  Duzu 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 :). 

</amaiera>

undefinedNire blog Harpidetu.

Follow me on Twitter http://www.twitter.com/pagalvin

Nola: Konfiguratzeko Unitateko testa eta Test Estaldura QUnit.js eta Blanket.js batera Office batentzat 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, to 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

Ikusten duzun bezala, 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>
    <izenburua>QuizUtil test with Qunit</izenburua>
    <lotura rel="stylesheet" href="../CSS/qunit-1.13.0.css" />
    <script mota="text/javascript" src="QuizUtil.js" data-cover></script>
    <script mota ="text/javascript" src ="qunit-1.13.0.js"></script>
    <script mota ="text/javascript" src ="blanket.min.js"></script>

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

</gorputza>
</html>

There are several things happening here:

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

Gero, 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. Esate baterako, 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 mota="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!

Laburpena (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> Etiketa
  • Run your Qunit tests.

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

Happy testing!

</amaiera>

undefinedNire blog Harpidetu.

Follow me on Twitter http://www.twitter.com/pagalvin

The Last Suit Ever duzu Higadura?

[Quick ohar - hau nire taldearen inaugurazio lana hemen New Yorken post nahiko luzea da, eta behar ez duzun tri-egoera area bizi bazara, interesa izanez gero.]

Slalom Consulting sartu ditut 18 Duela hilabete eta hau nire lana luzeena iraunkorrak geroztik egiten 2007. Ez nuen asmoa horrela. Aurretik lana saltatzea-kate bat nire jauzi batekin hasi SharePoint mundura, Zen leku bat nuen hamaika urte. Azkenik aurkitu dut berri bat, iraunkorrak lekua du luzeko lan egiteko hemen Slalom at.

Leku hori, eta gero eta laguntza batzuk kontrolatzen duten behar dut. Laguntza mota behar da normalean izeneko "SharePoint Solutions Arkitektoa" aurkitu dut, nahiz eta arkitektoak hitz baino gehiago izango da eta / edo gaizki SharePoint espazioa erabili den bitartean nahiko orain. Izan dut nola honi buruz blogean borrokan ari. Ez dut nahi, besterik gabe, zerrendatu out buletak mordo bat Dice / Monster estilo. Nire bikaina kideekin bildu dira jadanik egiten ari :). Beraz,, "Eguneko bizitzan" bat hartzea erabaki nuen hurbilketa. Irakurri baino gehiago, eta uste:

1) Errekurtsoak da eta bada

2) Zure hezurrak duzun jakin egin ditzakezula.

Bai bada,, harremanetan me (paul.galvin @ slalom.com) eta hitz egin dezagun.

Hauek dira, zer espero aste tipikoa / hil egin soluzio arkitekto gisa, nire talde dezakezu:

  • Exekutatu proiektuak, sarritan aldi berean bat baino gehiago. Proiektu batzuk handiak dira, eta, beraz, jabea duzun proiektu hori. "Carrera" proiektu bat esan nahi oversight eta erantzukizun entrega orokorraren kalitatea. Ia kasu guztietan PM bat eta frogak huts-talde benetan indartsua izan dituzu, Bas, UX pertsonak, eta abar, dituzu laguntzeko. Baina bezero nagusiak aurpegia ikusten izango zara, fondoak, etc. Ez dago itzalak ezkutatzen zeregina hau da :). Une honetan, faktura egingo duzu, eta helburua da nahikoa lanpetuta zaude hori egin mantentzeko 80 ehuneko.
  • Tramiteak Laguntza - SOWs, RFPs, Barajasko - good stuff guztiak. Gure ereiten prozesua dugu nahiko estuak eta behera ona da, nahiko formulaic beraz, uste dut. Zu idazteko SOWs bada, gaur egun erabiltzen, gure prozesua ez da zuretzat erronka bat izango da. RFPs - horiek pixka bat gogorragoa. Neurrira egindako izateko naturan hasteko joera dute eta normalean RFPs desberdin anitz Idazlea tira. Bai ona eta txarra da, baina, batez ere, ona. Hau scrambly lor daiteke bezeroari zerbitzu bikaina beharra juggle berriak irabazteko lan egiten saiatzen ari den bitartean behar dugu. Ziurrenik ez duzu jabea RFP bat, baina eskatu egingo atal laguntzea.
  • Salmenta deiak, baina ez da hurbiltzen. Hilabete batean zehar, espero salmentak pare bat joan ahal izango duzu gure salmenta-taldearekin deiak. ETE izango zara gela, notak hartu eta lagundu forma konponbidea. Hala eta guztiz ere, ez dizu eskatuko edo espero da, salmenta-zikloa kudeatzeko hasi eta bukatu. Zuk ez duzu "saltzeko,"Besterik ez duzu, aditu arrazoia ahotsa aretoan da lasaia izan da. Honek konfiantza eta konfiantza eraikitzen eta horregatik ez bazara. Jakina, nahi duzu saltzen bada, Ondoren, gela hazten hemen ere eman da.
  • Kontratatu Laguntza. Dute erreferentzia-programa bat egiten dugu, beraz, badakizu benetan komunitate indartsua dela uste duzu jende Slalom zati izan behar, horrela onura dezakezu. Eskainitako dugu, langileen hautaketaren (diren bikaina) Lion-en lan honetan kuota egin. Benetako laguntza da hautagaiekin elkarrizketak - dira onak egoki bat kulturalki? Ez beren stuff dakite? Ezin * * nire bizitza errazago egiten dute? 🙂 This comes in spurts, pare bat aldiz hilabete bat, hilabete batzuetan ez zen arren, zuk ere.
  • Laguntza definitzen praktika onenak, eraikitzeko gure IP eta merkatuan gehiago digu lehiakorra. Esperientziadun lasaia / gal zara. Bloke inguruan duzun izan dira - ez bakarrik SharePoint en, baina beste teknologia esperientzia izan duzu eta bizi bidez ona eta txarra (nahiz terrible) osoan proiektuak. Baten ondorioz, zer lan eta zer ez badakizu. Nahi digu esperientzia hori partekatu nahi baduzu, egunez egun batean taktiko zentzu dizugu (I.E. exekutatu zure proiektuak, oso ondo) baina, aldi berean, estrategikoki. "Jardunbide egokiak" pixka bat, epe bat bezala gehiegi eta erabili izan zalantzarik dut. Oinarrizko ideia da zarela esperientzia sakon eta garrantzitsuak dituzten esperientziadun pertsona bat bezala etortzen eta zure aprendizajes onena integratzeko nola ihardun bezeroekin dugu egunean eguneko oinarria bihurtu nahi dugu.
  • Have fun - Oso integratuta mordo bat gara. Oraindik platitude beste saihestu nahi dut, baina benetan apt da kasu honetan - gogor lan egiten dugu (Ordena) eta are gogorragoa jokatu dugu :). Badago Aaron Sorkin banter mota da hemen, gela da, beti jendez beteta clever, gure edari gustatzen zaigu eta dibertigarria ekitaldi azoka bat antolatuko dugu - movie gaua, beisbol bidaiak (badira ere izugarria, ia gaiztoak Taldekako).

Dena dut Laburbilduz balute hitz bat sartu, Hitza "lidergoa". Erabili nuen Lead proiektuak, atera eraikitzeko praktikan rol berunezko bat (IP, gora eraikitzeko taldeak), etc.

Baina itxaron! Ez da gehiago! Zergatik bestela Slalom lan?

  • Nabarmenak asmo batasuna - denek nahi gauza hori hazten out. “This thing” is the New York office. Pertsona orok honekin taula gainean da.
  • Zure bela haize - arreba bulegoak, arreba praktika - Slalom bat "full zerbitzua" aholkularitza-erakundea da,. Gora ekarriko dut SharePoint praktika (bat "Praktika Area Lead" Slalom Lingo en). Arreba praktika daukat at 11 beste Slalom bulegoak. Beraz, nahiz eta errege naiz neurrian SharePoint dagokionez hemen Slalom New Yorkeko, Chicago praktika parekoak daukat, Seattle, Dallas, Atlanta, Boston, etc. duen laguntza haren ezin dut marrazteko. Benetan da munduak bi onenak - esanguratsua autonomia hemen New Yorken, baina talentua tona antolakuntza osoan sartzeko.
  • Zure salmentak Haizea (2) - Gehiago egin dugu SharePoint baino - askoz gehiago. We do BI, CRM, UX, enpresa-aholkularitza, Mugikorra, Ohiko garapen eta beste batzuk. Geure buruari artean saltzen bidegurutzean onak gara eta pintura ona gara - eta are garrantzitsuagoa, bat "zerbitzu osoa" irudi gure bezeroei - Bazen entregatu. Hau da, batez ere, niri erakargarria. Txikiagoa asko orgs SharePoint kontzertuak an lan egiten dut eta zapuztu behin eta berriro izan dugu usoa bezala holed delako "SharePoint dute." Hori ez da gertatuko Slalom eta gehiago lan interesgarria egiteko baten ondorioz lortuko dugu.
  • Tokiko eredua - bidaia ez.
  • Epe luzera hazkunde - Slalom da gangbusters joan. Hazkunde eta egonkortasun Lots. Hazkunde ere esan behar dugu, liderrak kontratatzea gaur egun sortu buru talde berriak gehitu ditugu bezeroak eta langileak bezero horiek laguntzeko.

Joan ahal izan dut, but I’ve probably already gone on too long. Harrapatu dut esentzia hemen uste dut. Zaren lanpostu aldatzen buruz pentsatzeko eta honek itxura ona, hitz egin dezagun.

Oraindik duzu zoriontsu baduzu zure lana uneko - hitz egin dezagun, hala ere :). Leku asko egon naiz eta oso "pozik" garai hartan. Slalom desberdina da, eta aukera bat konbentzitu nahi duten harrera nuke.

</amaiera>

undefinedNire blog Harpidetu.

Follow me on Twitter http://www.twitter.com/pagalvin

Azkarra eta erraza: Ezarri zerrenda-koadro bateko elementuak tamaina bat Windows Store App-en

Windows App Store sortzen hasi naiz, Erabiltzaile hainbat informazio-mezuak erakutsi nahi dut.  ListBox bat jaso dut tresna erakusten duten bezala, eta, beraz, ona dela gauza guztietan barrena korritu ahal izango dute. 

Mezuak dira informatzailea bakarrik, beraz, ez da beharrezkoa aparteko Hutsune hori guztia eskaintzea, horien inguruan, erabiltzaileak ezin du inoiz geroztik hauta itzazu ezer ez.  ListBox portaera lehenetsia betegarria kopuru handi bat eskaintzen du, eta gainetik kendu nahi izan nuen.  Beno .... ezin duzu gauza sort hori ListBox buruzko zuzenean.  BAINA, ere egin dezakezu elementuak gehitu:

        pribatua gal AddGameStateLogMessage(katea theMessage)
        {
            Testu t = berria Textbox();
            t.Text = GameStateCounter     + ": " + theMessage;
            = TextWrapping.Wrap t.TextWrapping;
            t.MinWidth = 400;
            Lodiera = thisPadding berria Lodiera(5, 0, 5, 0);
            = thisPadding t.Padding;
            t.FontSize = 12;

            ListBoxItem = hori berria ListBoxItem();
            li.Content = t;
            li.MaxHeight = 25;
            = thisPadding berria Lodiera(5, 0, 5, 0);
            = thisPadding li.Padding;

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

gainetik dagoen, Testu bat sortzen ari naiz, eta bere letra-ezarpena, bere betegarria, etc.

Hurrengoa, ListBoxItem bat sortu dut, eta bere edukia ezartzeko formatuko testu-.

Azkenik, ListBoxItem sartu dut ListBox sartu.  (Berrienak mezuak erakusteko zerrendako goialdean nahi dut, beraz, Txertatu(0,li) ordez sinple bat gehitu du() deitzeko.).

Tweaking izan dut pixka bat egingo dut hau benetan ListBox portaera izan da, baina oso emankorra gainetik orokorrak ereduarekin pozik aurretik.  Zorionez, beste norbaitek aurkitu lagungarria.

</amaiera>

undefinedNire blog Harpidetu.

Follow me on Twitter http://www.twitter.com/pagalvin