You are here:   Forum
Register   |  Login

Forum Notice

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


Topic Replies Views Last Post
What is the reason lightswich adds and removed the S character pulled from a database. Is there a way to turn it off
by twic in LightSwitch Beginners
0 568
07 May 2013 01:28 AM
Issues with Jetpack Themes HELP!!!!!
by Andy Drury in DELORDSON (LightSwitch Extras)
0 1023
26 Apr 2013 02:37 AM
Filtering a field using first letter
by DAL in LightSwitch Beginners
0 666
24 Apr 2013 09:38 AM
SQL Server 2012 R2 Express & Lightswitch
by in LightSwitch Beginners
0 1468
23 Apr 2013 01:55 PM
Create new record - Dynamic data
by Kevino in LightSwitch Beginners
0 974
22 Apr 2013 01:15 AM
How to Deploy Light Switch application to Windows Mobile?
by Ragavan in LightSwitch Beginners
0 783
16 Apr 2013 11:55 PM
What is the default Username and Password for LightSwitch HTML client login
by Ragavan in LightSwitch Beginners
0 1328
16 Apr 2013 11:45 PM
HTLM Camera/Signature Control?????
by Jim W in LightSwitch Hackers
0 1049
13 Apr 2013 06:52 PM
Errors with Forms Authentication in HTML client
by Larry in LightSwitch Beginners
0 1441
11 Apr 2013 09:02 PM
Extension business type
by Humberto Reis in LightSwitch Beginners
0 440
09 Apr 2013 05:51 PM
How to loop through all tables
by magmuggy in LightSwitch Beginners
0 928
05 Apr 2013 10:55 AM
LS not refresh related data after add new tables
by francisco in LightSwitch Beginners
0 1074
05 Apr 2013 10:45 AM
Dynamic Run time Choice List
by Ragavan in LightSwitch Beginners
0 1382
04 Apr 2013 10:46 PM
"Format Pattern" not working?
by Corrado in LightSwitch Beginners
0 1240
01 Apr 2013 06:58 AM
Geocoding with Lightswitch
by zack142 in LightSwitch Beginners
0 886
28 Mar 2013 10:12 PM
Set Default Values on Fields within a Screen
by Michael in LightSwitch Beginners
0 1535
27 Mar 2013 08:56 AM
Lightswitch HTML Navigate from variables on the URL bar
by Pedro in LightSwitch Beginners
0 1788
22 Mar 2013 04:41 AM
Enity Set convert to generic funtion
by jbaillie in LightSwitch Beginners
0 755
19 Mar 2013 09:10 AM
uploading Error need help with bug
by jbaillie in LightSwitch Beginners
0 654
17 Mar 2013 09:02 AM
Getting Original Entity Values in LS HTML New...
by Jack Stephenson in LightSwitch Beginners
0 1025
15 Mar 2013 11:17 AM
Page 3 of 20 << < 12345 > >>

Latest Microsoft Visual Studio LightSwitch Forum Threads That Have Answers

LightSwitch Connection String
8/31/2014 1:52 PM
Hi all experts, I have a Lightswitch application with an Internal Database, I now need to publish the application on this pc and all other pcs on my network so that all can connection to the same database which designed internally. I have no idea about SQL connection strings... and I knew that my application when published it will generate the database for me, I just need all to connect to the same database on one selected pc on the network using the connection string "Data source=""; Initial ...." format. Thanks in advance Ehab, Egy.

I'm rendering a custom control that will display it's own heading in a Browse Screen so I don't want anything to appear above it. What is the recommended way of meeting this requirement? Z A R D O Z

Hi, Creating a foreign key in SSMS and updating the datasource in LS pulls in the relationship but hides the foreign key column? From what I think I am getting from reading forums is , it seems to come down to : 1 - Creating a foreign key on SSMS and pulling it in to LS will hide the foreign key column. BUT cascading delete will work. 2 - Creating a foreign key (relationship) in LS will show the associated column. BUT cascading has to be done in the LS code programmatically. I need the SSMS cascading AND to see all table fields for every table in LS. Is this not possible? If the foreign key column is even named something else, where and how do i get to it, and keep the cascade? thanks for your time. david

I have an oracle table with an ID as PK. And the version I use for oracle doesn't have auto generated columns as in SQL Id is generated via a trigger.  I have attached this table to Lightswitch successfully , and it recognizes my ID as Primary Key.So far so good. However when I generate an Add Edit Screen for this table, despite of ID being primary key, the form asks it explicitly. If I do the same setup for sql server, this field is not generated for screen. What could be wrong ?

My query returns all results no matter what I write in the PreProcess query. I tried using the query designer filter options and it works, however the functionality I need can only be provided in the PreProcess query method. Here is the setup I have This goes in the HTMLClient screen custom control's render method //Get the last contract myapp.activeDataWorkspace.ApplicationData.LastContractTest(empId) .expand("Craft") .execute() .then(function (result) { var lc = result.results[0]; ... }); This goes in the application data service class And again even if I write a case that is guaranteed to return 0 results, it just does not work. partial void LastContractTest_PreprocessQuery(int? pEmpId, ref IQueryable<Contract> query) { query.Where(c => c.Employee.Id == pEmpId).OrderByDescending(c => c.ContractStartDate).FirstOrDefault(); }  can confirm through the debug log that the executing


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