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

Member Directory
Name Location Website Joined Last Active Posts
natovich 15 Sep 2011 12:34 PM 15 Sep 2011 12:35 PM
naty 19 Jun 2011 11:05 AM 26 Jun 2011 10:37 AM 3
Naum 08 Feb 2012 05:38 AM 22 Feb 2012 02:54 AM
Naustradamus 13 Feb 2014 03:05 PM 13 Feb 2014 11:04 PM
Naveen Kushwaha 25 Dec 2013 11:36 PM 26 Dec 2013 02:03 AM
Navneet 14 May 2012 03:37 PM 04 Jun 2012 10:17 AM
NAVNEET KAKKAR 10 Sep 2011 11:57 PM 11 Sep 2011 12:01 AM
naylynn 17 Apr 2014 01:57 PM 24 Apr 2014 04:09 AM
nayman 25 Feb 2014 07:49 AM 25 Feb 2014 01:09 PM
nb 08 Oct 2013 06:49 AM 08 Oct 2013 07:58 AM
NBuck 08 Dec 2011 05:26 AM 08 Dec 2011 05:30 AM
nburlak 21 Aug 2011 04:40 PM 21 Aug 2011 04:42 PM
ncsol 20 Oct 2011 09:19 AM 20 Oct 2011 09:21 AM
NDA 29 Aug 2011 07:34 AM 29 Aug 2011 07:37 AM
ndol 24 Feb 2014 01:20 AM 25 Feb 2014 01:43 AM
ne 19 Jul 2013 01:31 AM 31 Jul 2013 01:50 AM
nealperk 23 Sep 2012 12:31 AM 23 Sep 2012 12:39 AM
NebMo 05 Feb 2014 06:52 PM 20 Apr 2014 03:53 PM
Nebojsa Arsenijevic 28 Aug 2013 04:18 PM 28 Aug 2013 04:18 PM
necas07 24 Apr 2013 04:00 AM 24 Apr 2013 04:10 AM
Page 3 of 14 << < 12345 > >>

Latest Microsoft Visual Studio LightSwitch Forum Threads That Have Answers

Is there any way to specify the display path (DisplayMemberPath for those that know wpf autocomplete box) for the autocomplete box in lightswitch.  Right now, my lightswitch application is displaying the "Id" field vaule instead of the "Description" field value.  I am able to display the correct values in the drop down itself.  However after selection, the "Id" value shows in the datagrid instead of the "Description".  I am using a external sql server datasource in lightswitch, so I don't get the summary property in the table designer, is there any other way I can change the display of the sellection after selecting it from the dropdownbox, I get the correct options when I try to sellect but afterwards it displays the wrong field, I would like to display my full name calculation
Read more...

    Public Class ChickenCityFranchiseDBDataService         Private Sub Countries_Updating(entity As Country)             entity.Modified = Now             entity.ModifiedBy = Me.Application.User.FullName         End Sub         Private Sub Provinces_Updating(entity As Province)             entity.Modified = Now             entity.ModifiedBy = Me.Application.User.FullName         End Sub         Private Sub Banks_Updating(entity As Bank)             entity.Modified = Now             entity.ModifiedBy = Me.Application.User.FullName         End Sub         Private Sub BusinessDetails_Updating(entity As BusinessDetail)      
Read more...

One can use the following code in the created event of a screen to select the first item in a visual collection bound to a Table control (or any list control - code based on an old example from Huy): myapp.MyScreen.created = function (screen) { var visualCollection = screen.Orders; function selectFirst() { var first = visualCollection.data[0]; visualCollection.selectedItem = (first) ? first : null; } if (visualCollection.state === msls.VisualCollection.State.idle) { // If the visual collection is already loaded, try selecting the first item. selectFirst(); } else { // Otherwise, listen to the state change event and when the visual collection is loaded, // select the first item. Also remove the event handler because this should only happen once. function onVisualCollectionStateChanged() { if (visualCollection.state === msls.VisualCollection.State.idle) { visualCollection.removeChangeListener("state",
Read more...

I have a modal dialog screen that needs to be larger than the default in both height and width. I can use one of the Group control post-render methods on that dialog to set the height and Width, but I cannot seem to shift the dialog up by changing the top-margin of the dialog. I want the dialog to move up due to the fact that it is so large. This is the code in the Group control post-render method: myapp.MyLargePicker.SomeGroupControl_postRender = function (element, contentItem) { // set dialog width to 1200px $('div[class~="msls-dialog-frame"]').css('maxWidth', '1200px'); // set dialog height to 800px $('div[class~="msls-dialog-inner-frame"]').css('height', '800px'); // move the dialog up (it moves up and then down again??) setTimeout(function () { $('div[class~="msls-dialog-frame"]').css('margin-top', '10px'); }); }; Setting the margin-top above needs to be set inside the timeout() function otherwise it
Read more...

I have a table containing FirstName and LastName and am trying to project that as LastName, FirstName in a Table. I add a local property FullName in the client and add post render code: myapp.BrowseCustomerItems.FullName_postRender = function (element, contentItem) { function fullName() { return contentItem.data.LastName + ", " + contentItem.data.FirstName; } contentItem.dataBind("screen.ContentItems.FullName", fullName) }; The dataBind is not working.  I have tried using "screen.ContentItems.CustomerItems.FullName" as well. I hope the screen shot from VS2013 below will help.
Read more...

1234

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