• Modifying the Lookup Values in a HTML Client Screen Details Picker

    Posted Jun 25th, 2015 By in .Net Development, LightSwitch, SharePoint With | No Comments Modifying the Lookup Values in a HTML Client Screen Details Picker

    NOTE: Because of issues I was having with project lookup (see my update notes below), I abandoned this custom implementation, and instead, changed the project lookup to a Rows Layout screen content item. Have a look at my update notes at the end of the article for more information.

    I’m probably not the first to implement this, but I couldn’t find anywhere on line that showed me how to solve the original challenge, so here goes…

    The challenge I had was to add some extra information to the values that get displayed in a Details Picker used on a HTML Client Screen. For this particular scenario, a user can navigate to a screen where they can add new time-sheet details, such as the project, the date worked, and the hours of effort.


    When I originally selected to search for the project to associate with the time-sheet entry, only the name of the projects would appear. If I happen to be working on a number of projects that happen to have the same name, then I needed to know a little more about the project I am selecting for the entry. So for my scenario, I included the customer name to the list of lookup values for the details picker of the project…

    How was achieved? Simple really. I selected to edit the PostRender code for the details picker used for the screen. 


    I went after “data” property of the content item. In this case, the data item is a “project” object. The project has a relationship to a customer, and it’s the customer name that I wanted. I then used the customer named to craft up the text displayed in the popup search dialog.

    F5 and “ah la peanut butter sandwiches”…


    UPDATE: June 26, 2015 – 1:30 PM…

    Seems that some funny business is happening. Each time I select to search for a project, the list of projects appears however with out the appended customer name.

    Running the project in debug mode, and setting a break point on line 7 of the .js file for the screen (see screen shot above showing the _postRender method), VS will break into the following after stepping over the break point…


    This also happens when putting a break point on line 8 as well. And, it only happens the first time doing the project lookup. If I close the lookup, and then search again, it’s fine, and it shows the projects with the customer names.

    Any ideas?

    UPDATE: June 28, 2015 – 10:15 AM…

    I couldn’t resolve the issues above, so I went old school and simply changed the screen element used for the Project lookup to use a Rows Layout group instead.


    This works better for me anyway.

    ls-html-screen-picker-007A shout out to Josh for his comments below, which put me on the path to the above resolution.


  • Productivity So Fast It Will Make Your Head Spin

    Posted Jun 22nd, 2015 By in .Net Development, Azure, Hybrid Cloud, LightSwitch With | No Comments Productivity So Fast It Will Make Your Head Spin

    Just how long does it take to realize opportunities with today’s technologies? Not very long at all. In fact, with today’s tools it can take just a few hours, instead of the months it took in the past.

    Back in February of 2012 I published an article about a LightSwitch application named A Little Productivity. I then published some related articles that talked to a few LightSwitch tips and tricks, using A Little Productivity as the use case for the articles.

    Things have obviously evolved since that original post. So much so that I felt I needed to crank out something more relevant to the tools that are available today. With Visual Studio 2015 on the horizon, I decided to see what I can do, from scratch, to reincarnate that old A Little Productivity app.


    Turns out that it only took a couple of days to craft up that same application, and then some! Of course, I have the benefit of experience behind me, but not withstanding, I was pleasantly surprised at how relatively quick the solution came together.

    Desktop Client Application – 10 Hours

    I started out with a LightSwitch Desktop client. Why? Because that was what the older application was and I wanted to see just how much value my experience would play into creating something from the same requirements as before.


    Just how long did it take to recreate the new and improved A Little Productivity? About 10 hours of total effort!!

    That’s a huge value! 10 years ago it would have taken a team of resources with months of effort to achieve something similar.

    HTML Client Application – 1 Hour

    Okay, so a couple of days to hammer out a fully functional application that any small business can use to run their operation. Cool.

    Well how about all the new fangled HTML5 application stuff we keep hearing about?

    No problem! I less that an hour I had a nice little web-based HTML5 application that a user can use from the web browser on their mobile phone or tablet. All this using the same back-end services that the desktop application is using.


    Wow. I can already see the potential here. If I can create a nice looking mobile friendly web application in less than an hour, what can I do with an entire day or two!?!

    Cordova Mobile Application – 1 Hour

    Okay, so now I am going to push the issue a bit and get crazy with this. How long it will it take me to create an app that is actually installed on my mobile phone! Not a mobile friendly web application, bit an actual application that is installed on my phone?

    BAMM! 1 Hour!!!

    Screenshot_2015-06-22-13-45-44 Screenshot_2015-06-22-13-44-39
    Screenshot_2015-06-22-13-45-20 Screenshot_2015-06-22-13-55-50

    Okay, okay, I did have a little help here. This mobile application is a “hybrid” mobile application, using Apache Cordova and the in application browser plugin 😉 The application is still using the html client application (which happens to be deployed to Azure), and assumes the user as a internet connection. Regardless of the implementation, the value proposition is clear, right!?!

    😉 A small hint here… I used Telerik Platform for the creation of the mobile application.

  • Method Not Found Error with VS2015 RC LightSwitch and Azure Web Site

    Posted Jun 19th, 2015 By in .Net Development, Azure, LightSwitch, Office 365 With | No Comments Method Not Found Error with VS2015 RC LightSwitch and Azure Web Site

    Ran into a small issue when publishing a Visual Studio 2015 RC LightSwitch HTML client to Azure.

    Seems that, of course, everything worked fine on my local development box. The HTML client I created worked great, however when the same bits were published to an Azure App Service web site, I kept seeing the following issue…


    Seems the .server project defaults the target framework to 4.6, and .NET 4.6 is yet deployed to the App Service web sites.

    No problem, a quick manual edit of the .Server project file fixed the issue….




    Not sure if this will have any downstream effects. I’ll certainly be changing it back once the RTM is out, assuming the Azure App Service web sites are also up to the latest/greatest .NET 4.6 as well.


  • List of Canadian Cloud Law References and Related Information

    Posted Jun 2nd, 2015 By in Azure, Cloud Computing, Hybrid Cloud, Private Cloud, Public Cloud, Security With | No Comments List of Canadian Cloud Law References and Related Information

    I’ll do my best to keep this updated as I discover more resources.

    Canada Revenue Agency

    Canadian Legislation

    United States Legislation


  • Getting my Geek on!

    Posted Jan 26th, 2015 By in Miscellaneous, Technology With | No Comments

    A Modest Computer for my LightSwitch Development! (says sarcastically)

    On Friday afternoon I purchased the last few components I needed for my dream machine work (and play) desktop at home. I’ve been acquiring the necessary pieces during the last couple of months, and finally had the last few available to begin the build. With the help of everyone in my family, we tackled the build the next day on Saturday.

    The Recipe for my Ultimate Time Killer

    Case: Fractal Design Define R4 with Window Black Pearl AXT Mid Tower Case.
    Power Supply: ​XFX XTR 850W
    Motherboard: ​MSI X99s SLI Plus LGA 2011-v3 Intel X99 SATA 6Gb/s USB 3.0 ATX Intel Motherboard
    CPU: Intel Core ​i7-5820k
    Cooler: ​Corsair Hydro Series H105
    GPU: ​EVGA 04G-2983-KR GeForce GTX 980 Super clocked 4GB 256-Bit GDDR5 ACX 2.0 PCI Express 3.0
    Memory: 8 x ​ADATA XPG Z1 8GB 288-Pin DDR4 SDRAM DDR4 2133 (PC4-17000) Model AX4U2133W8G15-QRZ
    SSD: ​4 x Samsung 840 EVO 250GB 2.5-Inch SATA III Internal SSD (MZ-7TE250BW)
    HDD: ​Seagate Constellation 3TB 3.5-Inch Internal Hard Drive SATA III 7200 rpm  w/ 128MB Cache
    Operating System: ​Windows 8 Pro 64-bit

    I’d been culling the internet for all the reviews, recommendations, and advice. I think I put together a pretty good recipe for a great machine. With the photography stuff our family does, and the new GoPro I received for Christmas, I need something with some graphics capabilities. The i7, the GTX 980 SC, the SSD drives, and the 64 GB of RAM should all set me up with the power to do what I want to do.

    The Sweat Equity

    The actual build took only a few hours. The rest of the day was spent trying to figure out why the dang thing would not boot up. We did everything by the book, so it was a frustrating day of double checking, triple checking, and removing and reinstalling components.


    All this troubleshooting took us into Sunday as well, when finally I swallowed some humble pie and took the final project to the folks at Memory Express. My wife and I were prepared to leave the machine for their techs to look it over; fully expecting to get a call that something was defective or broken. Much to our surprise, the guy at the counter plugged the thing in and guess what… it booted into the bios!

    Turns out that the monitor we were using at home was broken!! We had spent an entire day trying to figure out why the dang thing wouldn’t display the bios on boot up, when it was the stupid monitor that was not working all along.

    Oh well! It didn’t take long to get back home and plug in a “good” monitor. Once fired up, it took all of 30 minutes to; configure the SSD as RAID 10, install Windows 8.1, and download and install all the drivers for everything.

    UnicornWith all that done, I let the machine loose on some ARMA III…image_18

    … and then pulled myself back onto my exercise ball chair after being blown away by what I saw. I can’t begin to explain how much this machine rocks. I’ll try and find some time to blog about it, but considering the performance I am getting from this bad boy, I may not pull myself away from the computer to find the time to blog anymore!

    What’s Next

    Tonight I will be; first spending time with the family of course, and then I’m going to put the machine through its paces with some hard core programming, a little bit of video editing, and yeah, some more ARMA 😉 I might go to bed at some point, but not sure yet. We’ll see how it goes.

    Monitors!! I need more monitors. Maybe even another GPU, and then some more monitors.

    Oh yeah, my Oculus Rift. I almost forgot. I need to hook that sucker up too.

  • Page 1 of 3412345»102030...Last »

© Copyright Paul S Patterson - Please, no touchie. :)