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

Read Only Fields
Last Post 16 Aug 2011 05:05 AM by admin. 2 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Andy DruryUser is Offline
New Member
New Member
Send Private Message
Posts:19
Avatar

--
16 Aug 2011 04:49 AM
    Very New to Light Switch and would appreciate any assistance

    Is it possible to have a field on a screen become read only dependant upon the value in certain fields, when its first loaded and during screen entry ?

    What would be the best way to force several fields on a screen to be entered dependant on the value of another. i,e when a status set to Order, require order date, order number etc.

    Regards

    Andy
    Michael WashingtonUser is Offline
    Send Private Message
    Posts:1246
    Avatar

    --
    16 Aug 2011 04:58 AM
    What would be the best way to force several fields on a screen to be entered dependant on the value of another. i,e when a status set to Order, require order date, order number etc.

    There are no code samples I can think of, but I would use a Silverlight Custom control. Some like to use FindControl in the LightSwitch page code behind to attach events to controls, but I think that you can end up with a lot of hard to decipher 'spaghetti code' (however it will also work).
    -----------
    Michael Washington
    http://LightSwitchHelpWebsite.com
    Michael WashingtonUser is Offline
    Send Private Message
    Posts:1246
    Avatar

    --
    16 Aug 2011 05:05 AM
    I just saw this thread that may help:
    http://social.msdn.microsoft.com/Fo...cf97cd2169
    -----------
    Michael Washington
    http://LightSwitchHelpWebsite.com
    You are not authorized to post a reply.


    Latest Microsoft Visual Studio LightSwitch Forum Threads That Have Answers

    I have a application manage customers, orders and products. I want to create a report these data on day, one month and one year. How can I implement create reports in LightSwitch application?
    Read more...

    Listing in Lambda
    8/25/2015 6:41 AM
    I am listing ages of vehicle, but its displayed in one row here is my code: partial void Reports_InitializeDataWorkspace(List<IDataService> saveChangesTo){List<DateTime> yom = new List<DateTime>();string result = string.Empty; var provider = System.Globalization.CultureInfo.InvariantCulture;yom = InsuranceQuotations .Select(x => x.mYear ?? DateTime.ParseExact("00/00/0000", "MM/dd/yyyy", provider)) .ToList();DateTime today = DateTime.Today;yom.ForEach(x => {                result += today.Year - x.Year + ", ";            });AgeOfVehicles = Convert.ToString(result); }        How can i list as: "1970, 45" "1994, 21" "1978, 37" etc.
    Read more...

    Hi Please assist and thanks in advance. Looking at https://msdn.microsoft.com/en-us/library/azure/jj131261.aspx, I have followed this pattern many many times, but since my failed attempt at upgrading to VS 2015 and re-installing VS 2013, I now find that I don't even get to the wizard (see the 1st screen-shot showing the error). It appears that I have VS 2013 V4 Installed (see the 2nd screen-shot) but when I try to download the Azure SDK for VS 2013 (see 2rd screen-shot) I get an error that I don't have VS 2013 V4?? I must be missing something. Please assist and many thanks, Mark. Mark
    Read more...

    Hello, I have a very simple problem. I would like to stop the Save operation at Screen Level, if related records are missing from another table. Below the way I implemented, but it always saves, maybe because the operation is async. myapp.AddEditAnagrafica.beforeApplyChanges = function (screen) {     if (screen.Name.NameID != null) {                          myapp.activeDataWorkspace.MIJData.NameEmployeesForName(screen.Name.NameID).execute().then(function (results) {             if (results.results.length > 0) {                 return true;             } else {                 alert("No Employee cannot save");                 return false;             };  
    Read more...

    Hi all! How can I change label font size in html client? If I select font size "small" and align label to the left, label font size is still smaller then displayed information in specific control.. Currently I'm adding extra property to the screen (ie. "textprop") and then I'm grouping them in columns layout without label, then I'm changing inner html of "textprop" to label displayed text to have consistency in size.. I'm sure there should be easier way.. I have tried to manipulate in post render method of a property but it doesn't change label size (or I'm doing it wrong).. Tnx in advance! Kivito Nobody expects the Spanish Inquisition! (M.P.F.C.)
    Read more...

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