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 5 of 34 << < 34567 > >>
Last Post
LS not refresh related data after add new tables
0 1335
05 Apr 2013 11:45 AM
Dynamic Run time Choice List
Not Resolved
0 1700
04 Apr 2013 11:46 PM
Using Oracle External Data Source
1 3203
by  ClayJump to last post
01 Apr 2013 01:10 PM
Format Pattern not working?
0 1583
01 Apr 2013 07:58 AM
Geocoding with Lightswitch
0 1005
28 Mar 2013 11:12 PM
Set Default Values on Fields within a Screen
0 1932
27 Mar 2013 09:56 AM
Lightswitch HTML Navigate from variables on the URL bar
0 2205
22 Mar 2013 05:41 AM
Video Player
10 4067
by  Mash_2kJump to last post
21 Mar 2013 09:19 AM
Enity Set convert to generic funtion
0 943
19 Mar 2013 10:10 AM
uploading Error need help with bug
0 740
17 Mar 2013 10:02 AM
Getting Original Entity Values in LS HTML New...
Jack Stephenson
0 1234
15 Mar 2013 12:17 PM
PDF integration?
0 1389
15 Mar 2013 04:17 AM
Custom Lightswitch HTML Table Control
1 2647
by  skehoe1989Jump to last post
14 Mar 2013 11:52 AM
Data Validation and SQL query
0 1321
14 Mar 2013 01:30 AM
Use Cases for multiple instances of 2-tier app sharing the same database?
0 564
13 Mar 2013 08:13 AM
Why fields are Read-Only?
Not Resolved
2 3149
by  Michael WashingtonJump to last post
12 Mar 2013 09:03 PM
Use Cases for multiple instances of 2-tier app sharing the same database?
0 729
12 Mar 2013 07:04 PM
Selecting and Inserting Data Dynamically
Not Resolved
1 1851
by  bsmithJump to last post
12 Mar 2013 02:11 PM
Lightswitch HTML5 Delete Button not available
Jack Stephenson
Not Resolved
2 2959
by  Jack StephensonJump to last post
11 Mar 2013 10:14 AM
missing Chart-control
4 2038
by  Michael WashingtonJump to last post
10 Mar 2013 09:12 AM
Page 5 of 34 << < 34567 > >>

Latest Microsoft Visual Studio LightSwitch Forum Threads That Have Answers

I am trying to do a simple excel file export with EPPlus and Web Api. In the html client I have a button that calls the web api and opens a new window. No error is thrown, but the result is always "file could not be downloaded".  I get the save file dialog but the file name is Order/ instead of the expected Orders.xls or Orders.xlsx.  Can anyone help? I'm surprised this is so difficult. using System.Linq; using System.Net.Http; using System.Web.Http; using OfficeOpenXml; using System.Collections.Generic; using System.IO; using System.Net.Http.Headers; using System.Net; using System.ComponentModel.DataAnnotations; namespace LightSwitchApplication { public class OrdersController : ApiController { // GET: api/Orders [HttpGet] public HttpResponseMessage Get() { HttpResponseMessage response; response = Request.CreateResponse(HttpStatusCode.OK); MediaTypeHeaderValue

I try following code but selFahrtbu and selTouren is undefined. This should be the entity of the called Screens. Why are this undefined ? myapp.BrowseDisposaetze.QueryDispoSaetzeByDatAndFahrer_ItemTap_execute = function (screen) { var satztkz = screen.QueryDispoSaetzeByDatAndFahrer.selectedItem.satztkz if (satztkz=="F") { var selFahrtbu = screen.QueryDispoSaetzeByDatAndFahrer.selectedItem.tblfahrtbu; myapp.showViewFahrtenbuch(selFahrtbu); } else { var selTouren = screen.QueryDispoSaetzeByDatAndFahrer.selectedItem.tbltouren; myapp.showViewtbltouren(selTouren); } }; Helmut

I created a browse screen to be used as a modal window for another screen.  In the modal screen there is a button to return to the orignal screen.  The button uses the showScreen method.  This seems to work if the modal screen is in full screen mode.  However, if "show as dialog" is selected for the modal screen, when you try to navigate back to the original screen, the modal doesn't close and the original screen is then displayed inside the modal while being greyed out on the outside of the modal (not good).  How do you close the dialog and return to the original screen?  There are no records being added or changed in the modal so it doesn't need to commitChanges; just navigate back to the previous screen and provide that screen's parameters.  I looked at the navigateBack() method but couldn't figure out how to add the screen's parameters with that.  TIA

querying on the client
1/23/2015 11:27 AM
I need to do some querying client side. As a simplified example, this works great: var filter = "(substringof('Futterkiste', CustomerName) eq true)"; msls.application.activeDataWorkspace.ApplicationData.Customers .filter(filter) .top(1) .execute() .then(function (results) { if (results.results.length >= 0) { screen.prpCustomer = results.results[0]; } }, function (error) { alert(error); } ); However, if I already have the customer data loaded (or at least available as a local screen query), how can I filter and use that collection?  This produces Error: Object doesn't support property or method 'filter'. var filter = "(substringof('Futterkiste', CustomerName) eq true)"; screen.getCustomers() .filter(filter) // filter not supported .top(1) .execute() // is this necessary with

"Common Screen Set" is missing
1/23/2015 7:14 AM
I've installed VS2013 - Update 4 and the Office Tools November Update. I'm starting a new project and I want to use the "Common Screen Set", but that Screen Type does not show up in my list of screen templates. This is a completely new installation with no projects (yet). Did I miss a step somewhere? Thanks!

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