visual-studio-lightswitch

Visual Studio 2010 Pro includes LightSwitch. How?

荒凉一梦 提交于 2019-12-19 10:17:14
问题 I see the VS2010 Pro includes LightSwitch. But from the LightSwitch website only has links to download the 30 day demo (which can be extended by 60 days with a registration). I don't have a MSDN subscription. So how do I add this to my VS2010 Pro? 回答1: Though it not explicitly documented, seems like you can download "full" version of LightSwitch for VS 2010 only if you have MSDN subscription or any of following levels: Developer AA; VS Pro with MSDN (Retail); VS Premium with MSDN (MPN);

Object reference not set to an instance of an object in LightSwitch [duplicate]

你离开我真会死。 提交于 2019-12-13 08:43:38
问题 This question already has answers here : What is a NullReferenceException, and how do I fix it? (29 answers) Closed 4 years ago . I'm using LightSwitch VS 2013 to create a CRUD application. I want to create a new Data screen where the user can create a copy of any old item and be able to change some details too to create a new Item easily. I'm trying to achieve this scenario through a local property that is bound to a textbox such that the user writes the old item id and clicks copy. then the

How to call showTab using JQuery in LightSwitch

耗尽温柔 提交于 2019-12-13 07:07:12
问题 Can anybody help in calling the screen.showTab("TabName") using the JQuery! I am using Visual Studio 2015 Community Edition. The same event is getting triggered from the .lsms.cs file but not .htm file (Inside the Script tag) The way I am calling the showTab method from .lsml.cs is, $(screen).on('templateLoaded', function (path) { $('#tabOne').bind("click", function () { screen.showTab("TabOne"); }); }); 回答1: As covered in the following SO post, normally you would programmatically change the

authenticate Lightswitch Odata service that uses forms authentication

廉价感情. 提交于 2019-12-13 06:18:30
问题 I created an OData service using VS Lightswitch with an endpoint like this: http://mydevsite.com/lightswitchapps/mydata/products.svc The service is secured with forms authentication. When I put the url into a browser I am asked for credentials. I want to build a console app in C# to consume the service. But I can't find any examples of how to authenticate. I've worked through this which consumes the Northwind service: http://msdn.microsoft.com/en-us/library/hh868028%28v=vs.103%29.aspx But I

How to Successfully Deploy a Lightswitch 2013 HTML App to Azure with a Linked SQL Server database?

雨燕双飞 提交于 2019-12-13 05:11:14
问题 I've created a Lightswitch HTML application in VS 2013. It relies on a SQL Server database which was created locally and then uploaded to Azure. The database was then linked to the Azure web site. I tested my database connection strings in the publish routine and they succeeded. The publish succeeded, but when I browse my azure URL, I receive the following message: You do not have permission to view this directory or page. What must be done to remedy this error? 回答1: I had a similar problem

unable to find a version of silverlight developer runtime installed

大城市里の小女人 提交于 2019-12-12 10:16:25
问题 In the following environment: -VS2012 -Windows 7 64bit -Microsoft Silverlight 5 SDK I have created a few lightswitch applications in VS2012 but I am running into an error when attempting to create a new one or open an existing lightswitch project. I receive a pop-up that says "unable to find a version of silverlight developer runtime installed". There is a link on the pop-up which starts a download but after downloading it, I still receive the same error. 回答1: I was able to fix the issue by

LightSwitch HTML root screen layout extending beyond the screen when its height is set to “stretch to container”

五迷三道 提交于 2019-12-12 06:09:13
问题 Dears, If I have a screen and I set the root layout's height to "Stretch to Container" and make sure that no buttons are visible in the footer (So the footer is collapsed), you will notice that the page layout will extend unnecessarily beyond the height of the browser window (causing the scrollbar to appear), and it will extend exactly as much as the header (So if the header is 60px, the extra space at the bottom will be 60px). This looks unprofessional and as footer buttons appear and

Office integration pack on web browser

*爱你&永不变心* 提交于 2019-12-12 02:35:26
问题 I get the below error when i try to export excel from web browser based lightswitch using office integration pack : File Operation not permitted. Access is denied Is there is any way to export the excel from the lightswitch running in the browser? 回答1: It is not possible to use the Office Integration Pack in a browser based app. You will need to write custom code to write out a .csv or an OpenXML Spreadsheet. Alternatively you could use SQL Server Reporting Services. See this MSDN thread for

LightSwitch installation problem

≯℡__Kan透↙ 提交于 2019-12-11 23:16:41
问题 A short while ago I tried to install LightSwitch Beta, but after some sizeable and lengthy downloads, the installation aborts after trying to install Silverlight 4. It simply says that Silverlight 4 could not be installed. The log is not much help either, as the most informative entries are: ISetupComponent::Pre/Post/Install() failed in ISetupManager::InternalInstallManager() with HRESULT -2147467260. Return for Microsoft Silverlight 4.0 indicates a failed installation. DepCheck indicates the

Lightswitch HTML global JS file to pass variable

眉间皱痕 提交于 2019-12-11 23:08:12
问题 I know how this works in C#, however not so much in javascript so I am hoping it is similar. With Javascript can I create say a master.js, with a variable ( var defaultValue = "1234" ), which I can reference in all other javascript files associated with the project? so in terms of Lightswitch HTML, each screen has the ability to have a js file, and on the screen I want to be able to retrieve this defaultValue. Can this be done? If yes, how can I get this value onto the current screen? so far