You are here:   Forum
Register   |  Login

 

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 06: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 05: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:1297
    Avatar

    --
    16 Aug 2011 05: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:1297
    Avatar

    --
    16 Aug 2011 06: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

    Hello all, I'm trying to set some default values for each new row added to a editable datagrid but I can't seem to figure out what event occurs when the new row is added? Thanks Dave Dave Barker
    Read more...

    We have created a number of light SL applications in Visual Studio 2013. I wonder if it is worth upgrading them to VS 2015? Are there any new features in the new version, or other reasons that make the upgrade? Do you have any other comments or things we should consider? Thanks in advance!
    Read more...

    I'm using a querystring as a parameter to filter records, so that an email link automatically opens the app to the required record. In development when debugging, the url with querystring is like: http://localhost:59944/HTMLClient/#10  and this works great. But after deploying to the production IIS webserver, where you'd think the url should be:  https://app.domain.com/#10 IIS automatically redirects and changes the url to: https://app.domain.com/HTMLClient/default.htm I believe these different development vs. production url's are normal and this has never been a problem with my other LS HTML apps that don't use querystrings. But, it kills this one, and I can't figure out a workaround. Will appreciate any suggestions, thank you. Stephen
    Read more...

    CBA in Visua Studio 2015
    10/26/2016 4:00 AM
    Hello, I have some CBA implemented using Visual Studio 2013, does anyone had success implementing CBA in Visual Studio 2015? Thank you so much
    Read more...

    Hello, I am trying to build in some validation, and cancel all navigation and/or applying of changes on a dialog AddEditScreen, depending on the value of a specific content item. I am also using SweetAlert. Here is my code... myapp.AddEditIncident.beforeApplyChanges = function (screen) { if (screen.Incident.StrRepChargeTo == null) { swal({ title: "Make a selection!", text: "Please choose a Charge To location...", type: "success", showCancelButton: false, showConfirmButton: true, cancelButtonText: "OK!", confirmButtonText: "OK!" }, function () { //myapp.cancelChanges().then(function () { // myapp.navigateBack(); }) }) } } Everything works, except LS starts the page navigation even before the beforeApplyChanges
    Read more...

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