visual-studio-lightswitch

LightSwitch + MySQL error: Nested Transactions are not supported

南楼画角 提交于 2019-12-01 01:33:22
Trying to connect to and modify existing data in a MySQL table. The reading working fine but when trying to save a change, the following error occurs. An error occurred while starting a transaction on the provider connection. See the inner exception for details. Inner exception message: Nested transactions are not supported. Using MySQL Connector Net 6.4.3 Answer I found an answer that works in my case. Add the code below to the datasource code using System.Transactions; namespace LightSwitchApplication { public partial class <ChangeThisToYourClassName> { private TransactionScope tx; partial

Lightswitch does not allow adding or modifying records in MySQL

天涯浪子 提交于 2019-11-30 20:48:10
问题 I am using Microsoft Visual Studio Lightswitch 2011 with MySQL. I followed the advice provided in a previous Stack Overflow post found here that details how developers can get around a pesky error when modifying or adding a record to MySQL: "An error occurred while starting a transaction on the provider connection. See the inner exception for details. Inner exception message: Nested transactions are not supported." However, when adding the recommended code to data sources in Lightswitch, that

Lightswitch HTML Client - set modal picker value when screen created

回眸只為那壹抹淺笑 提交于 2019-11-29 12:33:34
ive done quite a bit of research into this now and non of the examples are helpful or apply. What I am trying to do is when the user loads the Add screen, I want the Details Picker to display a name when the screen is created rather than having to select it everytime. im sure this can be done but my javascript skills are lacking. thanks for any help, and below is an example: this name is stored within a table and can be searched for in this modal picker/details picker but as you can imagine, if this value is required 50% of the time then manually adding it is not only time consuming but would

The Debugger cannot continue running the process. Unable to start debugger

家住魔仙堡 提交于 2019-11-29 09:02:24
I have a Lightswitch 2012 application. It's been working fine for weeks. I made some changes and F5 stopped working. When I click on Start (toolbar) it gives this error message and does nothing. "The Debugger cannot continue running the process. Unable to start debugging" Note: It does compile file, it just doesn't run. If I rollback to an earlier version then it works fine - i.e. it is solution specific. Here is a video of the current version of my solution with the problem: http://screencast.com/t/TD4RzLASO and here is the previous version of the solution from earlier today (and no, I don't

415 Unsupported Media Type - POST json to OData service in lightswitch 2012

淺唱寂寞╮ 提交于 2019-11-29 01:07:17
I am getting 'error 415: Unsupported Media Type' when posting to an OData service when using JSON. Solution at the bottom of this rather long post. I can GET using JSON but as soon as I try and POST I get this error. I can also GET/POST using XML however I need to use json. I think this error is referring to something wrong in my header, not the json format of my request body which may also be incorrect below, I have tried a number of variations resulting in the same error. I have been trying to debug using Fiddler and the below are the results. JSON POST Request POST http://scdb38:8888/bi

LightSwitch Tabbed screen in Browse template

谁说我不能喝 提交于 2019-11-28 12:14:57
问题 I have a screen where we have 4 tabs, each tab should be displayed as per the login priority. Ex:Department,Role,Employee,Screen are the tabs. Each tab is having buttons to add,edit,remove the data. by default when i log with any user its going to the first tab, but not all the users are having the first tab as their requirement. how can i resolve this to do it dynamically in html client application 回答1: As covered towards the end of the following LightSwitch Team blog post, you can

Lightswitch HTML Client - set modal picker value when screen created

老子叫甜甜 提交于 2019-11-28 06:30:31
问题 ive done quite a bit of research into this now and non of the examples are helpful or apply. What I am trying to do is when the user loads the Add screen, I want the Details Picker to display a name when the screen is created rather than having to select it everytime. im sure this can be done but my javascript skills are lacking. thanks for any help, and below is an example: this name is stored within a table and can be searched for in this modal picker/details picker but as you can imagine,

The Debugger cannot continue running the process. Unable to start debugger

↘锁芯ラ 提交于 2019-11-28 02:25:52
问题 I have a Lightswitch 2012 application. It's been working fine for weeks. I made some changes and F5 stopped working. When I click on Start (toolbar) it gives this error message and does nothing. "The Debugger cannot continue running the process. Unable to start debugging" Note: It does compile file, it just doesn't run. If I rollback to an earlier version then it works fine - i.e. it is solution specific. Here is a video of the current version of my solution with the problem: http:/

415 Unsupported Media Type - POST json to OData service in lightswitch 2012

点点圈 提交于 2019-11-27 15:39:17
问题 I am getting 'error 415: Unsupported Media Type' when posting to an OData service when using JSON. Solution at the bottom of this rather long post. I can GET using JSON but as soon as I try and POST I get this error. I can also GET/POST using XML however I need to use json. I think this error is referring to something wrong in my header, not the json format of my request body which may also be incorrect below, I have tried a number of variations resulting in the same error. I have been trying