You are here:   Forum
Register   |  Login

 

Forum Notice

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

http://social.msdn.microsoft.com/forums/en-US/lightswitch/threads


Forums

Unanswered
Topic Replies Views Last Post
Oddball results when connecting to published LS database
by angus454 in LightSwitch Beginners
0 740
06 Feb 2013 11:45 AM
Computed Column, dropping out of code
by Craig in LightSwitch Hackers
0 1647
05 Feb 2013 04:12 AM
The next LightSwitch User Group will be February 13th at 7:00pm
by Michael Washington in General Discussion
0 550
31 Jan 2013 06:11 PM
Referance Sql Client
by jbaillie in LightSwitch Beginners
0 1104
30 Jan 2013 10:38 AM
Referance Dll
by jbaillie in LightSwitch Beginners
0 604
30 Jan 2013 10:34 AM
Question about deployment
by hive8 in LightSwitch Beginners
0 740
18 Jan 2013 05:53 AM
Roles - Group Inheritance vs Direct Assignment (Group inheritance not working)
by AM in LightSwitch Beginners
0 974
18 Jan 2013 03:12 AM
Lightswitch Training Kit - EhancingBookStore - Sql Server connection
by bbetts in LightSwitch Beginners
0 1785
16 Jan 2013 04:04 PM
Hardware - Software Requirements
by jim in LightSwitch Beginners
0 887
10 Jan 2013 10:57 AM
foreign Key Indexing
by Andy Drury in LightSwitch Beginners
0 1599
10 Jan 2013 03:14 AM
custom lookup picker screen
by omar awwad in LightSwitch Hackers
0 1317
08 Jan 2013 09:38 AM
Profiling a Lightswitch application
by juancarlosr in LightSwitch Hackers
0 1296
07 Jan 2013 02:37 PM
UI Automation Testing lightswitch
by dvr in LightSwitch Hackers
0 1607
03 Jan 2013 06:41 AM
Does Light Switch uses only SQL Server Express Edition?
by chaithanya in LightSwitch Beginners
0 1096
01 Jan 2013 09:00 PM
Calculate selective lines from order detail
by Michael in LightSwitch Beginners
0 1203
28 Dec 2012 06:13 AM
Stored Procedure as a Data Source for Tree Control
by svetoslav80 in LightSwitch Beginners
0 1503
24 Dec 2012 04:41 AM
Can't use System.Data.SqlClient in LightSwitch
by Letha in LightSwitch Beginners
0 2052
19 Dec 2012 12:22 PM
Create a Border Excel Document
by jbaillie in LightSwitch Beginners
0 871
16 Dec 2012 10:41 AM
how to load data to a grid automatically??????
by andres in LightSwitch Beginners
0 1173
05 Dec 2012 07:45 AM
LightSwitch HtmlClient Event/Method
by sstigi in LightSwitch Hackers
0 1432
04 Dec 2012 04:18 AM
Page 5 of 20 << < 34567 > >>

Latest Microsoft Visual Studio LightSwitch Forum Threads That Have Answers

following this code from this link: https://social.msdn.microsoft.com/Forums/vstudio/en-US/479cbc96-6ec2-4d9f-b2f8-a2b43a09111e/html-client-dynamically-count-records-in-a-collection-on-browse-screen?forum=lightswitch I have got my screen to count how many rows are present when the screen first loads. In my scenario I have a add button located on the bottom navigation bar. this opens up a dialog window where the user can add the relevant information. However when the user hits save, and is navigated back to the browse screen, the count still displays the previous value. If i was to refresh the page it updates but this is not what i am after, when i navigate back i want the value to add by one, am i missing something in this code?             screen.ExpanderLines.addChangeListener("state", function() {                     screen.countExp = screen.ExpanderLines.data.length;  
Read more...

I have a browse screen to display query results in a table. This for a large table and there are 50+ query parameters that the user can enter.  The query parameters are all on a separate screen. 1.  I need a button on the separate screen that when clicked will clear (set null or undefined??) all of the parameters, to allow the user to reset the search.  The screen properties that are the parameters are of all different types (bool, string, details picker/entity, date).  Is there a way to get them all without having to do setPropertyName() for each one manually? 2. Related to question 1, is there a way to iterate through the properties and get a reference based on the type of property? I'm going to take a look at the contentItem properties and methods and try to get this working but was wondering if anyone knows any tricks before I spend hours digging around. Thanks! 
Read more...

already an open datareader
4/16/2015 7:57 AM
I get this error in Azure but not on my dev computer: there is already an open datareader associated with this command. When debugging Azure the error happens in a WCF RIA projet at this line (in a recursive method): if (!channel.ChannelCollection.IsLoaded) channel.ChannelCollection.Load(); Have you an idea to resolve this exception? Thanks Yves Pflieger
Read more...

I think this has been asked before, but darn I can't find it. I working with VS2013 on a Lightswitch desktop app. If I add a row to a SQL Server table via Lightswitch and the table has an Identity column, how do I find the value of the Identity column for the row I just added? I want to both tell it to the user and be able to retrieve the row later. Thanks in advance.
Read more...

C# class problem
4/15/2015 7:04 AM
Hello everybody, I'm trying to accomplish 2 things with the below snippet of code (from ApplicationDataService.lsml.cs in the server project of my Lightswitch 2013 solution) partial void Query1_PreprocessQuery(ref IQueryable<CandidateBasic> query) { query = from item in query where item.CreatedBy == this.Application.User.Name select item; } partial void CandidateBasics_Validate(CandidateBasic entity, EntitySetValidationResultsBuilder results) { var newcandidateCount = this.DataWorkspace.ApplicationData.Details.GetChanges().AddedEntities.OfType<CandidateBasic>().Count(); var databasecandidateCount = this.CandidateBasics.GetQuery().Execute().Count(); const int maxcandidateCount = 1; if (newcandidateCount + databasecandidateCount > maxcandidateCount) { results.AddEntityError("Error: you are only allowed to have one
Read more...

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