You are here:   Forum
Register   |  Login


Forum Notice

This Forum is ARCHIVE only
For LightSwitch questions,
please use the official forums at:


Search this forum:
Page 2 of 34 << < 12345 > >>
Last Post
Set text of Text control
0 1588
23 Jul 2013 11:54 AM
Convert project lightswith desktop for lightswitch html5
Humberto Reis
0 2249
19 Jul 2013 04:06 AM
Sharepoint Online app - Cant get user information list
Emir M
3 2806
by  Michael WashingtonJump to last post
15 Jul 2013 05:23 AM
HTML Error 401.0 Unauthorized
Nicholas Holloway
0 2901
10 Jul 2013 01:07 PM
HTML - Set a parameters into screens
Sandro Pinheiro
3 4781
by  Sandro PinheiroJump to last post
09 Jul 2013 11:16 AM
Problem with publish with Login
1 1440
by  Michael WashingtonJump to last post
09 Jul 2013 05:33 AM
4 1857
by  andrealvesJump to last post
08 Jul 2013 11:14 AM
Problem with Web.Config and Properties Files
1 1034
by  LuisJump to last post
08 Jul 2013 04:22 AM
Calling LS Webservice in HTML page by Javascript
1 1815
by  Michael WashingtonJump to last post
03 Jul 2013 05:16 AM
LS Html Client: Bind Data to Html
3 2515
by  PinkyJump to last post
03 Jul 2013 02:36 AM
How to create a modal PopUp
0 1583
28 Jun 2013 12:50 AM
connecting to LS database
Peter Trefren
0 1194
27 Jun 2013 01:46 PM
HTMLClient get authenticated user name
0 1586
26 Jun 2013 03:02 PM
htmlclient how to clear a local property? aka reload button
0 1219
26 Jun 2013 02:07 PM
i need to manipulate one datagrid row based on a selected row from another datagrid
1 2794
by  Michael WashingtonJump to last post
24 Jun 2013 10:31 AM
Call SQL Server Agent to run Job
0 1378
20 Jun 2013 07:47 AM
Database design, or parameter/query issue ?
1 1042
by  Michael WashingtonJump to last post
20 Jun 2013 05:18 AM
Play audio file (Audible Notification)
JR Donayre
1 1112
by  ClintonGallagherJump to last post
19 Jun 2013 09:09 AM
C1 LightSwitch components wont load due to publickeytoken=null
Peter Trefren
2 2120
by  Peter TrefrenJump to last post
17 Jun 2013 08:45 AM
Is there a Lightswitch 2012 modal helper class?
Not Resolved
1 2105
by  virtualCableTVJump to last post
14 Jun 2013 02:30 PM
Page 2 of 34 << < 12345 > >>

Latest Microsoft Visual Studio LightSwitch Forum Threads That Have Answers

Hello all. Am i javascript begginer and i need some help. So, i have three functions: function1   ----> verifies some screen data, returns true or false function2   ----> makes a query to Database, after a forEach to the results of the query, also return true or false verifyResults(function1,function2)  -----> has to wait for function1 and function2 to end and  then UPDATE database Problem: verifyResults is executing before function2 ends, and i want it to only execute when function2 ends. Been all day trying to use promises and callbacks but didn't make it work. function function1(data) { if ((data.Property1 == false) && (data.Property2 == false) return false; } else { return true; } } function function2(data) { // query myapp.activeDataWorkspace.ApplicationData.MyDefinedQuery(data.Id, data.Type).execute().then(function (result) { var res = true;

I don't know how I didn't notice this before, but it appears that you can't use a lightswitch modeled query inside a RIA Service. For example, if you have a lightswitch EntitySet Orders and you use the designer to model a query OrdersByCustomer, you don't have access to that query inside the RIA Service ObjectContext. Of course you can access Orders and make the same query on the RIA Service but you can't use the same query already modeled in LS, (i.e. you can get Context.Orders, but you can't get Context.OrdersByCustomer(id)). Is that the case or am I doing something wrong?

Hi Hopefully someone can help.! I am trying to update the data source within my HTML5 Lightswitch application and I get the above error message. The only way I seem to be able to get it to allow me to update is when I don't update the SharePoint main list. (There is another list that is used for a choices menu but that one works). Doing the update without the main list removes all my fields from all screens and then when I add the main list again it all works but I would have to manually basically recreate the app as I have to add all fields again. Has anyone got any idea on what could be causing this? Within the SharePoint list I have modified it by creating Calculated columns which aren't within the app - could it be this? Is there any way to get it to work again as the user is going to want me to modify it more which will involve needing new columns(List) and screens(HTM5). Many thanks. Ryan

Hi All, New to lightswitch and love all the help the community provides in lieu of in depth MS documentation. I have been struggling with refreshing a parent screen after a save and am finally breaking down to ask the community for help after reading many articles related to this. I add button to execute opening the screen. I have the beforeShown & afterClosed events working, but when the screen opens some contentItems are populated while others have IsEnabled as false. This leads me to think it's a parameter issue. I am not sure what to pass for a new record. myapp.showAddEditTIME(parm1, parm2 {embedded function}) parm1 and parm2 escape me. Please help! Thanks in advance myapp.ViewTASK.AddTIME_Tap_execute = function (screen) { // Write code here. alert("fired"); myapp.showAddEditTIME(screen, { //I think this line is the problem. I have tried adding ', null' after screen as well. beforeShown: function (editScreen) {

Library Application
11/22/2015 7:40 PM
Hi Guys, I am trying to create an library application for keeping records of books and members. I have created three different tables: Members - which holds the member's information Books - which holds the book's information Transaction - which holds the transaction's information. I have created relationships between all three tables. I am having problem with my add transaction screen where i want to display four fields : Member Number, Member Nam, Issue Date and Return Date of the book. What i basically want is when I click on the add button in add transaction screen and when I enter the first field which is member number, it should automatically grab the member name from the database.  I can show the screenshots if required. Can someone please help me with this. Thank you 

Microsoft Visual Studio is a registered trademark of Microsoft Corporation / LightSwitch is a registered trademark of Microsoft Corporation